



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




The chi-square distributions can be used in statistics to analyze the standard deviation of a normally distributed measurement and to test the goodness of fit of various population models on a set of data.
A chi-square distribution is based on a parameter known as the degrees of freedom n , where n is an integer greater than or equal to 1. Such a random variable is denoted by
X ~ 2 ( n ). The 2 ( n ) distribution is defined to be the sum of the squares of n independent standard normal distributions.
For example, suppose X 1 ,... , Xn are independent normally distributed measurements having mean (^) i and standard deviation (^) i for i = 1,.. ., n. These measurements could be the heights or IQ scores of various groups of people. By subtracting the mean and then dividing by the standard deviation, we convert each
measurement into a standard normal distribution: Zi = Xi − (^) i i
~ N ( 0 , 1 ) , for 1 ≤ i ≤ n.
So Z 1 ~ N ( 0 , 1 ) and its distribution graph will be the common “bell-shaped curve”
which is symmetric about the origin. Then Z 12 ~ 2 (1). Its plot will consist of positive values concentrated near the origin, and it will have mean 1 and variance 2.
The standard normal distribution
(^2) (1) distribution 2 (2) distribution 2 ( n ) distribution
By standardizing, squaring, and summing random measurements from the respective normal populations, we obtain a chi-square distribution with n degrees of freedom:
(^2) ( n ) = X 1 −^1 1
2
2
2 +... + Xn − (^) n n
2 = Z 12 + Z 22 + ... + Zn^2.
The distribution graphs for n ≥ 3 are skewed bell-shaped curves, defined on [0, ∞), with increasingly larger values of x as the point at which the graph obtains its maximum. The mean is now n , the variance is 2 n , and the standard deviation is 2 n. For n ≥ 3, the maximum (mode) occurs when x = n − 2.
X ~ 2 ( n ) = Z 12 + Z 22 + ... + Zn^2
Mean = n Variance = 2 n Standard Deviation = 2 n
Mode = n − 2 (for n ≥ 3)
The theoretical distribution curve is given by
f ( x ) = Cn xn /2−^1 e −^ x^ /2^ , for x ≥ 0,
where Cn is a constant that depends on n given by
Cn =
2 n /2^ n 2
2 ( n −2)/^ n − 1 2
( n − 1)! π
for neven
for nodd
A chi-square curve can be plotted using the built-in^2 pdf( command from the
DISTR menu. For example, to graph the 2 (10) curve, enter^2 pdf( X,10) into the Y= screen.
To compute P ( a ≤ X ≤ b ) for X ~ 2 ( n ), enter^2 cdf(a, b, n) or Shade 2 (a, b, n).
Example 1. Let X ~ 2 (10). (a) Where does the maximum of the curve occur? (b) Compute P (6 ≤ X ≤ 10). Is there symmetry at the outer tails; i.e., does P (0 ≤ X ≤ 6) = P ( X ≥ 10)? (c) Find the left and right bounds that contain 90% of the distribution.
Solution. (a) For X ~ 2 (10), the maximum (mode) occurs when x = n − 2 = 8. (b) From the TI output, we see that P (6 ≤ X ≤ 10) ≈ 0.37477. Also, the left-tail is P (0 ≤ X ≤ 6) ≈ 0.1847, and the right-tail is P ( X ≥ 10) ≈ 0.4405. So the two tails outside of the inner region 6 ≤ X ≤ 10 are not symmetric.
For there to be 90% in the middle of the distribution, we must have 5% at each tail. The values where these occur (chi-square scores) can be found with the table on the next page. In this case, the values are about 3.940 and 18..
Theorems
I. Let { x 1 , x 2 ,... , xn } denote the collection of all random samples of size n from
normally distributed measurements having variance 2. Let S^2 =
n − 1
( xi − x )^2 i = 1
n ∑ be
the distribution of all possible sample variances. Then
( n − 1) S^2 2 is a^
(^2) ( n − 1) distribution.
Thus with a normally distributed measurement, we can evaluate P ( a ≤ S ≤ b ) by
P ( a ≤ S ≤ b ) = P ( a^2 ≤ S^2 ≤ b^2 )
( n − 1) a^2 2 ≤^
( n − 1) S^2 2 ≤^
( n − 1) b^2 2
( n − 1) a^2 2 ≤^
(^2) ( n − 1) ≤ ( n^ −^ 1) b^2 2
provided 2 is known.
II. Let S^2 be the sample variance from a random sample of size n of a normally
distributed measurement having variance 2. A confidence interval for 2 , with level of confidence r = 1 − , is given by
( n − 1) S^2 R
( n − 1) S^2 L
where L and R are the left and right bounds of the 2 ( n − 1) distribution that give r
probability in the middle. A confidence interval for is ( n − 1) S^2 R
( n − 1) S^2 L
III. To test the null hypothesis H 0 : = M for a normally distributed measurement, we obtain the sample deviation S from a random sample of size n. The test statistic is then
x = ( n − 1) S^2 2 =^
( n − 1) S^2 M^2
which is compared with the 2 ( n − 1) distribution. Compute
the (left-tail) P -value P (^) ( 2 ( n − 1) ≤ x ) for the alternative Ha : < M , and compute the
(right-tail) P -value P (^) ( 2 ( n − 1) ≥ x ) for the alternative Ha : > M.
Example 2. Random samples of size 46 are taken from a measurement that is N (100,15). What is P (13 ≤ S ≤ 17)?
Example 3. From a normally distributed measurement, a sample of size 20 yields S = 3.96. Find a 98% confidence interval for the true standard deviation.
Example 4. From a normally distributed measurement, a sample of size 25 yields a sample deviation of 13.96. Is there evidence to reject the hypothesis H 0 : = 15?
Solutions
Example 2: P (13 ≤ S ≤ 17) = P (13^2 ≤ S^2 ≤ 172 )
= P ( n^ −^ 1)
2 2 ≤^
( n − 1) S^2 2 ≤^
( n − 1)17^2 2
≤ 2 ( n − 1) ≤ 45 ×^289 225
(using^2 cdf(33.8, 57.8, 45) )
Example 3: ( n − 1) S^2 R
( n − 1) S^2 L
; hence,
or 2.8693 ≤ ≤ 6..
Example 4: For S = 13.96, we use the alternative Ha : < 15. The test statistic is
x = ( n − 1) S^2 2 =^
= 20.78737 ~ 2 ( n − 1) = 2 (24)
there is still a 34.8765% chance of obtaining a sample deviation of 13.96 or lower with a sample of size 25. There is not enough evidence to reject H 0.