Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Basic Research Questions

Hello all, I decided it's best to research my ideas before actually coding them, but learning the notebooks is tricky. I have a couple questions:

1) How can I plot minutely price data for a given day for JNUG, and then add moving averages to that same graph?
2) How do I plot two different variables (like daily rainfall and daily AAPL price) on the same graph in a useful way? Ideally I would like to have each variable plotted based on % difference. That way if rain fall increases from 2" to 4" it looks the same as AAPL going from $100 to $200
3) Once I have an idea, what is the easiest way to see if it is statistically significant?

I know these are super simple but I am struggling with the basics.

1 response

Both of those as columns in a pandas dataframe, running .pct_change() on them and then covariance, .cov() and maybe .var() for how they relate to each other would cover some of it. Hopefully some of these will have Notebooks with an example or two you could like and include the plotting: https://www.google.com/search?q=pct_change+cov+notebook+site:quantopian.com