<p>You can always interpret mean and standard deviation and margin of error, but in time series they do not have too much useful interpretation.</p>
<ol>
<li><p>Mean will tell you what the average bitcoin price change was in your time interval. If the mean is 0.10% that means between your start and end date on average the bitcoin price changed by 10%. Only other useful information this tells you is whether during the time interval there was some positive or negative linear trend.</p>
</li>
<li><p>Standard deviation will just give you some measure of dispersion of values in your sample, but that has little use in itself since you have nothing to compare it to. If you want to analyze how the volatility of bitcoin changes you need to estimate time varying volatility with some model like ARCH/GARCH.</p>
</li>
<li><p>You can calculate confidence interval but it doesn't have much interpretation besides putting some confidence interval on your mean estimate.</p>
</li>
</ol>

CC BY-SA 4.0
2023-05-15T06:44:20.690Z
I wanted to build a ADL model for bitcoin price volatility, here the rolling 30 day standard deviation.
BlankerHans
CC BY-SA 4.0
2023-06-17T12:39:59.550Z
@BlankerHans you should use GARCH model that estimates time varying volatility, ADL with 30 day rolling standard deviation makes no sense
csilvia
CC BY-SA 4.0
2023-06-19T12:57:44.683Z
Why not? Isn't the ADL model just like a standard multiple linear regression with some lagged variables?
BlankerHans
CC BY-SA 4.0
2023-06-27T09:25:30.520Z
@BlankerHans precisely, and do you know what is one of the assumptions of such regression? That standard deviation is constant across observations. With price of any stock, currency, cryptocurrency or commodity that will not be true because you will often observe volatility clustering. You need to use here some ARCH type model my best guess would be GARCH. You can google it, that is what people use in this case not ARDL
csilvia
CC BY-SA 4.0
2023-06-27T21:24:05.400Z
Thank you very much. I read some papers and you are right they using GARCH. I will have a look in the statistical properties!
BlankerHans
CC BY-SA 4.0
2023-08-02T11:31:18.997Z
@BlankerHans happy to help, also based on your comment my answer seems to solve your issue, if an answer solves your issue you should accept it
csilvia
CC BY-SA 4.0
2023-05-14T10:58:43.077Z
2023-05-14T10:58:43.077Z
csilvia
<p>I am actually doing some research on bitcoin for my bachelor thesis. I have daily data on the price of bitcoin from <a href="https://finance.yahoo.com/quote/BTC-USD?p=BTC-USD&amp;.tsrc=fin-srch" rel="nofollow noreferrer">here</a>. I calculated with python:</p>
<pre><code>df[&quot;Price Change (in %)&quot;] = (df[&quot;Close&quot;] - df[&quot;Open&quot;])/df[&quot;Open&quot;]*100

df[&quot;Mittel&quot;] = df[&quot;Price Change (in %)&quot;].rolling(30).mean()

df[&quot;Vola&quot;] = df[&quot;Price Change (in %)&quot;].rolling(30).std()
</code></pre>
<p>The data frame looks like this:
<a href="https://i.sstatic.net/74ZwZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/74ZwZ.png" alt="enter image description here" /></a></p>
<p><a href="https://i.sstatic.net/ha4HR.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ha4HR.png" alt="enter image description here" /></a>
<a href="https://i.sstatic.net/ygAcL.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ygAcL.png" alt="enter image description here" /></a></p>
<p>Can I just interprete these data points by:</p>
<pre><code>df[&quot;Price Change (in %)&quot;].mean()
df[&quot;Price Change (in %)&quot;].std()
</code></pre>
<p>And then apply the formula for margin of error?</p>
<pre><code>1.96*(df[&quot;Price Change (in %)&quot;].std() / math.sqrt(df[&quot;Price Change (in %)&quot;].count()))
</code></pre>

<time-series><price><data><bitcoin><python>
confidence interval for standard deviation of bitcoin price
BlankerHans
# confidence interval for standard deviation of bitcoin price

(Asked by: username_0 on 2023-05-11)

I am actually doing some research on bitcoin for my bachelor thesis. I have daily data on the price of bitcoin from here. I calculated with python:
df["Price Change (in %)"] = (df["Close"] - df["Open"])/df["Open"]*100

df["Mittel"] = df["Price Change (in %)"].rolling(30).mean()

df["Vola"] = df["Price Change (in %)"].rolling(30).std()

The data frame looks like this:



Can I just interprete these data points by:
df["Price Change (in %)"].mean()
df["Price Change (in %)"].std()

And then apply the formula for margin of error?
1.96*(df["Price Change (in %)"].std() / math.sqrt(df["Price Change (in %)"].count()))

**Tags:** time-series, price, data, bitcoin, python


---

## 1 answers

### Answer by username_1 on 2023-05-14. Score: 1 | Accepted answer

You can always interpret mean and standard deviation and margin of error, but in time series they do not have too much useful interpretation.

1. Mean will tell you what the average bitcoin price change was in your time interval. If the mean is 0.10% that means between your start and end date on average the bitcoin price changed by 10%. Only other useful information this tells you is whether during the time interval there was some positive or negative linear trend.
2. Standard deviation will just give you some measure of dispersion of values in your sample, but that has little use in itself since you have nothing to compare it to. If you want to analyze how the volatility of bitcoin changes you need to estimate time varying volatility with some model like ARCH/GARCH.
3. You can calculate confidence interval but it doesn't have much interpretation besides putting some confidence interval on your mean estimate.

> **Comments:**
> **username_0**: I wanted to build a ADL model for bitcoin price volatility, here the rolling 30 day standard deviation.  
> **username_1**: @username_0 you should use GARCH model that estimates time varying volatility, ADL with 30 day rolling standard deviation makes no sense  
> **username_0**: Why not? Isn't the ADL model just like a standard multiple linear regression with some lagged variables?  
> **username_1**: @username_0 precisely, and do you know what is one of the assumptions of such regression? That standard deviation is constant across observations. With price of any stock, currency, cryptocurrency or commodity that will not be true because you will often observe volatility clustering. You need to use here some ARCH type model my best guess would be GARCH. You can google it, that is what people use in this case not ARDL  
> **username_0**: Thank you very much. I read some papers and you are right they using GARCH. I will have a look in the statistical properties!  
> **username_1**: @username_0 happy to help, also based on your comment my answer seems to solve your issue, if an answer solves your issue you should accept it  

---

