00:01
All right, so the first thing we have to do here is calculate our expected values.
00:04
And so we have tea, coffee, male, female.
00:10
And for t, male, our expected is going to be the total number of t times the total number of male divided by our total overall, which is one.
00:24
So 69 times 30 divided by 100, which is 20.
00:32
And then we're just going to repeat that formula for every for every different category option and that will give us our our expected counts and i am actually just going to run the whole test, which we'll use that information later and we get, oh the total is not 69, it's actually 60.
01:11
So my apologies, let's fix that.
01:12
So 60 times 30, which is 1 ,800 divided by 100 is 18.
01:25
And then when i pull up the rest of mine and go through the rest of those, you're going to have 42, 12, and 28.
01:32
The formula is the same.
01:34
So you would do 60 times for this one right here, 60 times 70, which we know is 420 divided by 142.
01:42
Our kai squared test statistic, we're going to do our observed.
01:46
Minus our expected squared over expected plus observed minus expected squared over expected and do the same thing for the others.
01:59
Observed minus expected squared over expected...