To measure the risk of a particular equity, many investors turn to beta. Though plenty of financial sites provide them, what risks are you taking by using one of the betas provided by an outside source? Betas provided for you by online services have unknown variable inputs, which in all likelihood are not adaptive to your unique portfolio. Betas can be calculated in a number of ways, since the variables for input depend on your investment time horizon, your view of what constitutes "the market" and several other factors. This means a customized version is best.

Learn how to calculate your own beta using Microsoft Excel in order to provide a risk measure that's personalized for your individual portfolio.

### Provided Betas Vs. Personally Calculated Betas

Begin by looking at the time frame chosen for calculating beta. Provided betas are calculated with time frames unknown to their consumers. This poses a unique problem to end users, who need this measurement to gauge portfolio risk. Long-term investors will certainly want to gauge the risk over a longer time period than a position trader who turns over his or her portfolio every few months.

Another problem may be the index used to calculate beta. Most provided betas use the American standard of the S&P 500 Index. If your portfolio contains equities that extend beyond U.S. borders, like a company that is based and operated in China, the S&P 500 may not be the best measure of the market. By calculating your own beta you can adjust for these differences and create a more encompassing view of risk.

One distinct advantage of calculating the beta yourself is the ability to gauge the beta's reliability by calculating the coefficient of determination, or as it is better known, the r-squared. This is a powerful tool that can determine how well your beta measures risk. The range of this statistic is zero to one. The closer the r-squared is to one, the more reliable your beta is.

Another unknown factor of pre-made betas is the method used to calculate them. There are two ways to calculate: regression and the capital asset pricing model (CAPM). CAPM is used more commonly in academic finance; investment practitioners more often use the regression technique. This allows for a better explanation of returns pertaining to the market rather than a theoretical explanation of the overall return of an asset, which takes interest rates as well as market returns into account.

Inevitably, there are also disadvantages to doing it yourself. The main issue is the time involved. Calculating beta yourself takes longer than doing it through a website, but this time can be significantly cut down by using programs such as Microsoft Excel or Open Office Calc.

### Preliminary Steps & Calculating Beta

Once you've decided on a time frame that aligns itself with your investment time horizon and have chosen an appropriate index, you can then move on to gathering data. Look for historical prices of each equity to find the appropriate date information matching your chosen time horizon. On some sites, you will have the option to download the information as a spreadsheet. Choose this option and save the spreadsheet. Do the same for your chosen index as well.

Copy both of the closing price columns into a new spreadsheet. They should be in order from newest to oldest. To obtain the correct format for calculation we must convert these prices into return percentages for both the index and the stock price. To do this, just take the price from today minus the price from yesterday and divide the answer by the price of yesterday. The result is the percentage change. Below is an example showing this in Excel.

Figure 1: Results

The calculation of beta through regression is simply the covariance of the two arrays divided by the variance of the array of the index. The formula is shown below.

**Beta = COVAR (E2:E99,D2:D99)/VAR(D2:D99)**

One advantage we discussed earlier is the ability to gauge the reliability of your beta. This is done by calculating the r-squared. From here we input the two arrays containing the percentage changes. Below is this formula in Excel.

**R-Squared = RSQ(D2:D99,E2:E99)**

### The Bottom Line

Although calculating your own betas can be time-consuming compared to using service-provided betas, they do offer a better look at risk through personalization. In addition, we can also gauge the reliability of this risk measurement by calculating its r-squared. These advantages are a valuable tool to an investment arsenal and should be used by any serious investor.