You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According the code, the Jensen's alpha is calculated with accumulated return in the following formula
result = Rp - Rf - CAPM.beta(Ra, Rb, Rf) * (Rpb - Rf)
Yet, if Rf is feed with a time series, which is normal in practical application, a same size of vector will be returned instead of a single value which is expected in general. Again if Rp is the accumulated return of Ra, we have the same reason to expect that Rf should be the the accumulated return of risk-free interest rate.
The text was updated successfully, but these errors were encountered:
I believe the same issue exists in the MSquared function too. Either narrow down the acceptable Rf to a constant factor or replace Rf by its accumulated return should solve the problem
According the code, the Jensen's alpha is calculated with accumulated return in the following formula
result = Rp - Rf - CAPM.beta(Ra, Rb, Rf) * (Rpb - Rf)
Yet, if Rf is feed with a time series, which is normal in practical application, a same size of vector will be returned instead of a single value which is expected in general. Again if Rp is the accumulated return of Ra, we have the same reason to expect that Rf should be the the accumulated return of risk-free interest rate.
The text was updated successfully, but these errors were encountered: