Question One: Binge Drinkers
Let's look at this table. College Students were asked whether or not the binge drank. The definition used for binge drinking was: "five or more drinks in a row three times in the past two weeks"
a) get this table into r. call it drinkers or something else that clever. make sure as a final step you turn it into a table. make sure it's not still a matrix.
b) Below are seven commands. For each command, tell me what the computer is giving you.
margin.table(drinkers)
margin.table(drinkers,1)
margin.table(drinkers,2)
prop.table(drinkers)
prop.table(drinkers,1)
prop.table(drinkers,2)
prop.table(margin.table(drinkers,1))
c) find the expected values for each cell.
d) Do you think that males binge drink at a different level than females? Set up a null and alternate hypothesis, run a summary, and then use you chi-squared value table to describe where the biggest discrepancies are coming from.
e) Make a graph that shows and describes this data. Compare males and females and binge drinking using PERCENTS as opposed to the actual numbers. This MIGHT be the ONE TIME that I'd be okay with pie charts. Although still probably not, and they're hard to make in r.
Question Two: Refuse to Help
A study of people who refused to answer survey questions is shown below:
1) Make a bar plot that shows this data. Make it the best you can.
2) Name as many things as you can about this data that appear strange or perhaps not presented in the best manner. Explain what you would have done differently.
3) Does it appear that different ages respond differently? Set up a null and alternate hypothesis, run a summary, and then use you chi-squared value table to describe where the biggest discrepancies are coming from.
Question Three: An Honest Cop
Book Problem, page 629, question 12. Do questions a, b, c.
* Make a display of this data that is interesting and shows the information well.
* THEN answer: "Do these data indicate that men and women are equitably represented at all levels of the department?"
Question Four: "I'll have a Coke!".
Your friend one day says "I can tell the difference between Coke and Pepsi. What's more, I can drink some of either and tell you which is which simply by the taste."
You think your friend is full of it. So you decide to set up an experiment to see whether or not your friend can tell the difference.
Your job is to completely outline, from first piece to last result, an experiment that will test your friends claim.
Things I need:
Materials List: what are all of the things you will need in order to run this experiment. I will only buy the things on this list and nothing else.
Cautions: what are some problems you want to make sure to watch for
possible examples:
want to make sure the person doesn't end up drinking 40 oz of soda in 20 minutes
can't see the labels as we pour them
flat soda
Procedure: This should outline what each person will be doing and how the experiment will go from the first piece to the last piece
Results: What will your results look like when you are finished (obviously you will not have the results yet, but you should know exactly what type of responses, results you will get)
Conclusion: What will be considered a success or a failure?
We will run these experiments on Monday.