+ Reply to Thread
Results 1 to 11 of 11

Simple way to Calculator Volatility?

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Talking Simple way to Calculator Volatility?

    Hey excellers,
    As it possible to calculator the Volatility from a set of numbers?

    please see sheet:
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Simple way to Calculator Volatility?

    Do you have a preferred method for calculating volatility? According to this page at investopedia (http://www.investopedia.com/articles...volatility.asp ), volatility is typically computed as the standard deviation of returns (in Excel, this would be one of the STDEV...() functions: https://support.office.com/en-us/art...90033e188#bm19 ). This wikihow page describes one way to do this in Excel: http://www.wikihow.com/Calculate-His...sing_Excel_sub

    However, the investopedia article also suggests that, while standard deviation is an easy way to compute volatility, it may not be the best measure of volatility. It would be up to you to decide what your desired approach to computing volatility is. Once you decide how you want to compute volatility, describe that process/algorithm to us and we can help you program that into the spreadsheet.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Simple way to Calculator Volatility?

    thx Shorty, I need to get a value for the freq or movement of the graph i.e. if its flat then should return = 0 and if its very wavy then return say 10...

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Simple way to Calculator Volatility?

    I am not in financials or investing, so I don't know (other than searching websites like above) how investors measure volatility. So I am also not sure about a 0 to 10 type measure for volatility.

    The standard deviation will return 0 if all values in the range are the same, and progressively larger numbers the more variability there is in the data. If the standard deviation is not what you are looking for, I would suggest that you consult someone more knowledgeable in investments (I don't know if we have any users here who are investors) who knows how to measure volatility. Once you know how volatility is measured, then you can bring that information back here and we can help you program that into Excel.

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Simple way to Calculator Volatility?

    As MrShorty notes, it isn't clear exactly what sort of measurement you're seeking. Standard deviation measures volatility in relation to the mean, as MrShorty pointed out, so that figure would give you a measure how much the data typically deviates from the horizontal line representing the mean. Another alternative would be to use the R-Squared value, which would measure the volatility in relation to the 'best fit' linear trendline, so instead of comparing your data to the mean, you'd be comparing it to the closest linear match to your data set. You can view the R-Squared value by right-clicking on the data points on your chart, selecting "Add Trendline", then checking the box for "Display R-Squared Value". The closer the R-Squared value is to one, the better the data fits the trend line displayed on the map.

    In my attachment, I've displayed the trend lines and R-Squared values on your charts and also included a basic STDEV formula to show the returns using that measurement. Hopefully one of these features will suit your needs?
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  6. #6
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Simple way to Calculator Volatility?

    thx Cantosh...

    is it possible to calculate R-Squared values as a value in a cell from the dataset?

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Simple way to Calculator Volatility?

    L
    M
    N
    1
    1.08E-05
    1.17614
    L1:M5: {=LINEST(A1:A30, , , TRUE)}
    2
    2.47E-06
    4.39E-05
    3
    0.4035
    0.000117
    4
    18.9397
    28
    5
    2.6E-07
    3.85E-07


    The highlighted value is the same R2 value that appears on the chart.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Forum Contributor
    Join Date
    08-18-2017
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    308

    Re: Simple way to Calculator Volatility?

    ? but what is the function to place in the cell?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Simple way to Calculator Volatility?

    It is as shown: select L1:M5, paste =LINEST(A1:A30, , , TRUE) in the formula bar, press and hold the Ctrl and Shift keys, then press Enter.

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Simple way to Calculator Volatility?

    If you have your linear fit values calculated, r^2 is easily calculated using the RSQ() function: https://support.office.com/en-us/art...d-a8364f2be08f There are other, related functions as well, such as CORREL() and PEARSON(). The LINEST() function can also output r^2 if you instruct the function to output the additional statistics (TRUE for 4th argument) https://support.office.com/en-us/art...a-fa7abf772b6d You can nest the LINEST() function inside of an INDEX() function, if you want to only return the r^2 value without the other data [=INDEX(LINEST(kown_ys,known_xs,TRUE,TRUE),3,1)]. r^2 will be one if the regression is a perfect fit (interpreted as "no volatility"?) and 0 if there is no fit at all (interpreted as "high volatility"?).

    These functions all fit within the statistical category. It might be valuable to look at all of the functions in the statistical category so you can see what functions Excel has built in for these kind of statistical calculations: https://support.office.com/en-us/art...rs=en-US&ad=US

  11. #11
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Simple way to Calculator Volatility?

    Quote Originally Posted by QuantEdge View Post
    is it possible to calculate R-Squared values as a value in a cell from the dataset?
    If all you want is R^2, you can array-enter (press ctrl+shift+Enter instead of just Enter) either of the following formulas:

    =RSQ(A1:A30, ROW(A1:A30))
    or
    =RSQ(A1:A30, ROW(A1:A30)-ROW(A1)+1)

    The first formula works with your example by concidence because your data starts in row 1.

    The second formula is the more general form. The key is for the second parameter to be the array of integers {1;2;3;...}.

    Alternatively, normally-enter (just press Enter) the following formula:

    =INDEX(LINEST(A1:A30,,,TRUE), 3, 1)

    However, with this usage, R^2 is a measure of correlation between the actual data and the estimating best-fit linear regression. It is not a measure of volatility per se, AFAIK.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. help needed making a simple payroll calculator
    By aphatmc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-19-2017, 02:55 PM
  2. Wanting a simple calculator
    By hopper10 in forum Excel General
    Replies: 1
    Last Post: 03-22-2017, 01:29 PM
  3. [SOLVED] Simple loan Calculator
    By zplugger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2017, 02:41 PM
  4. [SOLVED] Simple commission calculator
    By maxcong in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2013, 04:33 AM
  5. Simple Tax/N.I calculator
    By john.b in forum Excel General
    Replies: 5
    Last Post: 07-08-2012, 10:01 AM
  6. Simple Financial Calculator
    By Pulsus in forum Tips and Tutorials
    Replies: 10
    Last Post: 06-06-2012, 02:04 AM
  7. Simple Calculator Problem
    By Wheelz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2006, 02:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1