Sb13–Sb15 - Regression lines for two random variables
Calculate the two regression lines for random-on-random data and choose the line that estimates the required variable. Interpret the predicted conditional mean, the common mean point and the model's fit without treating either line as an exact inverse relationship.
Calculating the two regression lines
If a line estimates mean leaf area from stem length, can you reverse that same equation to estimate mean stem length from leaf area?
Usually not. Selecting plants of a given stem length and selecting plants of a given leaf area form different groups. Each group has its own conditional mean to estimate.
You already know
The regression of on has gradient and passes through . In a controlled-input experiment, the input is fixed; here both plant measurements vary randomly across the sample.
For two random variables, the -on- line estimates the mean of for a given value of , written . The -on- line estimates . These are modelled conditional means, not guaranteed measurements for particular individuals.
The two least squares lines
Provided both variables have nonzero sample variation:
The first predicts from ; the second predicts from . Use a paired-data calculator fit for raw observations, or substitute the supplied summary statistics.
In the formula booklet.
Keep each equation in the direction it predicts. Rewriting an equation algebraically does not change which least squares model produced it.
Worked example 1: leaf area from stem length
Question. Four sampled plants have stem lengths and corresponding leaf areas . Calculate the regression line of leaf area on stem length.
Plan. Obtain the means and centred sums, then use the input sum for this direction.
Why this step? The known quantity will be stem length, so this model estimates the mean leaf area of plants with that length.
Answer. The -on- line is .
Check. At , it gives .
Change only the variable to be estimated, retaining the same paired observations.
Worked example 2: stem length from leaf area
Question. For the same plants, calculate the regression line of stem length on leaf area.
Plan. Use the same means and cross-product sum but divide by , because leaf area is now the given measurement.
Why this step? Interchanging the estimated and given variables changes the denominator. The new gradient is not generally the reciprocal of the old one.
Answer. The -on- line is .
Check. At , it gives . Its gradient is different from .
You can ask a calculator for the second fit by swapping the two paired columns, then translating its output back into an equation for . State the direction explicitly.
Watch out
Wrong: label an equation “ on ” merely because you have rearranged it to put on the left. Right: identify the fitted model by which variable's variation it was chosen to predict.
Calculate both directions for fresh summaries.
Choosing the line for an estimate
Start an estimation question by writing “given …, estimate …”. Choose the line with the quantity being estimated on its prediction side.
A conditional-mean estimate
The -on- model estimates the mean among population members with the specified . The -on- model estimates the mean among those with the specified . A single member can differ from that estimated mean.
The plant measurements range from to for stem length and to for leaf area. Check the given variable against its own observed range.
Worked example 3: given length, estimate area
Question. For the plant models
estimate the mean leaf area for plants of stem length .
Plan. Use the -on- line because leaf area is the quantity to estimate.
Why this step? Fixing a stem length selects the group whose mean leaf area the first line models.
Answer. The estimated mean leaf area is .
Check. The given length is inside the observed stem-length range, so this is interpolation.
Change only which variable is given and which is estimated.
Worked example 4: given area, estimate length
Question. Use the same models to estimate mean stem length for plants of leaf area .
Plan. Choose the -on- line, rather than reversing the area-on-length model.
Why this step? Plants with a given leaf area are a different conditional group from plants with a given stem length.
Answer. The estimated mean stem length is .
Check. Inverting the other line would give , a different and inappropriate estimate for this question.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account