 3 talaq confusion and wanting to live together again
 Raspian “Welcome to Raspberry Pi” after every reboot
 How to add a fan if no gpio pins available
 Raspberry Pi 3 GPIO pins always active
 Does using stonger soaps help me lose weight?
 Isomerism:Which of the following pairs of compunds are not position isomers?
 Why does cooked liver turn green after a while?
 Maltose Nomenclature
 pKa of 2fluoropropanoic acid v. 3fluoropropanoic acid
 Contacted by a recruitment agency regarding a role working for a company that a mate of mine has just left
 How can I deal with troublesome Professional Engineer?
 Being Hired as a Vendor or Contractor, how do you put it on your resume?
 I'm a few months into grad school but not keen on continuing. Should I address why I'm droppingout when applying places?
 Proving given language using finite automata
 Find Hamiltonian cycle in polynomial time
 Is a Turing machine too strong of a model to model physical computation?
 Conference rebuttal: can I add results?
 Uni group project being used by companies for profit
 Few very basic queries about post doctoral studies
 Is there any maximum time for staying in a belt in BJJ?
How to calculate the standard deviation of stock returns?
I'm trying to learn the the Black–Scholes option pricing formula and one of the elements of that formula (according to http://bradley.bradley.edu/~arr/bsm/pg04.html) is the "standard deviation of stock returns".
I know if I download a CSV file of historical prices from Yahoo! and open up Excel and execute STDDEV(column with prices), I can get the "standard deviation of stock PRICES". But that is not what I need. I need the "standard deviation of stock RETURNS".
Does anyone know how I can calculate this in Excel? Or even better yet, if someone can provide a implementation in code showing how to do it?
Some of the questions that came up in my head when thinking about how to approach this include "how much historical data to use? (how far back to we go when downloading the CSV file from Yahoo!)" and "what kind of stock returns are we supposed to be calculating? Annual stock returns? Daily returns?"
This link does it ok: http://investexcel.net/1979/calculatehisto

This link does it ok: http://investexcel.net/1979/calculatehistoricalvolatilityexcel/
Basically, you calculate percentage return by doing stock price now / stock price before. You're not calculating the rate of return hence no subtraction of 100%. The standard is to do this on a daily basis: stock price today / stock price yesterday.
The most important and most misunderstood part is that you now have to analyze the data geometrically not arithmetically. To easily do this, convert all percentage returns with the natural log, ln().
Next, you take the standard deviation of all of those results, and apply exp(). This answers the title of your question.
For convenience's sake, it's best to annualize since volatility (implied or statistical) is now almost always quoted annualized. There are ~240 trading days each year. You multiply your stdev() result by (240 / # of trading days per return) ^ 0.5, so if you're doing this for daily returns, multiply the stdev() result by 240^0
20181019 06:11:47 
For implied volatility it is okey to use Black and scholes but what to do with the historical volatility which carry the effect of past prices as a predictor of future prices.And then precisely the conditional historical volatility.i suggest that you must go with the process like, for stock returns
1) first download stock prices into excel sheet
2) take the natural log of (P1/po)
3) calculate average of the sample
4) calculate square of (XXbar)
5) take square root of this and you will get the standard deviation of your required data.
20181019 06:58:44