Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Download the daily adjusted closing prices of Citigroup (Ticker: C) and the SPDR (ticker: SPY) from 2010-01-01 until the latest closing. a. Compute the standard
Download the daily adjusted closing prices of Citigroup (Ticker: C) and the SPDR (ticker: SPY) from 2010-01-01 until the latest closing.
a. Compute the standard deviation of daily returns of C and SPY.
b. Compute the correlation between C and SPY C returns.
c. Generate a scatter plot of Citigroup returns on the y-axis vs. SPY returns on the x-axis.
d. Using the library statsmodels, run a regression of daily returns of Citigroup stock on SPY and report the beta and the R-square of the regression.
Provide Python code please.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started