I am new here. Please help with the following task
Take the data about JPM and C from 2018-9-1 to 2018-11-1, let PJPM,t be the price of JPM
at time t, and PC,t be the price of C at time t, compute
PJPM,t = ln PJPM
PC,t = ln PC
then regress as
P JPM ~ a + B pc + e
Compute a, b and plot e over the time window. Report R2 of your regression