15:00
Descriptive Statistics, Probability, Hypothesis Testing, and Regression
The University of Sydney
Semester 2, 2026
I would like to acknowledge the Traditional Owners of Australia and recognise their continuing connection to land, water and culture. The University of Sydney is located on the land of the Gadigal people of the Eora Nation. I pay my respects to their Elders, past and present.
Textbook: Kellstedt et al. (2022)
This week’s chapters:
Chapters 7-10: From Description to Inference
By the end of today, you will be able to:
Remember from Week 03:
Today focuses on Hurdle 3: Testing for covariation!
For demonstrations (instructor-led):
For hands-on activities (your turn!):
V-Dem-v16-12variables.csvV-Dem-v16-12variables-codebook.pdfAll data files available on Canvas (Week 4 module)
GSS 2014 - Religion - Variables: RELIG, Religion_Label - Use: Categorical descriptives
African American Homeownership - Variables: Year, Pct_Own_Home - Use: Continuous descriptives, CIs
GSS 2014 - Education & Politics - Variables: EDUC, Race, Party_Label, Union_Label - Use: t-test, chi-square
Government Assistance - Variables: GovtAsst (%), Unempl (%) - Use: Correlation, regression
Key Variables: - v2x_polyarchy: Electoral democracy (0-1) - v2x_gender: Women’s empowerment (0-1) - v2x_freexp: Freedom of expression (0-1) - v2mecenefi: Internet censorship (0-4) - e_gdp: GDP per capita - e_regionpol_6C: World region (1-6) - v2exhoshog: Presidential (1) vs. Parliamentary (0)
Always refer to codebook for details!
Golden Rule
Always describe your data before testing relationships!
Descriptive statistics help you:
What’s “typical” for this variable?
How spread out are the values?
Example: Test scores with mean = 75, SD = 10
Tip
SD tells you how “typical” the mean is!
Outliers = extreme values that don’t fit the pattern
Dataset: gss2014_religion.csv
Steps in JASP:
Religion_Label to VariablesDataset: african_american_homeownership.csv
Steps in JASP:
Pct_Own_Home to VariablesDataset: V-Dem-v16-12variables.csv (refer to codebook)
In pairs:
Suggested variables: v2x_polyarchy, v2x_gender, e_gdp, e_regionpol_6C
15:00
The Challenge
We want to learn about populations, but we only have samples
The logic of inference:
Note
This only works with random sampling!
Key insight: If we took many samples…
Standard Error (SE): Uncertainty in our sample estimate
SE = \frac{SD}{\sqrt{n}}
Interpretation: How much sample means vary due to chance
95% Confidence Interval:
\bar{y} \pm 1.96 \times SE
Tip
Wider CI = More uncertainty; Narrower CI = More precision
Sample: 900 respondents, 46% approve
Dataset: african_american_homeownership.csv
Steps in JASP:
Pct_Own_Home to VariablesInterpretation practice:
Research question: Is X related to Y?
P-value = Probability of our data (or more extreme) if null hypothesis is true
Critical Distinction
p-value ≠ strength of relationship!
Small p-value → Evidence relationship exists
Effect size → How strong/meaningful the relationship is
Two different questions:
Depends on variable types:
| Independent Var | Dependent Var | Test |
|---|---|---|
| Categorical | Categorical | Chi-square (χ²) |
| Categorical (2 groups) | Continuous | t-test |
| Categorical (3+ groups) | Continuous | ANOVA |
| Continuous | Continuous | Correlation/Regression |
When: Both variables are categorical
Question: Are the variables independent or associated?
Example: Gender and party affiliation
When: Categorical IV (2 groups) and continuous DV
Question: Do the two groups have different means?
Example: Do males and females differ in education levels?
For t-tests, Cohen’s d measures effect size:
d = \frac{\bar{y}_1 - \bar{y}_2}{SD_{pooled}}
Interpretation:
Example: d = 0.5 → Group means differ by 0.5 SD
When: Both variables continuous
Question: How strongly are they linearly related?
Correlation coefficient (r):
Scatter plots show correlation visually:
Research question: Do White and Black respondents differ in education levels?
Dataset: gss2014_education_race.csv
Steps in JASP:
EDUCRaceResearch question: Is party affiliation related to union membership?
Dataset: gss2014_education_race.csv
Steps in JASP:
Party_LabelUnion_LabelResearch question: Is unemployment rate correlated with support for government assistance?
Dataset: govt_assistance.csv
Steps in JASP:
GovtAsst and UnemplDataset: V-Dem-v16-12variables.csv (refer to codebook)
Choose ONE exercise:
Interpret: p-value, effect size, substantive meaning
15:00
Goal: Model the relationship between variables
Y = a + bX + \epsilon
Example: Unemployment (X) predicting support for government assistance (Y)
\text{Support} = 35.6 + 1.04 \times \text{Unemployment}
Tip
Always state: “For a one-unit increase in X, Y changes by ___ units”
Same example:
\text{Support} = 35.6 + 1.04 \times \text{Unemployment}
Is the slope significantly different from zero?
If p < 0.05: Slope is significantly different from zero
R² = Proportion of variance in Y explained by X
Note
In bivariate regression: R² = r²
Scatter plot with regression line:
For valid inference, we assume:
Check with: Residual plots in JASP
Remember
Regression shows covariation (hurdle 3), not causation!
For causal inference, still need:
Research question: Does unemployment rate predict support for government assistance?
Dataset: govt_assistance.csv
Steps in JASP:
GovtAsstUnemplInterpret:
15:00
Dataset: V-Dem-v16-12variables.csv (refer to codebook)
Research Question: What does predict democratic quality?
Tasks:
20:00
Statistical tests help us with Hurdle 3:
Building up complexity:
Today: Steps 1 & 2
Recommended order:
Watch Out For
Apply today’s concepts:
Remember
Together: A complete research toolkit!
Next steps in your research journey:
Statistics in context:
The Goal
Not to become statisticians, but to be informed researchers who can:
Open discussion:
Think-pair-share: Discuss with your neighbor, then share with class