Professional Documents
Culture Documents
Chapter Four
Chapter Four
CHAPTER
FOUR
YOUR
BUSINESS
NAME
• YOUR BUSINESS PURPOSE
Characteristics of the chi-
square distributions
application of X2
1. Testing for the equality of several proportions
2. Test for independence between two variables
3. Goodness of fit tests (Binomial, Normal, and
Poisson )
TEST FOR THE INDEPENDENCE BETWEEN
TWO VARIABLES
O ij eij
2
2
eij
eij = ricj/n where ri = Observed freq total for row i.
cj = observed freq total for column j
n = sample size
The step of chi- square test is similar to hipótesis testing.
Example
1. 500 elementary boys and girls are asked
which is the favorite color: blue, green or
pink? Results are shown below
Gender Blue Green Pink Total
Male 100 150 20 270
i. Determine Ho and Ha
Ho: gender and favorite color are independent
Ha: gender and favorite color are dependent
II. Decision rule/ table value
• = 0.05
• ν = (R-1) (C-1)
(2-1) (3-1)= 2
X2, ν = X20.05, 2 = 5.99
Reject Ho if X2 is greater than 5.99.
III. Compute the test statistic (X2)
O eij
2
2 ij
eij
eij = ricj/n
e11= (270*120)/500= 65
e12= (270*180)/500= 97
e13= (270*200)/500=108
e21= (230*120)/500= 55
e22= (230*180)/500= 83
e23= (230*200)/500= 92
2
100 65 150 97 20 108 20 55 30 83 180 92
2
2
2
2
2
2
262
65 97 108 55 83 92
TESTING FOR THE EQUALITY OF
SEVERAL PROPORTIONS
• Testing for the equality of several proportions
emphasizes on whether several proportions are equal or
not; and hence the null hypothesis takes the following
form:
• Ho: P1 = P10; P2 = P2O; P3 = P30; --- Pk = PkO; and the
alternative hypothesis take the following form:
• Ha: The population proportions are not equal to the
hypothesized values.
• The degree of freedom is determined as V= K-1; where
K refers to the number of proportions and all expected
cell values must be greater than or equal to 5.
Example
1. In the business credit institution industry the accounts
receivable for companies are classified as being “current,”
“moderately late,” “very late,” and “uncollectible.” Industry
figure show that the ratio of these four classes is 9: 3: 3: 1.
ENDURANCE firm has 800 accounts receivable, with 439, 168,
133, and 60 falling in each class. Are these proportions in
agreement with the industry ratio? Let =0.05.
Hint e = npi
Solution
3. Compute Sample χ2
Class Observed freq Expected Freq (fo-fe)2 fo fe
2
Yellow 40 40 0 0.00
f o f e 2 20.00
fe
4. Reject Ho; because 20 > 5.99. This means that customers do have color
preference. It appears that red is the most popular color and blue is the
least popular.
GOODNESS-OF-FIT TESTS (BINOMIAL,
NORMAL, POISSON)
• The chi-square test is widely used for a variety of analyses.
• One of the more important uses of Chi-Square is the goodness-
of-fit test.
• It can be used to decide whether a particular probability
distribution, such as the binomial, Poisson or normal, is the
appropriate distribution.
• The null hypothesis for a goodness-off fit test is that the
distribution of the population from which a sample is taken is
the one specified.
• The alternative hypothesis is that the actual distribution is not
the specified distribution.
• Generally, a researcher specifies only the name of
distribution and uses the sample data to estimate the
particular parameters of the distribution. In this situation
one degree of freedom is lost for each parameter that has to be
estimated. However, if the research completely specifies the
distribution including parameter values, then no additional
degrees of freedom is lost.
Null hypothesis Parameters to Degrees of
be estimated freedom
lost
Ho: Population is normal , 2
Ho: Population is normal with x 1
Ho: Population is normal with = y 1
Ho: Population is normal with x, None 0
=y
Ho: Population is Poisson λ 1
Ho: Population is Poisson with λ=Z None 0
Ho: Population is binomial with p = b None 0
Example (Binomial)
1. Ms. Tsion, Saleswoman for MOON Paper Company, has five
accounts to visit per day. It is suggested that sales by Ms.
Tsion May be described by the binomial distribution, with the
probability of selling each account being 0.4. Given the
following frequency distribution of Ms. Tsion’s number of
sales per day, can we conclude that the data do in fact follow
the binomial distribution? Use the 0.05 significance level.
Frequency 10 41 60 20 6 3
Solution
1. Ho: The frequency distribution is Binomial with n = 5 and P =
0.4
Ha: The frequency distribution is not binomial with n = 5 and
P = 0.4
2. = 0.05
K-1 –m = 5-1-0 = 4
X2, ν = X2 0.05,4 = 9.49
Reject Ho if sample x2 is greater than 9.49
3. Sample χ2.
No. of sales Prob. with n= Observed Expected Freq (fo-fe)2
fo fe
2
f o f e 2 8.9607
fe
4. Do not reject Ho. The data are well described by the binomial distribution
with n=5 and P=0.4.
Example (Poisson)
1.It is hypothesized that the number of breakdowns per month of
a computer system at a major university follows a Poisson
distribution with μ = 2. The data below show the observed
number of breakdowns per month during a sample of 100
months. Use a 5% level of significance and test the null
hypothesis.
Observed freq. 14 20 34 22 5 5
Solution
f o f e 2 6.3117
fe
4. Do not Reject Ho. The number of breakdowns per month of a computer system at
the university follows a Poisson distribution with μ = 2.