| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>confidence interval</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
confidence interval |
| 13 |
</b></font></table></table> |
| 14 |
<p>The confidence interval gives an estimated range of values which is likely to include a true but unknown population parameter. The estimated range is calculated from a given set of observations.</p> |
| 15 |
<h2>Examples</h2> |
| 16 |
<p>At the <i>α</i> level of significance, a two-sided confidence interval for the true mean <i>μ</i> for normally distributed data with <i>observed</i> mean <i>m</i> and <i>true</i> standard deviation <i>σ</i> can be constructed as:</p> |
| 17 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>mean</i> - <i>z</i><sub>α/2</sub> <i>σ</i> / √<i>N</i> ≤ <i>μ</i> ≤ <i>mean</i> + <i>z</i><sub><i>α</i>/2</sub> <i>σ</i> / √<i>N</i>,</table> |
| 18 |
<p>where <i>z</i><sub><i>α</i>/2</sub> = invGaussQ (<i>α</i>/2) and <i>N</i> is the number of observations.</p> |
| 19 |
<p>If the standard deviation is <i>not</i> known, we have to estimate its value (<i>s</i>) from the data and the formula above becomes:</p> |
| 20 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>mean</i> - <i>t</i><sub><i>α/2;N</i></sub> <i>s</i> / √<i>N</i> ≤ <i>μ</i> ≤ <i>mean</i> + <i>t</i><sub><i>α</i>/2;<i>N</i></sub> <i>s</i> / √<i>N</i>,</table> |
| 21 |
<p>where <i>t</i><sub><i>α</i>/2;<i>N</i></sub> = invStudentQ (<i>α</i>/2, <i>N</i>-1).</p> |
| 22 |
<p>For <i>α</i>=0.05 and <i>N</i>=20 we get <i>z</i><sub>0.025</sub>=1.96 and <i>t</i><sub>0.025;20</sub>=2.093. This shows that for a fixed value of the standard deviation the confidence interval will always be wider if we had to estimate the standard deviation's value from the data instead of its value being known beforehand.</p> |
| 23 |
<h3>Links to this page</h3> |
| 24 |
<ul> |
| 25 |
<li><a href="confidence_level.html">confidence level</a> |
| 26 |
<li><a href="Correlation__Confidence_intervals___.html">Correlation: Confidence intervals...</a> |
| 27 |
</ul> |
| 28 |
<hr> |
| 29 |
<address> |
| 30 |
<p>© djmw 20151109</p> |
| 31 |
</address> |
| 32 |
</body> |
| 33 |
</html> |