# Two different sets of data which hypothesis tests to use?

• FishBulb
In summary, the conversation discusses two different questions involving testing hypotheses for a statistics assignment. The first question involves flu shots and the most appropriate test is a chi squared test. The second question compares peak expiratory flow between two groups of children and the appropriate test depends on the type of data being compared. For comparing mean responses, a 2-sample z or t test should be used, while for comparing variability, ANOVA is the best option.

#### FishBulb

Hi there.

For a statistics assignment, I have two different questions involving testing hypotheses.

The first question concerns flu shots and whether or not patients had flu or no flu. So we have two categorical response variables(flu or no flu) and three categorical explanatory variables(no flu shot, one flu shot, two flu shots). I'm assuming use a chi squared test?

The second question involves peak expiratory flow between two different groups of children given two different medications. It asks to provide the most appropiate graph to compare the distribution, and also to carry out the appropriate hypothesis test. For comparing two different sets of data, both with a continuous response variable and a categorical explanatory variable, which would be the best hypothesis test?

Thanks in advance for any help.

That looks like an "ANOVA" (analysis of variance) problem to me.

FishBulb said:
Hi there.

For a statistics assignment, I have two different questions involving testing hypotheses.

The first question concerns flu shots and whether or not patients had flu or no flu. So we have two categorical response variables(flu or no flu) and three categorical explanatory variables(no flu shot, one flu shot, two flu shots). I'm assuming use a chi squared test?

The second question involves peak expiratory flow between two different groups of children given two different medications. It asks to provide the most appropiate graph to compare the distribution, and also to carry out the appropriate hypothesis test. For comparing two different sets of data, both with a continuous response variable and a categorical explanatory variable, which would be the best hypothesis test?

Thanks in advance for any help.

the first one seems to be the correct test.

for the second, if you're comparing responses for two different medications, you should use a 2-sample z or t test, if you're comparing mean responses. if you're comparing the variability of the responses (standard deviations), then you should use ANOVA.