** 10 Question Sample Survey **
The Initial Question Determines What Your are Analyzing (Male vs Female) or (Democrat vs Republican) or (Fertilizer A vs Fertilizer B) etc. 1) Which do you prefer: A1) Coke B1) Pepsi 2) Which do you prefer: A2) Blue B2) Green 3) Which do you prefer: A3) A Hike thru the Woods B3) A Boat Ride on a Lake 4) Which do you prefer: A4) A Day at a Park with your kids B4) A Day at the Mall with your kids 5) Which date do you prefer: A5) Dinner and a Movie B5) HotDogs or Hamburgers at the Zoo 6) Which date do you prefer: A6) Paddle Kayak up a River B6) Ride a Speed Boat to a Fishing Area 7) Which do you prefer: A7) Lasagna for Dinner B7) Soup and Salad for Dinner 8) Which do you prefer: A8) Coffee B8) Tea 9) Which do you prefer: A9) Popcorn B9) Potato Chips 10) Which do you prefer: A10) Chocolate Cake B10) Lemon Meringue Pie 
This is for taking surveys. The Null hypothesis for the above experiment is that the observed values are close to the predicted values. The alternative hypothesis is that they are not close to the predicted values. These hypotheses hold for all Chi square goodness of fit tests. Thus in this case the null and alternative hypotheses corresponds to:Null hypothesis: The coin is fair Alternative hypothesis: The coin is biased The chisquare test for independence is used to determine the relationship between two variables of a sample. In this context independence means that the two factors are not related. Typically in social science research, we're interested in finding factors which are related, e.g. education and income, occupation and prestige, age and voting behaviour. Example: We want to know whether boys or girls get into trouble more often in school. Below is the table documenting the frequency of boys and girls who got into trouble in school H1 = There is no relationship Variables are Independent. H2 = There is a relationship Variables are dependent. If ChiSquare is greater than the 5% value in the table => H2 => 95% chance that there is signaficant relationship. Variables are dependent. Degrees of Freedom = (Row  1)*(Column 1) 
