Our question, our data, and a first look at what we will do
2026-07-05
Note
✅ Key idea
The syllabus is the contract between us. If something is unclear, ask now — not at exam time.
Tip
Best way to reach me: email or drop in. If I am in the lab I am usually around.

Note
The pipeline: raw data → clean → summarize → visualize → test → report This course teaches every step.
Important
Getting stuck is not failing — it is the job.
Every working data scientist searches Google for error messages every single day.
What I will do:
What you need to do:
Example:
Note
📖 New vocabulary
Falsifiable = a prediction that could, in principle, be shown to be wrong.
A good hypothesis is one you could prove false.
Tip
🖐 Try it yourself
We are going to go outside, collect leaves, and build our first dataset today. That dataset will follow us for the first part of the course.
Note
📖 New vocabulary
Null hypothesis (H₀) — the “nothing is happening” claim. Statistics will tell us whether the data are consistent with this or not.
Alternate hypothesis (Hₐ) — the claim we think might be true.
Your null hypothesis: ____________________________
Your alternate hypothesis: ____________________________
Tip
Key distinction
Important
Replication and randomization
These two principles are the foundation of all experimental design. One tree is a sample size of one — we cannot generalize from that.
Dependent variable (response): - The thing we measure — it depends on our treatment - Example: leaf mass, leaf area
Independent variable (explanatory): - The thing we control or group by - Example: side of tree (sunny vs. shady)
Note
📖 New vocabulary
How high do we collect from?
What does “mature” mean?
Any other decisions to standardize?
Important
⚠️ Watch out!
If everyone collects differently (different heights, different leaf ages), we cannot combine our data.
Agree on the rules or methods before collecting…..
What units?
What abbreviations or vocabulary for the variables?
What if a leaf is damaged?
Note
📖 New vocabulary
_ instead)Tip
Best practice for column names:
leaf_mass_g, not Leaf Mass (g) - why???
Consistent, no spaces, no special characters, units in the name and all lower case - why?????
Note
Excel is great for a first look. But as datasets grow larger and analyses more complex, we need another approach - R.
You do not need to understand this yet — just look at the shape of it.
# Load the tools we need
library(tidyverse)
library(readxl)
# Read our leaf data into R
tree_df <- read_excel("data/tree_experiment.xlsx")
# Compute the mean weight for each side
tree_df %>%
group_by(side) %>%
summarize(mean_weight = mean(weight_g))
# Make a plot
ggplot(tree_df, aes(x = side, y = weight_g)) +
geom_boxplot()Tip
🖐 Notice
It reads almost like English: take tree_df, then group by side, then compute the mean. That is the goal — code that tells a clear story.
Downloading R and Positron:
Important
⚠️ Watch out!
Install R first, then Positron. If you install Positron first, it may not find R automatically.
See you Thursday — bring your laptop and the leaf data you entered in Excel.