Hybrid· RAccessibility not checkedPublished

A Line That Predicts Earnings

By Alexis Diamond · Statistics · Regression · Undergraduate · Computational / statistical · version 10

Groups guess 1975 earnings from 1974 earnings in the lalonde data, fit lm(re75 ~ re74) in R, read the intercept and slope, separate variables from parameters, then judge the line by its RMSE against guessing the average.

Licence: CC BY 4.0

Share and present
Assumption ledger (5)
  • datalalonde from the R package Matching: 445 men, earnings in dollars with cents as in the package.
  • simplificationOne independent variable and a straight line fitted by least squares (lm). Standard errors, t values and p-values are left for later.
  • interpretationIn step 2, 'about $10,000' means $9,000 to $11,000 in 1974 (11 men).
  • parameterRMSE divides by n = 445; summary(model1) reports the residual standard error, which divides by n - 2.
  • simplificationThe charts draw the same least-squares line in the page; an assertion confirms it matches R's coefficients (567.9497, 0.3849128).
Checks Breakout ✓ · Code not checked · Accessibility ✓

Breakout check

✓ Ready for breakouts: every control we tried showed teammates the same thing.

Code checks

Not checked yet.

Cite this · History

Cite this

Alexis Diamond (2026). A Line That Predicts Earnings [Interactive model], version 10. Ideas at Play. https://ideasatplay.org/play/a-line-that-predicts-earnings-673b65?v=10 (CC BY 4.0)

History

  1. v10Ordered answer scales keep their order (data-kc-order="fixed"); other multiple-choice options are now shuffled by the platform. (edited, Dec 2, 2026)current
  2. v9Step 6 group box trimmed to one question: what a typical miss of about $2,400 means for one client (the rest overlapped the step 7 reflection). (edited, Nov 19, 2026)View
  3. v8Removed the time estimate from the subtitle (students don't see durations; PEDAGOGY A7b). (edited, Nov 19, 2026)View
  4. v7Reflection: review fixes (edited, Nov 19, 2026)View
  5. v6Closing group reflection (step 7): apply a fitted line to a prediction of their own and say how they would check it beats the average; You-should-now panel moved there. (edited, Nov 19, 2026)View
  6. v5Step 6 ends with a group reflection: explain the line to a job-training office (what the two numbers mean, how you checked it, what a $2,400 typical miss means for one client). (edited, Nov 19, 2026)View
  7. v4Step 6 made easier: the line's RMSE is pre-written as a worked example; students make one edit (NA → err_mean) and Run. Plainer wording ('typical miss'), numbered instructions, two short hints. (edited, Nov 19, 2026)View
  8. v3Step 3 made easier: Run, copy the two printed numbers into b0 and b1 (rounding fine), Run again; the prediction line is pre-written. Numbered instructions, gentler hints, looser tolerances. (edited, Nov 19, 2026)View
  9. v2Step 3 text now starts "In the code cell, the first two lines of code…"; code boxes are wider (step 3 code column widened; "What will be checked" moved above each box) so every line of code fits without wrapping at 1024px and up. (edited, Nov 19, 2026)View
  10. v1Imported; lineage before import is not available. (imported, Nov 19, 2026)View
Report this artifact

Reports are anonymous. The artifact stays up until we've checked it.

Comments

No comments yet.

Sign in to comment or like.

Anything wrong with this page? Submit feedback