ผลต่างระหว่างรุ่นของ "Probstat/notes/chi-squared distribution"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
(หน้าที่ถูกสร้างด้วย ': ''This is part of probstat''. == Definition == Let <math>Z_1,Z_2,\ldots,Z_n</math> be independent unit normal random variables....')
 
 
(ไม่แสดง 13 รุ่นระหว่างกลางโดยผู้ใช้คนเดียวกัน)
แถว 2: แถว 2:
  
 
== Definition ==
 
== Definition ==
 
+
{{กล่องฟ้า|
Let <math>Z_1,Z_2,\ldots,Z_n</math> be independent unit normal random variables.  A random variable
+
'''Definition:''' Let <math>Z_1,Z_2,\ldots,Z_n</math> be independent unit normal random variables.  A random variable
  
 
<center>
 
<center>
แถว 9: แถว 9:
 
</center>
 
</center>
  
is called a ''chi-squared'' random variable with <math>n</math> degree of freedom.  We also write
+
is called a ''chi-squared'' random variable with <math>n</math> degrees of freedom.  We also write
  
 
<center>
 
<center>
 
<math>X\sim \chi_n^2.</math>
 
<math>X\sim \chi_n^2.</math>
 
</center>
 
</center>
 +
}}
 +
 +
Wikipedia has a [http://en.wikipedia.org/wiki/Chi-squared_distribution nice article on chi-squared distribution] which also includes plots of its pdf and cdf.
 +
 +
== Properties ==
 +
 +
Here we states important properties of the chi-squared distribution without proofs.
 +
 +
=== Expectations and variances ===
 +
 +
If <math>X</math> is chi-squared with <math>n</math> degrees of freedom, we have that its expectation
 +
 +
<center>
 +
<math>E[X] = n,</math>
 +
</center>
 +
 +
and its variance
 +
 +
<center>
 +
<math>Var(X) = 2n.</math>
 +
</center>
 +
 +
=== Sample variances ===
 +
The chi-squared distribution is very important when we want to reason about the sample variances (See [[Probstat/notes/sample means and sample variances|notes]]).  Under that settings, we sample <math>X_1,X_2,\ldots,X_n</math> from a normal population whose mean is <math>\mu</math> and variance is <math>\sigma^2</math>.
 +
 +
We first note that if <math>\mu</math> and <math>\sigma^2</math> is known, a term similar to the one we used to compute the same variance is chi-squared.  Recall that <math>(X_i - \mu)/\sigma</math> is unit normal.  Therefore,
 +
 +
<center>
 +
<math>\sum_{i=1}^n \left(\frac{X_i - \mu}{\sigma}\right)^2 = \frac{1}{\sigma^2}\sum_{i=1}^n (X_i - \mu)^2 \sim \chi_n^2.</math>
 +
</center>
 +
 +
However, usually, <math>\sigma^2</math> is unknown and we are left to the sample variance, defined as
 +
 +
<center>
 +
<math>S^2 = \frac{\sum_{i=1}^n (X_i - \bar{X})^2}{n-1}</math>.
 +
</center>
 +
 +
Note that the only differences between this term and the previous one is the use of sample mean <math>\bar{X}</math> instead of the population mean.  It can be proved (not here) that in fact, for normal population, <math>S^2</math> (with some scaling) is actually a chi-squared random variable with <math>n-1</math> degrees of freedom (instead of <math>n</math> as in the term computed from <math>\mu</math>).  That is,
 +
 +
<center>
 +
<math>(n-1)\frac{S^2}{\sigma^2} \sim \chi_{n-1}^2.</math>
 +
</center>
 +
 +
More over, for normal population, <math>\bar{X}</math> and <math>S^2</math> are independent.  This is very surprising because both quantities are calculated from the same sample.
 +
 +
These two facts are important in the development of the procedure for calculating confidence intervals in case where <math>\sigma^2</math> is unknown.  (See [[Probstat/notes/t-distributions|notes]].)
 +
 +
{{กล่องเทา|Two important facts about sample means and sample variances:
 +
 +
1. <math>(n-1)S^2/\sigma^2 \sim \chi_{n-1}^2.</math>
 +
 +
2. <math>\bar{X}</math> and <math>S^2</math> are independent.
 +
}}
 +
 +
== Links ==
 +
* [http://en.wikipedia.org/wiki/Chi-squared_distribution Wikipedia article on the chi-squared distribution]

รุ่นแก้ไขปัจจุบันเมื่อ 20:23, 5 ธันวาคม 2557

This is part of probstat.

Definition

Definition: Let be independent unit normal random variables. A random variable

is called a chi-squared random variable with degrees of freedom. We also write

Wikipedia has a nice article on chi-squared distribution which also includes plots of its pdf and cdf.

Properties

Here we states important properties of the chi-squared distribution without proofs.

Expectations and variances

If is chi-squared with degrees of freedom, we have that its expectation

and its variance

Sample variances

The chi-squared distribution is very important when we want to reason about the sample variances (See notes). Under that settings, we sample from a normal population whose mean is and variance is .

We first note that if and is known, a term similar to the one we used to compute the same variance is chi-squared. Recall that is unit normal. Therefore,

However, usually, is unknown and we are left to the sample variance, defined as

.

Note that the only differences between this term and the previous one is the use of sample mean instead of the population mean. It can be proved (not here) that in fact, for normal population, (with some scaling) is actually a chi-squared random variable with degrees of freedom (instead of as in the term computed from ). That is,

More over, for normal population, and are independent. This is very surprising because both quantities are calculated from the same sample.

These two facts are important in the development of the procedure for calculating confidence intervals in case where is unknown. (See notes.)

Two important facts about sample means and sample variances:

1.

2. and are independent.

Links