Professional Documents
Culture Documents
AP Biology
What is Chi-Squared?
• In genetics, you can predict genotypes
based on probability (expected results)
• Chi-squared is a form of statistical analysis
used to compare the actual results
(observed) with the expected results
• NOTE: 2 is the name of the whole
variable – you will never take the square
root of it or solve for
• In statistics, a result is
significant if it is unlikely
to have occurred by
chance.
• Because maybe you’re not
being a great scientist and
the independent variable
(the test condition being
examined) has no effect.
• Maybe you got results by
chance. If by chance, it
isn’t statistically
significant.
Chi-squared
• If the expected (probability) and observed
(actual) values are the same then the 2 = 0
• If the 2 value is 0 or is small then the data
fits your hypothesis (the expected values)
well and it is merely chance.
• By calculating the 2 value you determine
if there is a statistically significant
difference between the expected and actual
values.
Null hypothesis
• In statistics, a null hypothesis is a
hypothesis set up to be nullified or refuted
in order to support an alternative
hypothesis.
• When used, the null hypothesis (chance) is
presumed true until statistical evidence in
the form of a “hypothesis test” indicates
otherwise.
• So when you do a Chi-Square test you say “I
have a null hypothesis that I got this result in
my experiment because of chance”
• Now you don’t really think that. You are
setting out to reject the null hypothesis so you
can accept your alternative hypothesis.
• Your alternative hypothesis would be
something like, “This experimental result is
NOT because of chance it is because of the
variables I set up. I am a genius, my
experiment shows a significant difference and
is NOT by chance alone.”
Step 1: Calculating 2
Nonrollers 25 10
Step 2: Calculating 2
Step 2: Example
Tongue
rollers
75 90
Non-
rollers 25 10
• Using the data from before:
• Tongue rollers
(90 – 75)2 / 75 = 3
• Non-rollers
(10 – 25)2 / 25 = 9
• 2 = 3 + 9 = 12
Step 3: Determining Degrees of
Freedom
• Degrees of freedom = # of categories – 1
• Ex. For the example problem, there were
two categories (tongue rollers and
nonrollers) degrees of freedom = 2 – 1
• Degrees of freedom = 1
• Each new variable brings in new degrees
of freedom…..
• The significance of a result is also called its
p-value
• the smaller the p-value, the more significant
the result is said to be.
• We say that if the p-value is low enough that
we reject the null hypothesis and accept the
alternative hypothesis.
• “it wasn’t chance, it was the thing in my
experiment
• Popular levels of significance are 10%, 5%,
and 1% , all represented by the Greek symbol,
α (alpha). Remember you could write those as
0.10 0.05 and 0.01
• We use 5% a lot
Females 34
Calculating the Chi Square Value for my two classes
Observed Expected
(Actual) (Theoretical)
Males 21 27.5
Females 34 27.5