# 11.3 Goodness-of-fit test

This module describes how the chi-square distribution is used to conduct goodness-of-fit test.

In this type of hypothesis test, you determine whether the data "fit" a particular distribution or not. For example, you may suspect your unknown data fit a binomialdistribution. You use a chi-square test (meaning the distribution for the hypothesis test is chi-square) to determine if there is a fit or not. The null and the alternate hypotheses for this test may be written in sentences or may be stated as equations orinequalities.

The test statistic for a goodness-of-fit test is:

$\underset{k}{\Sigma }\frac{\left(O-E{\right)}^{2}}{E}$

where:

• $O$ = observed values (data)
• $E$ = expected values (from theory)
• $k$ = the number of different data cells or categories

The observed values are the data values and the expected values are the values you would expect to get if the null hypothesis were true. There are $n$ terms of the form $\frac{\left(O-E{\right)}^{2}}{E}$ .

The degrees of freedom are $\text{df = (number of categories - 1)}$ .

The goodness-of-fit test is almost always right tailed. If the observed values and the corresponding expected values are not close to each other, then the test statisticcan get very large and will be way out in the right tail of the chi-square curve.

The expected value for each cell needs to be at least 5 in order to use this test.

Absenteeism of college students from math classes is a major concern to math instructors because missing class appears to increase the drop rate. Suppose that a study was done to determine if the actual student absenteeism follows faculty perception. The faculty expected that a group of 100 students would miss class according to the following chart.

 Number absences per term Expected number of students 0 - 2 50 3 - 5 30 6 - 8 12 9 - 11 6 12+ 2

A random survey across all mathematics courses was then done to determine the actual number (observed) of absences in a course. The next chart displays the result of that survey.

 Number absences per term Actual number of students 0 - 2 35 3 - 5 40 6 - 8 20 9 - 11 1 12+ 4

Determine the null and alternate hypotheses needed to conduct a goodness-of-fit test.

${H}_{o}$ : Student absenteeism fits faculty perception.

The alternate hypothesis is the opposite of the null hypothesis.

${H}_{a}$ : Student absenteeism does not fit faculty perception.

Can you use the information as it appears in the charts to conduct the goodness-of-fit test?

No. Notice that the expected number of absences for the "12+" entry is less than 5 (it is 2). Combine that group with the "9 - 11" group to create new tables where the number of students for each entry are at least 5. The new tables are below.

 Number absences per term Expected number of students 0 - 2 50 3 - 5 30 6 - 8 12 9+ 8
 Number absences per term Actual number of students 0 - 2 35 3 - 5 40 6 - 8 20 9+ 5

What are the degrees of freedom ( $\mathrm{df}$ )?

There are 4 "cells" or categories in each of the new tables.

$\mathrm{df = number of cells - 1 = 4 - 1 = 3}$

Employers particularly want to know which days of the week employees are absent in a five day work week. Most employers wouldlike to believe that employees are absent equally during the week. Suppose a random sample of 60 managers were asked on which day of the week did they have the highest number of employee absences. The results were distributed as follows:

Day of the week employees were most absent
Monday Tuesday Wednesday Thursday Friday
Number of Absences 15 12 9 9 15

#### Questions & Answers

Application of nanotechnology in medicine
what is variations in raman spectra for nanomaterials
I only see partial conversation and what's the question here!
what about nanotechnology for water purification
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
Damian
yes that's correct
Professor
I think
Professor
what is the stm
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
Rafiq
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
Damian
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
LITNING
scanning tunneling microscope
Sahil
how nano science is used for hydrophobicity
Santosh
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
Rafiq
what is differents between GO and RGO?
Mahi
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
Rafiq
if virus is killing to make ARTIFICIAL DNA OF GRAPHENE FOR KILLED THE VIRUS .THIS IS OUR ASSUMPTION
Anam
analytical skills graphene is prepared to kill any type viruses .
Anam
what is Nano technology ?
write examples of Nano molecule?
Bob
The nanotechnology is as new science, to scale nanometric
brayan
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Damian
Is there any normative that regulates the use of silver nanoparticles?
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
why we need to study biomolecules, molecular biology in nanotechnology?
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
why?
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
hi
Loga
what does nano mean?
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
1 It is estimated that 30% of all drivers have some kind of medical aid in South Africa. What is the probability that in a sample of 10 drivers: 3.1.1 Exactly 4 will have a medical aid. (8) 3.1.2 At least 2 will have a medical aid. (8) 3.1.3 More than 9 will have a medical aid.