## Monday, 20 February 2012

### Independence Day!

This blog post is about an exercise that IB Maths studies students have been through to think about how the chi squared test of independence works! It is quite a sophisticated statistical concept designed to test if there is any significant relationship between two non numerical sets of data! In this case the aim was to consider if there was a relationship between Gender and political persuasion. We started by looking at this by imagining what survey results we would expect to get is we assumed that there was absolutely no relationship. This would mean that the likelihood of being left wing is the same for men and for women. Here are the tables we worked with...

Filling in these numbers helps students understand the idea of 'Expected Frequencies' through building on their intuitive understanding if the idea!

Now we went on to consider how the numbers in the table might look if we imagined quite a strong dependence between the two variables. Try these....

What is nice about approaching things this way is that the essential concept behind the statistical test has been explored before any mention of the technique and analysis itself. The whole idea depends on the difference between what we would expect to happen if there was no dependence and what actually did happen. With this established we can go on to analyse those differences.

Of course, to do that, we need data about what did happen and this is where today's connected world has a real edge! We put a quick survey together using a google doc and decided we would collect some age data as well.... (Please feel free to add your own responses below) We then employed the power of the social network to get some responses. Students posted it on their facebook pages and we used what ever means we could to get some responses. We hadd 100s in no time and were able to use some real live data to perform and independence test on!