- #1
lola2000
- 13
- 0
I am trying to understand how to decide the number of degrees of freedom when calculating a chi-squared and p value.
I have the data:
England:
people with no pets = 665
people with 1 pet = 976
people with 2+ pets = 913
Scotland
people with no pets = 313
people with 1 pet = 527
people with 2+ pets = 506
Wales
people with no pets =302
people with 1 pet = 440
people with 2+ pets = 358
I've calculated the expected frequency and therefore the (observed - expected)^2 / expected for each cell but I am stuck with degrees of freedom
One thing I've found says dof = (rows-1 ) * (col -1 ) which would = 2 * 2 = 4
another thing says dof = number of cells - number of restrictions = 9 - 2 = 7
where number of restrictions is number of things you are categorising by
can someone clarify this please!
I have the data:
England:
people with no pets = 665
people with 1 pet = 976
people with 2+ pets = 913
Scotland
people with no pets = 313
people with 1 pet = 527
people with 2+ pets = 506
Wales
people with no pets =302
people with 1 pet = 440
people with 2+ pets = 358
I've calculated the expected frequency and therefore the (observed - expected)^2 / expected for each cell but I am stuck with degrees of freedom
One thing I've found says dof = (rows-1 ) * (col -1 ) which would = 2 * 2 = 4
another thing says dof = number of cells - number of restrictions = 9 - 2 = 7
where number of restrictions is number of things you are categorising by
can someone clarify this please!