Q1 Plot the distribution of closing prices by stock using kernel density plots.

Q2 Plot the distribution of closing prices by stock using boxplots.

Q3 Based on the boxplot above, which of the two stocks would you invest in?

Microsoft seems to be the better investment based on daily returns, with the median being slightly positive for Microsoft and zero for Apple. Additionally, the middle 50% of returns are slightly greater for Microsoft, the 99% data is slightly stronger for Microsoft, and Microsoft has only one negative outlier while Apple has two.

Q4 Calculate mean daily returns for each stock.

Q5 Plot mean daily returns using bar charts.

Q6 Add the color (cornflowerblue) to the bar chart.

Q7 Label the bars with mean daily returns.