Date: January 17, 2024

Topic: A closer look at daily returns

Recall

Histograms are another possible indicator for a stock’s performance, by tracking daily returns

Notes

Histograms to track occurrences

Untitled

Daily returns over a long time

Daily returns of S&P 500 over a long time

Daily returns of S&P 500 over a long time


Kurtosis can be used to compare a stock’s daily return histogram with a normal distribution

Statistics with histograms

Kurtosis

Untitled


<aside> 📌 SUMMARY: Histograms are another indicator for a stock’s performance. We can use kurtosis for evaluation

</aside>


Date: January 17, 2024

Topic: Plotting histograms

Recall

  1. Get the daily returns
  2. Call .hist() to get histogram

Notes

Plotting the histogram

Histogram with 20 bins

Histogram with 20 bins

# First get the daily returns from the stock
daily_returns = (df/df.shift(1)) - 1
daily_returns = daily_returns[1:]

# Plot the histogram
daily_returns.hist() # Default 10 bins

# Increase the number of bines
daily_returns.hist(bins=20)

From the histogram, we can plot the mean and std to get additional information on the graph



<aside> 📌 SUMMARY: Use dataframe operations to discover statistics about histograms or even plot them together

</aside>


Date: January 17, 2024

Topic: Scatterplots