Skip to content

Conversation

@ghostpress
Copy link
Collaborator

Drafted tutorials for the lessons on interaction terms and nonlinear relationships.

@ghostpress ghostpress requested a review from jhuggins October 2, 2025 14:43

## Exercise 1

First, load the `icecream.csv` data file into a DataFrame variable and create scatterplots to examine the relationships between the varables. In this analysis, we are interested in determining what factors influence ice cream consumption from an ice cream truck with a route that travels across different neighborhoods.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to state what the variable names are (in this case for consumption, temperature, and price) since the students won't immediately be able to see that information

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think an example with an indicator variable makes it easier to motivate why you would want interactions

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe walk them through the indicator variable example, ask some questions about interpretation, then have them try the same approach on the current (non-indicator) example



## Exercise 5
Suppose we were to run an experiment where 24 bean plants are randomized into one of four groups:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm...this example is already in the online supplement. It would be nice to have a different one.

Also, I think there's reason in the supplement they had this exercise at the beginning: it helps to motivate why we care about interactions.

```

## Exercise 1

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Start with a work-out example, then have them apply the same approach to a different dataset? It would be nice to show a couple different transformations we might apply. Maybe a log transform example when then response in monetary (since often it is closer to normal on a log scale)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants