Exercise

# Choosing an appropriate test

Let's look at another problem from the Olympic dataset, focusing on the `Height`

of the competitors. Here, you've been provided with `athletes`

data on the Norwegian and Colombian `Team`

for each `Sex`

. With those two factors, you'll have four separate groups. First, look at the boxplots below, then choose an appropriate statistical test.

Finally, carry out the test. `pandas`

, `statsmodels`

, and `plotnine`

have been loaded into the workspace as `pd`

, `sm`

, and `p9`

, respectively.

Instructions 1/2

1

2

## Question

Which statistical test should you use to examine the effect of `Sex`

and `Team`

on `Height`

?

### Possible answers

A t-test, comparing the Norwegian vs the Colombian samples.

A pair of t-tests, one testing for the effect of

`Sex`

, one for the effect of `Team`

.A one-way ANOVA, comparing the following four groups: Norway-Males, Norway-Females, Colombia-Males and Colombia-Females.

A two-way ANOVA, with the three factors of

`Sex`

, `Team`

and `Sex:Team`

interaction examined simultaneously.A two-way ANOVA, with the two factors of

`Sex`

and `Team`

examined simultaneously.