A stock's beta coefficient can be calculated using the following equation: B- = ^2 Vi, a. Write
Question:
B- = ^2
Vi,
a. Write a user-defined function that can calculate the beta coefficient. The arguments to the function should be the covariance between the stock and market returns, and the variance of the market's returns. For example, BETA (COVAR AS SINGLE, MARKETVAR AS SINGLE).
b. Rewrite your function so that it accepts ranges of returns and then calculates the beta directly from the returns. It should be defined as: BETA (STOCKRETURNS AS RANGE, MARKETRETURNS AS RANGE). Your function should make use of Application. Work sheet Function to calculate the covariance and variance (use Excel's COVARS and VARS functions). In the code, be sure to check to see if the number of stock returns is equal to the number of market returns. The function should return an error if the count of returns is not equal.
Beta Coefficient
Beta coefficient is a measure of sensitivity of a company's stock price to movement in the broad market index. It is an indicator of a stock's systematic risk which is the undiversifiable risk inherent in the whole financial system. Beta coefficient...
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Financial Analysis with Microsoft Excel
ISBN: 978-1285432274
7th edition
Authors: Timothy R. Mayes, Todd M. Shank
Question Posted: