Hersi Maths WhatsApp me

Understand · explore · practise

A bivariate-data investigation

Investigate original paired data with a spreadsheet: preserve observations, compare justified subsets, fit regression and label missing-response estimates separately.

Before you startScatter diagrams, residuals, regression interpretation and prediction limits.

01 / Ask a question before fitting

A different analysis scope can answer a different question.

Keep raw observations, inclusion decisions and predictions separate.

Do not delete an inconvenient observation or treat an estimated value as a measurement.

Our fictional question is whether distance helps predict delivery duration. A recorded road closure may be relevant to all deliveries but outside a specifically defined routine-conditions question. Compare both scopes openly rather than selecting whichever line looks tidiest.

Keep the investigation question visibleExplore

Six routine deliveries and one recorded road-closure delivery are constructed examples, not real customer records. Both fits use observed complete pairs only. The missing duration at 9 km stays missing.

Using all seven recorded deliveries, the predicted duration at 8 km is about 32.14 minutes. This is a fitted estimate, not a replacement for either recorded 8 km duration.

02 / Inspect the paired records

One row is one delivery.

On a narrow screen, scroll the table sideways to read the conditions.

IDDistance / kmRecorded duration / minConditions
A214Routine
B416Routine
C624Routine
D829Routine
E1031Routine
F1239Routine
G855Road closure recorded
H9MissingConditions not recorded

All values are constructed for this activity. H cannot supply a complete observed pair. D and G are different deliveries at the same distance, so they are not duplicate records merely because x repeats.

01 · Complete pairs

How many complete observed pairs are available for an analysis of all recorded deliveries?

Hint

H has no recorded duration.

Worked solution

Seven. Keep H in the raw table but exclude it from calculations requiring both observed coordinates.

02 · Sorting

Why should a spreadsheet sort entire rows rather than the distance and duration columns separately?

Hint

Each duration belongs to a particular delivery.

Worked solution

Sorting columns independently breaks the pairing and creates observations that were never recorded.

03 / Build a reproducible spreadsheet

Make the decisions inspectable.

  1. Retain the raw paired table and units.
  2. Use explicit inclusion flags for the all-recorded and routine scopes.
  3. Draw a scatterplot from complete included pairs.
  4. Fit duration on distance and inspect residuals.
  5. Keep prediction inputs and outputs on a separate sheet.
  6. Report the scope, range and limitations alongside the prediction.

Download the original investigation workbook or download the raw constructed records as CSV.

03 · Chart type

Why use a scatterplot with a numeric distance axis rather than a category line chart for these pairs?

Hint

The numerical spacing of distances matters.

Worked solution

A scatterplot positions each pair using both numeric coordinates. Category spacing can conceal the actual distances between x values.

04 · Missing cell

Should H’s missing duration be replaced by zero to make the regression run?

Hint

Zero is an actual numerical claim.

Worked solution

No. A missing value is not a zero-minute delivery. Fit from complete observed pairs and retain a missing marker for H.

04 / Compare two stated scopes

A valid unusual value is not automatically an error.

Watch: a stated scope changes the fitted line

Pause, replay or seek freely. The notes explain the same idea and stay in view.

For the six routine deliveries, the fitted model is t̂ = 8 + 2.5d.Worked example

At 9 km, predicted duration is 30.5 minutes

This describes the routine subset.

Including the closure delivery gives t̂ ≈ 9.52419 + 2.82661d

Use unrounded coefficients for calculations.

At 9 km, that fit predicts about 34.96 minutes

The question and inclusion scope explain the difference.

05 · Removal reason

Is “the closure point makes the line less neat” a defensible reason to delete G?

Hint

Distinguish evidence of error from disagreement with a trend.

Worked solution

No. G is documented as a recorded closure delivery. Retain it in raw data. A routine-only analysis can exclude it for an explicitly narrower question, while reporting that decision and comparing sensitivity.

06 · Two observations

The two recorded durations at 8 km are 29 and 55 minutes. Which should the line replace?

Hint

A fitted value is a summary, not a correction.

Worked solution

Neither. Retain both observations. Their differing conditions may explain variation; the fitted value remains a separate model output.

05 / Label an estimate as an estimate

Do not manufacture another observation.

07 · Predict H

The routine-only line predicts 30.5 minutes at H’s 9 km. What should you record?

Hint

H’s conditions are not recorded.

Worked solution

Record 30.5 as a model estimate conditional on routine conditions, in a separate prediction field. Keep the observed-duration field missing; applicability to H is uncertain.

08 · Refit after filling

Why should you not fill H’s raw duration with a model prediction and then count it as an eighth observed pair?

Hint

The estimate was generated by the same data and model.

Worked solution

That invents evidence and can make fit or sample-size claims misleading. It adds no independent measurement. Keep an audit trail and use the seven genuinely observed pairs.

06 / Audit range and residuals

Scope does not remove prediction uncertainty.

09 · Extrapolate

Both observed scopes have distances 2–12 km. Classify a prediction at 16 km.

Hint

Compare the supplied distance with the observed distance range.

Worked solution

It is extrapolation for either scope. The routine fit gives 48 minutes; the all-recorded fit gives 54.75 minutes. Neither extension is validated just by evaluating the formula.

10 · Residual

For the routine fit, find the residual of the routine delivery D at 8 km and 29 minutes.

Hint

Observed minus predicted.

Worked solution

The fitted value is 28 minutes, so the residual is 1 minute. This does not change the recorded value 29.

07 / Limit the conclusion to the evidence

A small constructed example cannot establish a general rule.

11 · Population claim

Can these constructed records prove the same relation applies to every delivery company or city?

Hint

Consider data origin, sampling and context.

Worked solution

No. They are an illustrative dataset, not a representative sample of a real population. A real investigation would need suitable sampling, comparable conditions and validation.

12 · Causal claim

Does the fitted gradient measure the causal effect of adding a kilometre to any delivery?

Hint

Other conditions can vary with distance.

Worked solution

Not from these observational pairs alone. It describes a fitted association under the chosen scope, with traffic, route and other possible influences.

08 / Preserve, compare and qualify

A useful investigation leaves its assumptions visible.

Preserve complete pairs and missing markers, define the population and scope, inspect a numeric scatterplot, fit the right response, and compare justified inclusion choices. Keep estimates separate and explain the range, residual variation and sampling limitations.

Section 1 of 8 · Ask a question before fitting