00:01
So we would place our data in some type of a chart like this.
00:03
And let's say this is their political preference.
00:05
And we'll have liberal and then conservative.
00:09
And sorry about that mistake already.
00:11
I just did it that way because that's the way that was listed down in your data.
00:15
And then this is your personality type, type a or type b.
00:18
And you would have these row totals and column totals, et cetera.
00:22
And so you have a total of 100 people.
00:24
We know that.
00:26
And so we have 23 people were liberal opinions.
00:30
And this was 20 out of a total of 43 people that were considered type a and we had 31 who were liberal 26 who were conservative out of a type of 57 people were type b and then these two add to 54 and these two add to 46 and so we would be assuming that there is independence between the political opinion political opinion and and personality type, and alternately, that there is a dependent relationship, dependent relationship between, and i'll just go political opinion and the personality type.
01:22
Now, our k -squared statistic, we would need, again, you're probably doing this in a matrix and setting it up, but remember, we would have to find all of these expected values, and we'll just quick put them down here and show how we calculate this.
01:35
We know that this first cell, we would take the 54 times the 43, row total times column total, divided by the table total.
01:47
And that value will come out to be just a second...