This appendix collects every named formula from Chapters 1 through 16, in the order each chapter introduces it. Each formula keeps the ALRM notation used throughout the book: for a response, for a predictor, for population parameters, for their least-squares estimates, for a residual, for the design matrix, and a prime for transpose. One plain-language line under each formula states what it claims, so this page works as a quick lookup during homework and exams rather than a replacement for the chapter’s derivation. For full context, definitions, and worked examples, follow the chapter link in each heading.
A.1 Chapter 1: Regression as a way of thinking¶
Anatomy of a statistical model
Any response splits into a systematic part that depends on the predictor and a random part that does not.
Simple linear regression function
The average response at a given falls on a straight line with intercept and slope .
Fitted line (estimates)
The fitted line uses sample estimates and in place of the unknown and to predict a response from .
Galton’s fitted height line
A child’s predicted height rises by about 0.637 inch for each extra inch of average parent height, the historical example that gave regression its name.
A.2 Chapter 2: Simple linear regression¶
SLR model
Each observed response is the true line at plus a random error .
Error assumptions
Errors average to zero, share one variance across all observations, and do not correlate with each other.
Mean response
The population line traces the average of at each value of .
Least-squares criterion
Least squares picks the intercept and slope that make the sum of squared vertical gaps to the data as small as possible.
Deviation sums
measures spread in , measures spread in , and measures how and move together; every least-squares formula below is built from these three numbers.
Normal equations
Setting the calculus derivatives of to zero gives two linear equations in and whose solution is the least-squares line.
Slope estimate
The estimated slope is the covariance of and scaled by the spread of .
Intercept estimate
The estimated intercept forces the fitted line through the point of averages .
Fitted value
The fitted value is where the estimated line sits above (or below) observation ’s predictor value.
Residual
The residual is the vertical gap between an observed response and its fitted value.
Residual identities
The least-squares residuals sum to zero, are uncorrelated with and with the fitted values, and preserve the total of , four automatic checks on any regression fit.
Error sum of squares
totals the squared residuals, the leftover variation the line does not explain.
Error variance estimate
Dividing by , the degrees of freedom left after estimating two parameters, gives an unbiased estimate of the error variance .
Unbiasedness of MSE
On average, across repeated samples, hits the true error variance exactly.
Mean and variance of
The slope estimate is unbiased, and it grows less variable as the predictor spreads out more.
Mean and variance of
The intercept estimate is unbiased, with variance that grows if sits far from zero.
Estimated standard errors
Replacing with in the variance formulas gives the standard errors software reports.
as a linear estimator
The slope estimate is a weighted sum of the responses, which is the fact the Gauss-Markov proof builds on.
Normal likelihood
Under normal errors, this product measures how plausible a candidate is given the observed data.
MLE of variance
Maximizing the likelihood over gives a variance estimate that divides by instead of , which is why it is slightly biased low.
A.3 Chapter 3: Inference for simple linear regression¶
Sampling distribution of
Across repeated samples, the slope estimate follows a normal distribution centered at the true slope.
Sampling distribution of
The intercept estimate is likewise normal and unbiased, with the variance derived in Chapter 2.
statistic for the slope
Standardizing the slope estimate by its estimated standard error gives a distribution with degrees of freedom, the basis for every slope interval and test.
Confidence interval for the slope
This interval is a range of plausible values for the true slope , built from the estimate plus or minus a multiple of its standard error.
Slope test statistic
This ratio measures how many standard errors the estimated slope sits from zero, used to test whether predicts at all.
Estimated standard error of the slope
This is the number software reports next to , an estimate of how much the slope would bounce around across repeated samples.
Estimated standard error of the intercept
This is the corresponding uncertainty measure for the intercept estimate.
Variance of the fitted mean
The uncertainty in a fitted mean response grows the farther sits from the center of the data.
Confidence interval for a mean response
This interval traps the true average response at , not a single new observation.
Variance of a prediction
Predicting one new observation carries an extra unit of variance beyond estimating the mean, because a single case also carries its own random error.
Prediction interval for a new observation
This wider interval is built to cover one future observation at , not the population average.
ANOVA decomposition
Total variation in splits exactly into the part the line explains () and the part it leaves over ().
Mean squares
Dividing each sum of squares by its degrees of freedom converts it into an average squared contribution, ready to compare in an ratio.
Regression sum of squares
measures how far the fitted values swing away from the overall mean, the credit the line earns for tracking .
Expected mean squares
only exceeds on average when the true slope is nonzero, which is the logic behind the test.
test statistic
A large ratio of explained to unexplained variance is evidence against the null hypothesis that .
equals squared
In simple regression the test for the slope and the two-sided test for the slope are the same test written two ways.
Coefficient of determination
is the proportion of total variation in that the line explains, between 0 and 1.
-squared equals -squared
In simple regression, the coefficient of determination is exactly the squared Pearson correlation between and .
Working-Hotelling band
This band covers the whole regression line at every simultaneously, wider at each single point than the pointwise confidence interval.
A.4 Chapter 4: Correlation¶
Sample covariance
Covariance measures the average product of how far and each stray from their own means, positive when they tend to rise together.
Pearson correlation
Correlation rescales covariance by both standard deviations so the result never depends on the units of or .
Bounds of
Correlation always lands between perfect negative and perfect positive linear association.
Correlation and slope
The regression slope and the correlation carry the same sign and convert into each other once you rescale by the ratio of standard deviations.
Determination equals squared
Squaring the correlation gives the share of variation the line explains.
Product of the two regression slopes
Regressing on and regressing on give two different lines whose slopes multiply to , a reminder that “the” regression line depends on which variable you predict.
Correlation test
This statistic tests whether the true correlation is zero, and it equals the slope’s test exactly.
Fisher transformation
This transform straightens out ’s skewed sampling distribution into an approximately normal one, which makes confidence intervals for possible.
Confidence interval for
Build the interval on the scale, then transform both endpoints back to the correlation scale.
Variance of (large sample)
Correlation estimates get more precise with more data and, for a fixed , are least variable when the true correlation is near zero.
Bivariate normal density
This surface describes two jointly normal variables at once; its five parameters are the two means, two standard deviations, and the correlation .
Bivariate normal conditional mean
Under bivariate normality, the average of given is exactly a straight line in , which is why simple linear regression is the natural model here.
Bivariate normal conditional variance
Knowing shrinks the spread of by a factor of , the same factor that shows up as in regression.
Spearman rank correlation
Replacing each value with its rank before computing Pearson’s gives a correlation that detects any monotone relationship, not only a straight-line one.
A.5 Chapter 5: Randomization and bootstrap inference for regression¶
Slope estimate
The same least-squares slope from Chapter 2 is the statistic this chapter re-derives its uncertainty for, without assuming normal errors.
No-association null
The permutation test’s null hypothesis is that the pairing between and carries no information, so shuffling one against the other should not matter.
Permuted slope
Recomputing the slope after randomly reshuffling the values against the values gives one draw from the null distribution.
Exact permutation -value
The exact -value is the fraction of all possible shuffles that produce a slope as extreme as the one actually observed.
Monte Carlo permutation -value
Since checking all shuffles is usually impossible, this estimate uses random shuffles, with of them at least as extreme as the observed slope.
Permutation resolution floor
With only permutations, the smallest reportable -value is , so a very small true -value needs many permutations to resolve.
Case-resampling bootstrap slope
Each bootstrap replicate refits the slope on a resample of whole pairs drawn with replacement from the original data.
Residual-resampling bootstrap
This alternative bootstrap keeps the values fixed and builds new responses by adding randomly resampled residuals to the fitted line.
Bootstrap standard error
The spread of the bootstrap slope estimates across replicates estimates the standard error of without any normal-error formula.
Percentile interval
This interval simply reads off the lower and upper quantiles of the bootstrap distribution of .
Basic (reflection) interval
This interval reflects the bootstrap quantiles around the original estimate, which corrects for skew that the plain percentile interval can miss.
Classical interval for slope
The Chapter 3 formula reappears here as the benchmark the permutation and bootstrap intervals are compared against.
A.6 Chapter 6: Matrix algebra for regression¶
Model in matrix form
Stacking every observation into vectors and matrices writes the whole regression model, with any number of predictors, in one equation.
Design matrix dimensions
has one row per observation and one column per parameter, including a column of ones for the intercept, so counts parameters and counts observations.
Matrix product entry
Each entry of a matrix product is the dot product of a row of with a column of .
Transpose of a product
Transposing a product reverses the order of the factors.
Cross-product matrix
Each entry of is a sum of products between two columns of , summarizing how the predictors relate to each other and to themselves.
Cross-product vector
This vector summarizes how each predictor column relates to the response.
Symmetry of
The cross-product matrix always equals its own transpose, a fact the least-squares derivation relies on.
2x2 determinant and inverse
For a two-by-two matrix, the determinant tells you whether an inverse exists, and this formula hand-computes it when it does.
Matrix normal equations
The two-equation normal equations from Chapter 2 collapse into this single matrix equation that works for any number of predictors.
Least-squares estimator
Inverting and multiplying by solves the normal equations in one step, giving every least-squares coefficient at once.
Hat matrix
is the matrix that turns the observed responses directly into fitted values, “putting a hat on” .
Fitted values and residuals
The hat matrix produces the fitted values directly, and what remains after subtracting them from is the residual vector.
Idempotency of
Applying the hat matrix twice does nothing more than applying it once, and its diagonal entries sum to , the number of parameters.
SSE as a quadratic form
The error sum of squares can be written directly as a quadratic form in , or equivalently as the squared length of the residual vector.
SS decomposition (matrix)
This matrix identity is the geometric version of : three projection matrices that add up exactly.
Variance estimate
With parameters instead of two, the error variance estimate now divides by degrees of freedom.
Expectation of a linear map
Expectation passes through a fixed matrix and a fixed vector added afterward, the matrix analogue of .
Covariance of a linear map
Transforming a random vector by a fixed matrix sandwiches the original covariance matrix between that matrix and its transpose.
Unbiasedness of
On average, the least-squares coefficient vector recovers the true parameter vector exactly.
Covariance of
This matrix holds the variance of every coefficient on its diagonal and the covariance between pairs of coefficients off the diagonal.
Estimated covariance of
Substituting for gives the covariance matrix software actually reports.
Sampling law of
Under normal errors, the whole coefficient vector follows a multivariate normal distribution centered at the truth.
Multivariate normal of
The response vector itself is multivariate normal, with mean given by the regression surface and independent equal-variance errors.
A.7 Chapter 7: The general linear model¶
General linear model
The same matrix model from Chapter 6 is now the standing model for every remaining chapter, covering any number and kind of predictor.
Error moments
Errors average to zero, share one variance, and do not correlate with each other, the matrix form of the Chapter 2 assumptions.
Sum of squares objective
This is the squared length of the residual vector, the quantity least squares minimizes over .
Normal equations
Setting the gradient of to zero gives this equation, whose solution is the least-squares estimate.
Least-squares estimator
This is the same closed-form solution from Chapter 6, now the working formula for every model in the rest of the book.
Orthogonality of residual
The residual vector is perpendicular to every column of , the algebraic reason the residuals are uncorrelated with each predictor.
Hat matrix
projects the response vector onto the column space of , the geometric meaning behind “fitting” a regression.
Fitted values
Applying the hat matrix to the data produces the fitted values, the closest point to that the model can reach.
Residual vector
The residuals are what is left of after removing the part the model can explain.
Hat matrix trace
The hat matrix’s diagonal sums to , the number of fitted parameters, which leaves degrees of freedom for estimating error.
Mean of
Least squares is unbiased for any design matrix of full column rank.
Covariance of
This is the general-model version of the coefficient covariance matrix, used to build every standard error, confidence interval, and test in multiple regression.
Sampling distribution of
Under normal errors, the coefficient vector is exactly multivariate normal, which underlies every and procedure in multiple regression.
Error sum of squares
is the squared length of the residual vector, written two equivalent ways.
Error variance estimator
Dividing by gives an unbiased estimate of for a model with parameters.
Unbiasedness of MSE
This expectation is the algebraic reason dividing by , not , makes unbiased.
Quadratic form expectation
This general tool computes the expected value of any quadratic form in a random vector, the technique behind proving .
Estimated covariance of
Every coefficient’s standard error, in R’s or Python’s regression output, is the square root of a diagonal entry of this matrix.
Coefficient of determination
still measures the proportion of total variation explained, now for a model with any number of predictors.
A.8 Chapter 8: Multiple regression in practice¶
Multiple linear regression model
Each response depends on several predictors at once, with slopes and one intercept, for parameters total.
Partial slope (least squares)
Each entry of is a partial slope: the effect of one predictor holding the others in the model fixed.
Error variance estimate
This is the multiple-regression version of the error variance estimate from Chapter 7, with counting every predictor plus the intercept.
Extra sum of squares
This measures how much extra variation explains once is already in the model.
Sequential decomposition of SSR
The total explained variation splits into a chain of extra contributions, one predictor added at a time in a chosen order.
General linear test statistic
Comparing a reduced model against a full model , this ratio tests whether the extra predictors in improve the fit by more than chance.
Pythagoras for nested models
The reduced model’s error splits into the full model’s error plus a right-angle piece measuring the extra distance the bigger model’s fit travels.
One-coefficient test equals squared
Testing one coefficient with the general linear test gives the same answer as the usual test, squared.
Added-variable slope equals coefficient
Regressing the residuals of against the residuals of , after removing every other predictor from both, recovers ’s own coefficient .
Coefficient of determination
measures the share of total variation the full set of predictors explains together.
Adjusted squared
This version penalizes adding predictors that do not pull their weight, so it can fall even when plain rises.
Standardized coefficient
Rescaling a coefficient by the ratio of standard deviations puts predictors measured in different units on a common scale for comparing their impact.
A.9 Chapter 9: Model diagnostics¶
Hat matrix
The same projection matrix from Chapter 7 now supplies the diagonal entries that flag unusual predictor values.
Leverage value
An observation’s leverage value measures how far its predictor values sit from the center of the predictor space, and how much pull it has on its own fitted value.
Leverage value bounds and sum
Every leverage value falls between zero and one, and the leverage values across all observations always add up to the number of parameters.
Leverage value in simple regression
In simple regression, the leverage value grows with squared distance from , confirming that points far from the center of carry more influence.
Leverage value cutoff
This rule flags an observation as a high-leverage point when its leverage value exceeds twice the average leverage value of .
Residual covariance
Residuals do not all share the same variance; high-leverage points have smaller residual variance because the fit is pulled closer to them.
Semistudentized residual
Dividing a residual by the overall residual standard deviation gives a rough check for outliers that ignores the varying leverage values across observations.
Standardized residual
This version corrects for each observation’s own leverage value, giving residuals that are more directly comparable across the dataset.
Studentized deleted residual
This residual refits the model without observation before standardizing it, which gives an exact distribution for flagging outliers.
Deleted variance identity
This shortcut computes the error variance from the model with observation removed, without actually refitting.
Deleted residual
This is the gap between observation ’s response and the prediction a model trained without it would make.
Bonferroni outlier cutoff
Testing every observation for being an outlier at once inflates the false-positive rate, so this cutoff tightens the threshold by a factor of to compensate.
Leave-one-out coefficient update
This formula gives the exact shift in every coefficient caused by removing one observation, without refitting the model.
Sherman-Morrison downdate
This linear algebra identity updates a matrix inverse after removing one row, the engine behind every leave-one-out formula in this chapter.
Cook’s distance
Cook’s distance combines how large a residual is with how large its leverage value is, into a single number measuring an observation’s overall influence on all the fitted values.
DFFITS
This measures how many standard errors observation ’s own fitted value shifts when that observation is removed.
DFBETAS
This measures how many standard errors one specific coefficient shifts when observation is removed, pinpointing which parameter a case influences most.
Durbin-Watson statistic
This statistic compares consecutive residuals to detect leftover autocorrelation, with values near 2 indicating none.
Lack-of-fit decomposition
When some predictor values repeat, the error sum of squares splits into pure error, unavoidable scatter at repeated ’s, and lack of fit, systematic bias from a wrong functional form.
Pure error sum of squares
This totals the scatter of responses around their own group mean at each repeated predictor value, variation no model could ever explain.
Lack-of-fit sum of squares
This totals the gap between each group’s actual mean response and what the fitted line predicts there, the part attributable to a wrong model shape.
Lack-of-fit test
A large ratio here is evidence that the straight-line model misses real curvature or structure in the data.
A.10 Chapter 10: Remedial measures and transformations¶
Log-log model
Taking logs of both variables fits a model where the relationship is a straight line on the log scale, appropriate for multiplicative, curved relationships.
Log-linear model
Taking a log of only the response fits exponential growth or decay in the original units.
Log-log exact factor
Multiplying by a constant multiplies the predicted by that constant raised to the power , the defining property of a log-log model.
Log-log elasticity (approx)
The slope in a log-log model is approximately the percent change in per one percent change in , an elasticity.
Log-linear exact factor
Adding one unit to multiplies predicted by , which converts to a percent change.
Box-Cox family
This one family of transformations includes the raw scale (), the log scale (), and everything between, so the data can pick the best power.
Box-Cox full log-likelihood
This likelihood scores how well a given transformation power makes the transformed data fit a normal-errors regression.
Box-Cox profile log-likelihood
Maximizing over and for each leaves this profile, which is scanned over to find the best transformation.
Box-Cox confidence interval
Every whose profile likelihood stays within this cutoff of the maximum is a plausible transformation, not just the single best one.
WLS variance model
When error variance differs across observations but a known weight tracks it, this model replaces the constant-variance assumption of ordinary least squares.
Weighted least squares criterion
Weighted least squares minimizes a sum of squared errors where noisier observations, with smaller weight, count for less.
WLS estimator
This closed-form solution generalizes ordinary least squares by inserting the weight matrix into the normal equations.
WLS variance
This is the weighted-regression analogue of the ordinary least squares coefficient covariance.
Whitening transform
Rescaling both and by the square root of the weights turns weighted least squares into an ordinary least squares problem on the transformed data.
Known-variance weights
When each observation’s error standard deviation is known or estimated separately, its weight is the reciprocal of that variance, so noisier points count less.
Huber loss
This loss behaves like squared error for typical residuals but switches to a gentler absolute-value penalty for large ones, limiting an outlier’s pull on the fit.
Huber weight
Robust regression re-expresses the Huber loss as a weighted least squares problem where large residuals get automatically downweighted.
Robust regression estimating equations
These equations, solved iteratively since the weights depend on the fit, define the robust regression estimate.
A.11 Chapter 11: Categorical predictors and interactions¶
Reference-cell indicators
A categorical predictor with levels becomes zero-one indicator columns, one level held back as the reference.
One-factor reference-cell model
This model fits a separate mean response for each category using indicator predictors inside the ordinary regression framework.
Group mean readings
The intercept is the reference group’s mean, and each coefficient shifts the mean up or down for its own level.
Indicator coefficient
Every indicator coefficient is a difference in means between one level and the reference level.
Rank-deficiency dependence
Using all indicator columns instead of makes them add up to the intercept column exactly, which is why one level must be dropped to keep invertible.
Parallel-lines (ANCOVA) model
This model fits two parallel lines, one per group, that share a common slope but have different intercepts shifted by .
Interaction model
Adding a product term lets the slope itself differ between groups, not just the intercept.
Group slopes under interaction
The interaction coefficient is exactly the difference in slope between the two groups.
Between-group gap under interaction
Once slopes differ, the vertical gap between the two group lines is no longer constant; it changes with .
General linear test (parallel vs separate)
This is the Chapter 8 general linear test applied to compare a parallel-lines model against a model with an interaction term.
- equivalence for one term
Testing a single interaction coefficient with a test or with the general linear test gives the same conclusion.
Quadratic polynomial model
Adding a squared term lets the fitted curve bend, while the model stays linear in the parameters and fits with ordinary least squares.
Centered predictor
Subtracting the mean before squaring reduces the correlation between and , which stabilizes the numerical fit of a polynomial model.
Centered coefficient map
These equations translate the coefficients of a centered quadratic model back into the coefficients of the original, uncentered one.
Hinge (piecewise) predictor
This term stays at zero until passes the breakpoint , then rises linearly, letting the slope change at while the model stays linear in its parameters.
One-way ANOVA model
Classic one-way ANOVA is a special case of regression with a categorical predictor, where is the effect of group .
ANOVA null hypothesis
Testing whether all group effects are zero in the ANOVA formulation is exactly the general linear test that all indicator coefficients are zero in the regression formulation.
ANOVA / regression
The familiar ANOVA statistic is the same ratio of explained to unexplained mean squares used throughout the book.
A.12 Chapter 12: Multicollinearity, variable selection, and validation¶
Variance inflation factor
measures how much ’s coefficient variance is inflated because can be predicted from the other predictors, where comes from regressing on them.
Inflated coefficient variance
This shows directly how multicollinearity multiplies a coefficient’s variance by its VIF beyond what its own spread would give alone.
Adjusted -squared
This model-selection criterion rewards a model with parameters for explaining variation while penalizing it for using more parameters to do so.
Mallows
A candidate subset model is judged well-specified, neither underfit nor overly complex, when its lands near .
AIC
This criterion balances fit against complexity using a fixed penalty of two per parameter, smaller values indicating a better tradeoff.
BIC
This criterion penalizes each added parameter more heavily than AIC once is at least eight, favoring smaller models as sample size grows.
PRESS statistic
This totals the squared errors from predicting each observation using a model fit without that observation, a built-in cross-validation score.
PRESS deleted-residual shortcut
This computes PRESS from a single fit’s residuals and leverages, without refitting the model times.
Deleted residual
The gap between an observation’s response and the prediction a model without that observation would make can be recovered algebraically from the ordinary residual and leverage value.
Root mean squared error
RMSE reports typical prediction error in the same units as , easier to interpret than a sum of squares.
-fold cross-validated RMSE
Splitting the data into folds, fitting on the rest, and averaging the held-out error across folds gives an honest estimate of prediction accuracy on new data.
Ridge estimator
Ridge regression trades a little bias for less variance by shrinking every coefficient toward zero, controlled by the penalty strength .
Lasso estimator
Lasso shrinks coefficients like ridge but can push some all the way to zero, performing variable selection automatically.
One-predictor ridge solution
With a single centered predictor, ridge regression has this simple closed form, showing directly how larger shrinks the estimate toward zero.
Sherman-Morrison rank-one downdate
This identity, the same tool from Chapter 9, lets cross-validation formulas remove one observation’s contribution without refitting the whole model.
A.13 Chapter 13: Logistic regression¶
Odds
Odds compares the probability of an event to the probability it does not happen, a ratio rather than a proportion.
Logit (log-odds)
The logit stretches a probability, confined between 0 and 1, onto the whole real line, which makes it possible to model with an ordinary linear predictor.
Logistic regression model
Logistic regression fits a straight line, or plane, to the log-odds of an event rather than to the probability itself.
Logistic (mean) function
This function converts the linear predictor back into a probability between 0 and 1.
Binomial log-likelihood
This function scores how well a candidate coefficient vector explains the observed successes and failures; maximizing it gives the logistic regression fit.
Score equations
At the maximum likelihood estimate, the residuals (observed minus expected counts) are uncorrelated with every predictor, the logistic analogue of .
Fisher information / Hessian
This matrix measures the curvature of the log-likelihood, and its inverse gives the approximate covariance matrix of the coefficient estimates.
IRLS update
Logistic regression has no closed-form solution, so software fits it by repeating a weighted least squares step until the coefficients stop changing.
Odds ratio
Exponentiating a logistic coefficient converts it from a log-odds change into a multiplicative factor on the odds, the number reported and interpreted in practice.
Wald statistic
This is the logistic regression analogue of the statistic, testing whether one coefficient is zero using its estimate and standard error.
Deviance
Deviance measures how far the fitted model’s likelihood falls short of a perfect fit, the logistic regression analogue of .
Likelihood-ratio statistic
Comparing the deviance of two nested logistic models tests whether the extra predictors in the larger model improve the fit, the logistic analogue of the test.
Sensitivity
Sensitivity is the proportion of actual positive cases the model correctly flags.
Specificity
Specificity is the proportion of actual negative cases the model correctly clears.
AUC
AUC is the probability that a randomly chosen positive case gets a higher predicted probability than a randomly chosen negative case, a single number summarizing classification quality across every threshold.
A.14 Chapter 14: Poisson regression and the GLM idea¶
Poisson distribution
This distribution models count data: the probability of observing exactly events when the average rate is .
Poisson mean and variance
A defining feature of the Poisson distribution is that its variance always equals its mean, a constraint Poisson regression inherits and later chapters relax.
Poisson log-linear model
Poisson regression models counts by fitting a linear predictor to the log of the mean count, which keeps predicted counts positive.
Mean on response scale
Exponentiating the linear predictor converts it back to a predicted count, always positive by construction.
Rate ratio
Adding one unit to a predictor multiplies the predicted count by , the Poisson regression analogue of an odds ratio.
Poisson log-likelihood
Maximizing this function over gives the Poisson regression coefficient estimates.
Poisson score equations
At the maximum likelihood estimate, the observed counts minus the fitted counts are uncorrelated with every predictor, the same balancing property seen in Chapter 7 and Chapter 13.
Offset (rate model)
Adding a fixed offset term models a rate per unit of exposure , so two observations with different exposure times remain comparable.
Pearson residual
This residual rescales the raw count residual by the Poisson standard deviation, so residuals across observations with different means are comparable.
Estimated dispersion
This checks the Poisson mean-equals-variance assumption; a value well above 1 signals overdispersion.
Quasi-Poisson variance
This relaxes the strict Poisson assumption by allowing the variance to be a multiple of the mean rather than exactly equal to it.
Quasi-Poisson standard error
Multiplying the ordinary Poisson standard errors by the square root of the dispersion estimate corrects them for overdispersion.
Negative binomial variance
The negative binomial distribution lets variance grow faster than the mean, an alternative to Poisson regression for more strongly overdispersed counts.
Generalized linear model
The GLM framework unifies ordinary, logistic, and Poisson regression as one family: a distribution for , a linear predictor, and a link function connecting them.
A.15 Chapter 15: Regression with time: autocorrelation and forecasting¶
Trend-plus-season model
This model fits a straight-line trend on the log scale plus monthly indicator shifts, capturing both growth and a repeating seasonal pattern.
Monthly growth from log slope
Exponentiating the trend slope in a log-scale time model converts it into a percent growth rate per period.
AR(1) error model
Each error depends on the previous one through the correlation , plus fresh independent noise, which is how consecutive residuals in time-ordered data end up related.
Variance of mean under AR(1)
Positive autocorrelation inflates the true variance of a sample mean well beyond the usual , which is why ignoring autocorrelation makes standard errors too small.
AR(1) error variance
The overall variance of an AR(1) error series depends on both the innovation variance and how strongly errors carry over from one period to the next.
AR(1) autocorrelation at lag
Correlation between errors periods apart decays geometrically, fading out as the gap grows.
Durbin-Watson statistic
This is the same diagnostic introduced in Chapter 9, now the main tool for detecting autocorrelation in a time-ordered regression.
Durbin-Watson approximation
The Durbin-Watson statistic is approximately twice one minus the lag-one residual correlation, which is why values near 2 indicate no autocorrelation.
Lag-one residual autocorrelation
This estimates how strongly one residual predicts the next, the sample version of .
Cochrane-Orcutt estimate
This estimates the AR(1) correlation from ordinary least squares residuals as the first step of a two-step correction procedure.
Quasi-differencing transform
Subtracting times the previous period from both response and predictors removes the autocorrelation, leaving a model that ordinary least squares can fit correctly.
Test root mean squared error
This measures typical forecast error, in the original units, on data the model never saw during fitting.
Test mean absolute percentage error
This measures typical forecast error as a percentage of the actual value, useful for comparing accuracy across series with different scales.
A.16 Chapter 16: Path analysis and a look ahead¶
Income equation (standardized)
In standardized form, education’s effect on income is a single path coefficient , plus a disturbance for everything else that affects income.
Prestige equation (standardized)
Prestige depends on both education and income at once, each with its own standardized path coefficient.
Standardized (path) coefficient
A path coefficient is an ordinary regression slope rescaled by the ratio of standard deviations, the same standardization from Chapter 8 applied to a system of equations.
Direct effect
The direct effect of education on prestige is simply its own path coefficient in the prestige equation, holding income fixed.
Indirect effect
The indirect effect of education on prestige, routed through income, multiplies the two path coefficients along that chain.
Total effect
Adding the direct and indirect effects gives education’s total influence on prestige, direct plus everything that flows through income.
Total effect equals correlation (exogenous cause)
For a variable with no causes inside the diagram, its simple correlation with an outcome equals the sum of every path connecting them, a check on the whole path model.
Correlation decomposition (income, prestige)
Income and prestige’s correlation splits into income’s direct path to prestige plus a piece shared through their common cause, education.
Reduced form of prestige
Substituting the income equation into the prestige equation collapses the two-step path diagram into education’s total effect on prestige in a single equation.