With signed active covariate columns and their positive-definite Gram matrix , the displayed direction has unit norm and . Thus it makes equal angles with unit-length signed active covariates, and movement along it reduces their signed residual correlations at the common rate . The regression coefficient direction is , with inactive components zero.
Fitted values Created 2026-09-24 Updated 2026-10-14
Fitted values are the predictions at the predictor values used to fit a regression model. In linear regression with an explicit regression intercept,Here is the slope design matrix, and is the regression residual vector. The fitted values estimate the regression function at the observed predictors; they need not equal the observed responses, which may also contain random errors. Prediction at a new predictor vector uses with the same centering and scaling used in fitting. A prediction interval addresses uncertainty in a new response rather than just displaying this point prediction.
For the five constructed observations in linear regression, ordinary least squares gives fitted values . The ridge regression fit at instead gives . Both fitted vectors have sample mean because the regression intercept is unpenalized; their regression residuals differ and their residual sums of squares are and , respectively.
For ordinary least squares, the fitted values are the orthogonal projection of onto the column space of the complete design matrix, including its regression intercept column. They remain unique even in rank-deficient ordinary least squares, although the regression coefficients can be nonunique. The regression residuals are then orthogonal to every column.[ref]
Regression 1: Different perspectives. slides 6–10: fitted values, hat matrix, projection and orthogonal residuals
With centered slopes, ridge regression instead satisfies , so the regression residuals need not be orthogonal to the slope columns. Their sum is still zero because the regression intercept remains free.For fixed predictors and scales and a fixed positive penalty, ridge regression gives a linear smoother,For with at least one nonzero slope direction, this matrix is not an orthogonal projection matrix: applying it twice shrinks that direction again. Its effective degrees of freedom are , where are the positive singular values of ; the extra counts the free regression intercept. If the penalty is selected using , the resulting fitting rule need not be a linear smoother, since its chosen also depends on .
Gaussian Bayesian network 2026-10-05
A Gaussian Bayesian network specifies a linear normal conditional model at each node of a Bayesian network: . Independent local errors and an acyclic ordering generate a joint multivariate normal distribution. Positive conditional variances give a nonsingular joint multivariate normal distribution. The graph constrains regression coefficients and hence conditional independence.
When has full column rank, its Gram matrix is positive-definite and . The stacked normal vector therefore has zero cross covariance, so its blocks are independent. Since , the linear and quadratic statistics are independent. This is the projection argument behind independence of regression coefficient and variance estimators in a normal linear model.
At a positive penalty level, let be the residual-score equality set, its signs and the nonzero regression coefficient support. With full column rank, the displayed strictly convex quadratic program selects the direction for a small decrease of the penalty. Existing nonzero regression coefficients have unrestricted tangent components; tied zero regression coefficients may move only with their residual signs. Stationarity gives for and for entering zero coordinates, and for tied coordinates that remain zero. These are exactly the first-order Karush-Kuhn-Tucker conditions for the Lasso along the next segment. Normalize to obtain the corresponding least-angle direction. This resolves simultaneous entries or dropouts without adding a generic-position assumption.
// Target: mathematical-optimization.bigb
Lasso dropout knot 2026-10-14
On a least-angle segment , a nonzero active regression coefficient reaches zero at the displayed first positive root. Continue only as far as the first dropout, inactive-entry event or zero-correlation endpoint. At a dropout remove the vanishing regression coefficient from the active direction and recompute. This preserves agreement between nonzero regression coefficient signs and residual-score signs, which the Karush-Kuhn-Tucker conditions for the Lasso require. A removed regression coefficient may re-enter later; the active set need not grow monotonically.
Linear regression Created 2026-09-24 Updated 2026-10-14
Linear regression models a response's conditional expectation as a linear combination of specified predictors. In matrix form,where the design matrix describes the observations, contains the regression coefficients, and contains the errors. The fitted values estimate the response means. The model is linear in its regression coefficients; its columns may include powers, interactions, or other transformed predictors, so polynomial regression can fit curved relationships using the same machinery.
For a concrete example, take five constructed observationsAn ordinary least squares fit with an intercept gives the line . Its regression residuals are and its residual sum of squares is . A one-unit increase in the predictor corresponds to a one-unit increase in the fitted response. This is a description of this fitted association; interpreting a change as a causal effect requires the assumptions of a causal inference problem.
A five-point least-squares fit separates the fitted trend from residual deviations
. Details. The geometric reason for the fit is simple. The possible mean vectors form the column space of . Ordinary least squares chooses the orthogonal projection of the data vector onto that vector subspace, so the remaining regression residual is orthogonal to every permitted fitted direction. The least-squares normal equations express this orthogonality as . The data's explained component and unexplained component are therefore separated by the same geometry used in a Hilbert space.
The optimization definition makes sense for any observed data. Quantifying the uncertainty of the regression coefficients needs additional assumptions about the sampling and errors. With fixed of full column rank and mean-zero errors with covariance matrix , ordinary least squares is unbiased and has covariance ; the Gauss-Markov theorem compares it with other linear unbiased estimators. A normal linear model additionally makes Student t-distribution intervals and tests exact in finite samples. Model adequacy and predictive assessment remain relevant even when these calculations are available.
Two historical settings help explain the subject's appeal. Adrien-Marie Legendre's Nouvelles méthodes pour la détermination des orbites des comètes (1805) includes an appendix on the method of least squares: observations give more equations than unknowns, and squared errors provide a criterion for reconciling them. Its astronomical setting shows the motivation for combining imperfect measurements. [ref]
https://www.e-rara.ch/zut/content/titleinfo/10838079. Legendre, Nouvelles méthodes pour la détermination des orbites des comètes, 1805, appendix pp. 72–80
Francis Galton's Regression Towards Mediocrity in Hereditary Stature (1886) examines the association between parental and offspring heights and the tendency of group averages toward the population average. This is a historical use of the regression name; the modern linear model is a general statistical formulation. [ref]https://zenodo.org/records/1449548. Galton, Regression Towards Mediocrity in Hereditary Stature, 1886, original article
Multiple linear regression Created 2026-10-14 Updated 2026-10-18
Multiple linear regression models a scalar response by an intercept and several predictors. It is linear in the regression coefficients, even when predictors include transformed variables or interactions. In an observational study, adjustment can address measured confounding, but does not automatically identify a causal effect. Improvements in fitted coefficient of determination require external predictive assessment rather than being treated as proof of improved future prediction.
Ordinal categorical variable Created 2026-09-29 Updated 2026-10-07
An ordinal categorical variable has categories with a meaningful order. Replacing its levels by numerical scores imposes a quantitative spacing and can replace several unrelated level effects by one regression coefficient when a linear trend is scientifically reasonable.
Read conditionally, the fitted slope says that a one-point higher skill score is associated with about 0.209 more household devices in the fitted conditional expectation. The printed summary also claims a significant slope and about 28.93% explained sample variation. Those claims cannot be assembled into one valid fitted model: several regression identities fail, so a single verified coefficient-and-uncertainty report is unavailable.
The response is a device count, while the predictor is a skill score. A simple linear regression models , where is the device count and the skill score. Ordinary least squares chooses the intercept and regression slope to minimize the residual sum of squares. The regression slope describes a conditional association, not the causal effect of training or acquiring a device.
The descriptive statistics put the device count between and , with sample mean about and sample standard deviation about among records. Skill scores range from to , with sample mean about and sample standard deviation about among records. Two missing skill values account for the stated two deleted records; because device counts have no missing values, the regression complete-case sample has observations. Estimating two regression coefficients leaves residual statistical degrees of freedom, matching that part of the output. The units of the two standard deviations differ, so comparing with does not establish that skill is more variable in a substantive sense.
If the coefficient estimates are trusted, the fitted values follow . The intercept predicts about devices at a skill score of zero; zero is within the stated score range, but precision and the number of observations near zero are not shown. A five-point increase in score corresponds to about additional fitted devices and a ten-point increase to about . At a score of ten the fitted value is about , and at 24 it is about . Expected counts may be fractional even though individual counts are integers. These are conditional interpretations of the coefficient fields, not reconstructed raw observations or validated individual predictions.
A coefficient's standard error estimates its sampling uncertainty, whereas the residual standard error describes unexplained response variation. For the intercept, , agreeing with the printed and rounded . Conditional on the model assumptions, this would reject a zero intercept at conventional significance levels. The intercept test is not a test of whether skills predict devices. For the slope, the printed would reject at 5% but not 1%; it does not assign a probability to the null hypothesis or measure the usefulness of prediction. The significance stars simply encode thresholds and add no independent evidence.[ref]
Summarizing Linear Model Fits in the R documentation. Value: coefficient, standard-error, two-sided t and p columns; sigma, residual degrees of freedom and F statistic
The slope row fails its own arithmetic check:At statistical degrees of freedom the ratio gives a two-sided p-value about , while the printed gives about ; neither is . Thus the choice of which source field is trusted changes the apparent strength of evidence, including the 1% decision. A 95% confidence interval built conditionally from the printed estimate and standard error would be about , but it is not a verified interval from a coherent fitted model. In fact, using the printed residual standard error , the complete predictor sample size and predictor standard deviation gives a slope standard error near , not .
The printed coefficient of determination would mean that the fitted line explains of the complete-case sample's centred device-count sum of squares relative to an intercept-only fit; remains unexplained by that comparison. It is not the percentage of devices caused by skill, the fraction of correctly predicted households, or a measure of future predictive accuracy. The adjusted coefficient of determination is consistent with that and the given sample size, allowing rounding. The small adjustment reflects fitting one slope among many cases; it does not validate the model.
For a one-predictor ordinary least squares fit with an intercept and the usual common-variance standard errors, the simple-regression output identities requireHere the printed slope t gives , the printed F field says , and the printed instead implies . These cannot all hold. Moreover, on and statistical degrees of freedom has p-value about , not . Reading the printed F p-value alone would give a 1% significant test of the zero-slope model, but its reported calibration is incompatible with its statistic. No significance label resolves these identities.
There is also a contradiction that does not depend on tail probabilities. Ordinary least squares with an intercept makes the arithmetic mean of fitted values equal the arithmetic mean of observed responses on the analysed records. The printed coefficients and predictor mean give . Deleting two device counts anywhere in the printed range , and allowing the reported overall mean to be rounded, would leave the complete-case device mean between approximately and . The mean bounds after deleting bounded observations therefore rule out reconciling with the response summary merely by citing those two missing predictor values. This is not the mistaken assumption that full-sample and complete-case sample means must always be identical.
If its own field were trusted, residual standard error estimates the unexplained response standard deviation, in device-count units. It is neither the standard error of the slope nor a guarantee that every prediction is accurate to devices. The residual five-number summary has extremes near and and median near , with central quartiles near and . The roughly central median does not establish normally distributed errors, homoscedasticity, independence or a linear conditional expectation. A residual-versus-fitted plot could check curvature and spread; a normal probability plot could assess an error-shape approximation. Neither diagnostic can be recovered from five residual quantiles alone. Individual prediction intervals include response variation as well as coefficient uncertainty and are wider than confidence intervals for the conditional expectation.
For conventional finite-sample t and F calibration, a normal linear model assumes independent mean-zero normal errors of common variance with an appropriate predictor specification. Mean-zero errors conditional on skill and adequate sampling remain essential even when large-sample approximations relax normality. A bounded count response can have nonconstant conditional variance, so residual diagnostics and a scientifically suitable response model matter; count data do not become normally distributed just because the sample is large. Poisson regression is one possible alternative to investigate, but its own conditional mean–variance assumptions and the bounded device range require assessment, not automatic substitution. Complete-case selection can also bias the fitted association if it depends on the response in a relevant way. The only safe summary is conditional: the printed slope is positive, but the numerical effect, its standard error, t/F evidence and explanatory fit require a corrected, coherent output before a single definitive regression claim is made.
The fitted simple linear regression for the numerical vaccination intention scale isHere age is measured in years. The fitted mean increases by about 0.01649 score points per year, or 0.16489 points per decade. The regression coefficient is an association across respondents, not an estimate of how an individual would change on ageing or of a causal effect of age.
The standard error of the age regression coefficient is . Dividing gives , with 2,133 residual statistical degrees of freedom, corresponding to fitted residual degrees. The reported two-sided p-value is , so the zero-slope null hypothesis is rejected at a prespecified 5% level, but not at 1%. An approximate 95% confidence interval isIts positive endpoints are consistent with the test decision; they do not make the slope large.
The coefficient of determination is , so the fitted age trend accounts for only 0.2744% of the observed score variation, compared with an intercept-only prediction. Its adjusted value is . In an intercept-containing simple linear regression, the positive slope implies a positive Pearson correlation coefficient . The reported overall statistic, on one and 2,133 degrees of freedom, agrees with the squared slope test statistic up to printed rounding.
The residual standard deviation estimate is score points, much larger than the fitted decade contrast. At age 50 the fitted value is about , and at 60 it is about . Across the observed ages 19 to 91, the fitted mean changes by only points. Statistical detection with 2,135 observations therefore coexists with weak individual prediction.
The intercept predicts at age zero, outside the observed age range; it should not be given a substantive infant interpretation. Centring age at its observed sample mean, , giveswhich agrees with the reported score sample mean of after rounding. The bounded scale and upper quartile at its maximum motivate attention to a possible ceiling effect; they do not establish homoskedasticity, a normal error distribution or a satisfactory linear conditional mean. Five residual quantiles cannot replace a residual plot or checks of the sampling assumptions.
There is also a source consistency problem. The output reports that all 2,135 records have age and score present, that the attained minimum score is one, and that ages lie between 19 and 91. The positive fitted slope therefore places every fitted value between and . By residual extrema when response extrema are attained, the minimum regression residual must satisfyAt the observation with score one, its residual is already at most . The printed minimum residual, , lies outside this necessary interval. Those summaries cannot all describe the same complete sample and fitted model. The discrepancy is too large to be explained by the displayed rounding. It is present in the original PDF; the individual records would be needed to establish which printed item is wrong.
The ordinary least squares fit estimates the conditional mean of the continuous safety response as a linear function of the income coding:The regression coefficient for income is positive. Since larger response values mean greater safety, one additional coded income unit corresponds to an estimated increase of safety-scale units in the fitted mean. Following the question's stated units, a unit is a £10,000 income step. The observed coding also uses income bands with open end categories, so this is a linear trend per coded band step; it is not evidence of a known constant effect for every extra pound, especially within the open top band. The output's abbreviated variable label does not override the stated units.
The intercept is the fitted mean at income code zero. It is estimated as , but zero is outside the observed income codes, so that value is an extrapolated model baseline, not an observed estimate for a particular income category. Its small p-value tests a zero intercept; it is not the main test of the income association.
For the income coefficient, the standard error is . The reported test statistic and two-sided test giveproviding strong evidence against the null hypothesis of zero linear slope under the stated model assumptions. A Student t confidence interval, using residual statistical degrees of freedom, isThis is an interval for the population linear coefficient under the model, not an interval containing of individual safety scores. The large-sample estimate is precise enough to detect a positive association, but that does not establish substantial individual predictive power.
The coefficient of determination is : the fitted line accounts for about of the in-sample variation about the response sample mean. The adjusted coefficient of determination is about . Thus income alone explains very little of the observed variation, despite the small slope p-value. The residual standard error of response units describes substantial scatter about the fitted line. This is an estimated residual standard deviation, rather than the standard error of the slope or a complete individual prediction interval.
The overall F-test has on statistical degrees of freedom and . With one predictor and an intercept, it tests the same zero-slope hypothesis as the coefficient Student's t-test; , up to rounding. It is not an additional independent confirmation. In this simple linear regression, the Pearson correlation coefficient has the slope's sign and magnitude , another description of the weak linear association.
The regression uses complete observations and estimates two coefficients, giving residual statistical degrees of freedom. The deletion of observations is complete-case analysis; extending its conclusions to the full target population requires suitable assumptions about the missing-data mechanism. Classical reported standard errors also rely on an adequate linear conditional mean, independent errors and homoscedasticity; a normal linear model gives the finite-sample Student t-distribution and F-test calibration, while large-sample approximations can justify similar tests under weaker distributional assumptions. The printed summary alone does not establish these assumptions. Regression diagnostics and, where appropriate, heteroskedasticity-consistent standard errors address different parts of that assessment.
Finally, this unadjusted observational study estimates an association. Other covariates, such as age or experience status, may be related to both income and reported safety. Without additional design or causal identification assumptions, the positive fitted slope does not establish that increasing income would cause an increase in safety.
TODO: the numerical results, association direction and statistical evidence are unavailable. The required output includes the actual fitted model, estimates and uncertainty, test statistics, statistical degrees of freedom, p-values and an appropriate model-fit summary. An age-adjusted regression coefficient, if reported, would describe a conditional association under that model rather than the same estimand as an unadjusted correlation. Irrespective of its numerical outcome, this observational study does not by itself show that executive power changes real-life friendliness.
TODO: the coefficients and their numerical and entries cannot be recovered. The coefficient estimate gives a modeled difference relative to the stated reference coding; its standard error quantifies uncertainty, and the usual coefficient test uses for a zero-coefficient null hypothesis. The p-value requires the appropriate reference distribution and statistical degrees of freedom. In a conventional R coefficient table an
Estimate is usually an unstandardized regression coefficient, not automatically a standardized regression coefficient; the table and model documentation must establish which meaning of is intended. These definitions supply no missing numerical values. Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 3 a Solution Created 2026-10-03 Updated 2026-10-14
The output must first identify the response scale and the formula. If the initial fit is ordinary least squares to the untransformed response with all fifteen predictors and an intercept, its normal linear model isFor full rank , the residual degrees of freedom are . The residual standard error is and estimated coefficient covariance is . A coefficient test divides the estimate by its standard error and compares with a reference distribution; the overall test of all fifteen slopes compareswith . The intercept-only residual sum is . Adjusted R-squared penalizes the loss of residual degrees of freedom, unlike ordinary .
Each regression coefficient measures a conditional association holding the other columns fixed. The southern-state indicator compares two state categories at equal values of all other predictors. Rescaling changes the units of a coefficient, so one cannot infer effects per original currency unit or per original percentage unit without the scaling information. If the actual formula uses , exponentiating a coefficient gives a multiplicative response change rather than an additive change; if both response and a predictor are logged, the slope is an elasticity. These interpretations cannot be interchanged.
The two police-expenditure variables are likely strongly associated and need a multicollinearity check: individual coefficients can be unstable even when their joint contribution predicts well. Their actual correlation should be calculated, not presumed numerically. Similar considerations apply to age-specific unemployment. With only 47 observations and up to 16 mean parameters, examine regression leverage, Cook's distance, residual distribution, variance versus fitted values, nonlinear effects and predictive cross-validation. State-level geographical dependence may also violate the independent-error model.
The observations are aggregate states. An association between a state covariate and crime rate is not an individual causal effect: ecological fallacy, confounding and reverse causation are relevant. For example, greater recorded crime can induce greater police expenditure. The absent coefficient table and model call prevent deciding which predictors were significant or even whether the fitted response was transformed. The preceding degrees of freedom and formula interpretations are conditional on the explicitly stated full linear-model specification.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 41 1 Solution Created 2026-10-03 Updated 2026-10-14
scan reads the numerical prices, including the three missing-value markers, into a vector. The data must be read row by row for the subsequent factor construction to match them. The sample size available for analysis is therefore , rather than . The numerical summary describes the observed prices: the sample median is £43.54 and the sample mean is £46.94. The upper tail, particularly the boots, raises the sample mean above the sample median. These summaries mix very different products and are not adjusted country comparisons.The two character scans create labels.
gl(8,5,length=40,labels=item) makes a regression factor with each of eight item labels repeated five times. gl(5,1,length=40,labels=country) cycles through the five country labels once for each item. For a regression factor and numerical response, the two plot commands produce grouped box plots. The country box plots suggest lower US prices, while the item box plots show particularly expensive boots and inexpensive cardigans. They are descriptive displays of this small basket, with different item compositions where prices are missing; they cannot separate country effects from item effects.The first
lm fits an additive two-way analysis of variance:The constraints are R's usual treatment coding. The normal linear model used for the printed tests assumes independent errors with common variance and approximately a normal distribution, and no item-by-country interaction in the mean. Missing prices are omitted, leaving responses and independent mean coefficients. Thus the residual degrees of freedom are . This deletion is defensible for the conditional price model when missingness does not depend on the unobserved error after conditioning on the two factors; the output itself does not establish such a missing-data mechanism.The
anova tables report sequential sums of squares, rather than order-independent adjusted effects. If are the residual sums of squares from the intercept-only, country-only, item-only and additive fits, the first order allocates to country and to item. The second order allocates to item and to country. Both allocations sum to the same total explained sum of squares, and both end with the same residual sum of squares . The three missing combinations destroy balanced factorial orthogonality, so the allocation changes with order. To test country after allowing for items, use the country row in the second table; to test item after allowing for countries, use the item row in the first table. The first-entered rows do not supply those adjusted tests.Each mean square in ANOVA divides its sum of squares in ANOVA by its statistical degrees of freedom, and each printed F-statistic divides that mean square in ANOVA by . In particular, the adjusted country partial F-test haswith an reference F-distribution and p-value approximately . The adjusted item partial F-test gives on statistical degrees of freedom. Both factors contribute strongly under the additive normal linear model. The larger item sum of squares in ANOVA measures the much greater differences between these products, but is not evidence that every pair of items differs significantly.
The intercept is the fitted UK price for the reference jeans, not their observed price and not the overall sample mean. Each country regression coefficient is its adjusted price difference from the UK, assumed common across items: Sweden is £5.224 lower, France £10.708 lower, Germany £7.676 lower and the US £21.328 lower. Each item regression coefficient is its adjusted difference from the reference jeans, assumed common across countries. Thus the fitted UK boots price is , and the fitted US boots price is .
The coefficient standard errors come from , where and is the design matrix. Dividing each estimate by its standard error gives the displayed Student t-test statistic, with statistical degrees of freedom. The stars summarize the corresponding two-sided p-values. The individual tests compare each indicated country or item with its reference level, conditional on all other additive terms; they are neither tests of every pairwise comparison nor a simultaneous confidence interval procedure. In particular, Sweden's p-value provides weaker evidence than the other country contrasts, and does not establish equality with the UK. The intercept test has little substantive relevance, and interpreting many individual stars also raises multiple hypothesis testing issues.
The residual standard error measures unexplained prices in pounds. With total corrected sum of squares , the coefficient of determination and adjusted coefficient of determination areMuch of this impressive fit is due to the large differences between items. The overall F-test compares the additive fit with a constant mean: on statistical degrees of freedom. It tests that all eleven non-intercept coefficients vanish, not that the additive model is adequate. Regression diagnostics should examine regression residuals, changing price variability across items and possible interaction. Percentage differences may be more plausible than common pound differences, motivating a natural logarithm of price. No random sample of countries or products, and no independent replication of a price within a cell, is supplied; broad claims about all designer goods or the causes of country differences require more than these conditional tests.
Finally,
Item*Country expands to both main effects and their full interaction. A cell-means parameterization has one separate fitted mean for every observed cell. With one response per cell its design matrix has row matrix rank , while the full layout nominally has coefficients. Three coefficient combinations are aliased because their cells are missing. This is saturation of an unreplicated two-factor regression: every observed price is fitted exactly and the residual degrees of freedom are zero. The final fit has zero residuals, and no residual-based estimate of the error variance or ordinary interaction significance test. The printed numerical summary will mark three coefficients unestimable; coefficient standard errors, tests and adjusted involve undefined division by zero, potentially appearing as NaN or Inf according to numerical roundoff. Perfect interpolation here is a consequence of a saturated statistical model, not evidence for a superior predictive model. Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 44 1 a Solution Created 2026-10-03 Updated 2026-10-14
Use a longitudinal study with repeated measurements of the same individuals. Recruit people across several starting ages and measure the same ear, with a standardized anatomical definition and instrument, at baseline and subsequent visits over several years. Repeat measurements at each visit to estimate measurement error; where practical, conceal previous measurements from the observer. Record sex, body size, birth cohort and observer, and document reasons for loss to follow-up.
A simple random-intercept linear mixed model for ear length at elapsed follow-up time isThe individual intercept absorbs persistent differences between people. Alternatively, differences remove that intercept directly. Estimate the within-person regression coefficient and its confidence interval, accounting for the correlation of repeated measurements. Compare it with the cross-sectional slope rather than treating the two slopes as automatically identical.
This longitudinal study directly checks whether an individual's ears tend to lengthen as time passes. Several entry-age cohorts help assess whether the change varies with starting age. Calendar-period changes and selective dropout can still affect interpretation, so repeated observation alone does not eliminate every possible source of confounding or selection bias.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 44 1 b Solution Created 2026-10-03 Updated 2026-10-14
The association is strongly statistically significant under the reported regression assumptions, but age alone has only moderate predictive ability. The reported confidence interval for the age regression coefficient excludes zero by a wide margin. If it is the usual two-sided 95% interval from a normal linear model with an intercept and one predictor, there are degrees of freedom. Taking givesThus the two-sided p-value against zero slope is far below . This conclusion concerns a statistical association in the sampled population; it does not establish an individual growth rate. Clustering by practitioner, nonconstant variance or nonindependent observations would require an appropriate standard error rather than blind reliance on this calculation.
The scatter plot has substantial vertical spread at each age. A narrow slope confidence interval describes uncertainty about the average trend, whereas a prediction interval for a new person's ear length must also include the residual variance. The reported interval even permits an approximate numerical assessment: write and let . In simple linear regression, , while the fitted and residual sums of squares are and . Hence the coefficient of determination isUnder these assumptions, age explains only about 27% of the sample variation; roughly 73% remains unexplained. The calculation is approximate because the printed slope and interval are rounded. For a new individual aged , the usual prediction interval is based onThe leading one represents individual residual variation. The provided summaries do not determine and separately, so they do not supply a numerical prediction interval.
Record sex, height or another measure of body size, ancestry, family characteristics and practitioner or measurement method. Use these covariates in a multiple linear regression, allowing scientifically justified nonlinear age effects or interactions, and assess prediction error on held-out observations. A guessed overall sex proportion cannot replace individual sex measurements or identify sex-adjusted effects.
There is a source inconsistency: the PDF's numerical ear-length summary is ten times the scale of its plotted measurements and fitted line. Indeed, the fitted line at the reported mean age gives about mm, whereas the printed mean is about ten times larger. Missing decimal points in the summary are a plausible explanation. The significance and approximate above use the mutually consistent slope, interval and graph; they do not treat the inconsistent summary as valid data.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 41 1 Solution Created 2026-10-03 Updated 2026-10-14
Write . In this normal linear model, the ordinary least squares criterion is . Differentiating with respect to gives the normal equations for linear least squares, . Full column rank of the design matrix makes invertible, and completing the square proves that the unique minimum isSince , its sampling distribution is the multivariate normal distributionLet be the hat matrix. It is symmetric and idempotent with rank , and . The regression residual vector is , soAn orthogonal projection of a Gaussian vector onto the residual space gives . The residual projection and fitted projection have zero cross-covariance, hence are independent because they are jointly normal. In particular, is an unbiased estimator of and is independent of . The maximum-likelihood estimator of instead divides by and is not unbiased.
For the null hypothesis , put . Under that null hypothesis, is standard normal and independent of . Therefore the Student t-test usesA two-sided level- test rejects when . The denominator is the estimated standard error of the regression coefficient.
The fitted linear regression includes an intercept and three covariates:Thus , and the residual degrees of freedom are . The fitted conditional mean isEach slope measures a conditional association with the response while the other two covariates are held fixed. Increasing wind speed by one mile per hour corresponds to a fitted decrease of in the concentration units used. Its standard error is , giving and a two-sided p-value of : evidence of a negative conditional association at the 5% level. The temperature slope is per degree Fahrenheit, with standard error , and p-value . The insolation slope is per langley per day, with standard error , and p-value . Neither of these last two conditional effects is significant at 5%; that does not establish that either true slope is zero. These are associations, not a demonstration of causal effects.
The intercept estimates the mean at zero values of all three covariates. Its value has a large standard error , giving and p-value . The zero-covariate combination may be outside the observed range, so this test may have little practical relevance. Every coefficient test uses a Student t-distribution with degrees of freedom.
The reported residual standard deviation measures unexplained variation in concentration units; the subsequent table gives , consistent with after rounding. The five-number residual summary describes the spread, from to , with median . An intercept forces the residual sum to zero, not the residual median. These five numbers alone cannot establish normal errors, constant variance or independence; residual-versus-fitted and quantile-quantile plots would be more informative, and successive days also warrant checking serial dependence. The coefficient of determination means that 65.33% of the sample response sum of squares about its mean is explained by this fit. Its adjusted version iswhich accounts for the number of estimated regression coefficients.
The stepwise selection by the Akaike information criterion searches between the intercept-only model and the specified model with all three main effects. For these Gaussian fits, the printed Akaike information criterion is, up to a constant common to the candidates,The full model has and AIC . Removing insolation increases the residual sum of squares by but decreases AIC to , so that removal is chosen. Removing temperature or wind instead would give AIC or and is worse. In the next step the candidate models include deletions and restoration of insolation. Keeping wind and temperature has the smallest AIC: removing temperature gives , restoring insolation gives , and removing wind gives . Hence the search stops, givingThe accompanying F-tests compare a larger model with a one-parameter reduction: , where is estimated from the larger model. For example, removing insolation gives , equal to the corresponding squared test statistic. Deletions from the second-stage model use in the denominator, whereas restoring insolation uses the full-model denominator. These tests describe the comparisons; they do not determine the AIC choice. In particular, temperature is retained despite its deletion-test p-value . AIC balances fit and complexity, and a stepwise optimum need not be a global optimum over a richer model class. Ordinary coefficient inference after choosing a model does not account for the selection itself.
For positive responses, the Box–Cox transformation is for , and . Its profile likelihood refits the linear regression and variance at each and includes the transformation Jacobian. The graph peaks at roughly –. The approximate 95% likelihood-ratio confidence interval contains values a little below zero through approximately one, using the cutoff . Thus a logarithmic transformation () and a square-root transformation () are plausible, while leaving the response on its original scale () is at or very near the upper confidence boundary. The broad profile supports considering a mild power transformation; it does not determine a sharply estimated power. The raster does not justify more precise endpoints or a decisive assertion about which side of the boundary lies.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 41 4 c Solution Created 2026-10-03 Updated 2026-10-14
The second analysis is an exposure-adjusted Poisson regression for case counts:Cell counts are independent, and their conditional variance equals their conditional mean. The population term is an offset with coefficient fixed at one. Thus the fitted case rate is ; treating as a free covariate would fit a different model. Age multipliers and the adjusted city rate ratio are exponentials of the corresponding regression coefficients.
The fitted model again has nine parameters and six residual degrees of freedom. Sequential additions of age and city reduce the Poisson deviance by on seven degrees of freedom and on one, respectively. The residual deviance is , close to the six residual degrees of freedom. The city likelihood-ratio test is overwhelmingly significant, as in the binomial analysis. The table provides no Poisson coefficient estimates, so an exact Poisson city rate ratio cannot be read from it.

