Lesson 12
Skewness and Nonnormality Diagnostics
Big question
How do we measure asymmetry?
Lesson progress
Complete checkpoints as you learn
Learning objectives
- Explain skewness and nonnormality diagnostics in plain language.
- Use zero conditional mean correctly in an interpretation.
- Connect the lesson idea to a formula, graph, Python result, or real example.
Simple explanation
Skewness summarizes whether a distribution has a longer right or left tail. A normal distribution has skewness near zero.
Key terms
- zero conditional mean
- The expected error is zero for every value of the regressors.
- standard-error shrinkage
- The tendency of standard errors to fall roughly at one over square-root n.
- auxiliary regression
- A secondary regression used to compute a diagnostic or test statistic.
Core formula
Use plain-language interpretation before algebra.
Example
401KSUBS gives students a real-data setting for skewness and nonnormality diagnostics. The lesson reports code and diagnostics only after the student runs the live Python lab.
Interactive visual
SkewnessCalculator
Original Module 5 visual for Skewness and Nonnormality Diagnostics.
y variable
wage
The dependent variable. It is the outcome students want to explain.
x variable
education
The explanatory variable. It is used to describe changes in wage.
Live Python
Skewness and Nonnormality Diagnostics Python example
Skewness and Nonnormality Diagnostics Python example
Stdout
Run Python to see results here.
Status / stderr
Ready to run Python in your browser.
Line-by-line guide
- Line 1Load a Python library needed for data work or regression.
- Line 2Load a Python library needed for data work or regression.
- Line 4Run this Python instruction as part of the lesson workflow.
- Line 5Keep rows that have the variables required for this model.
- Line 6Create or update a Python object used in the analysis.
- Line 7Run this Python instruction as part of the lesson workflow.
- Line 9Load the dataset into a pandas DataFrame.
- Line 10Load the dataset into a pandas DataFrame.
- Line 11Create or update a Python object used in the analysis.
- Line 12Run this Python instruction as part of the lesson workflow.
- Line 13Create a log version of the variable so coefficients can be read approximately as percentages.
- Line 14Run this Python instruction as part of the lesson workflow.
- Line 15Create a log version of the variable so coefficients can be read approximately as percentages.
- Line 16Run this Python instruction as part of the lesson workflow.
- Line 17Display a result so students can inspect the output.
Python walkthrough
- 1Load libraries and data or set a simulation seed.
- 2Build the model or simulation that matches the lesson question.
- 3Compute the statistic, graph, or summary table.
- 4Interpret the result as large-sample evidence, not automatic causality.
Live notebook
Run this lesson as a notebook
Open an editable notebook cell-by-cell, run Python in the browser, and download the `.ipynb` file for later.
Related dataset
WAGE1
Estimated time
25 to 40 min
Packages
pandas, numpy, matplotlib
Expected output
A printed summary plus a chart in the output panel.
Learning goals
- Load and inspect WAGE1.
- Run the Python cells connected to Histograms, Normality, and Transformations.
- Interpret the output using histograms and skewness.
Common errors
- File not found: check that WAGE1.csv is installed or use the course data folder.
- Package import error: use the browser notebook first, then download for local Jupyter if your local packages differ.
- Column name error: compare your variable names with the dataset variables listed for this notebook.
Dataset path helper
import pandas as pd
df = pd.read_csv("/data/module-5/WAGE1.csv")
df.head()Interactive activity
SkewnessCalculator
Interpret skewness
Change the standardized third moment and classify left, right, or near-zero skew.
Inputs
Try it yourself
Write one plain-English sentence explaining the main idea from this lesson.
Common mistakes
Check these before you move on.
A regression coefficient describes a pattern unless the assumptions or research design support a causal interpretation.
Quick quiz
What does sample skewness measure?
Quick quiz
Which reporting habit is most important in Skewness and Nonnormality Diagnostics?
Quick quiz
Why is WAGE1 a reasonable practice dataset here?
Key takeaway
Skewness and Nonnormality Diagnostics helps students separate large-sample approximation from valid research design.