Functional Form and Dummy Variables in Regression

Real economic relationships are rarely straight lines with one number for every effect. This material shows how to specify regressions with logarithms, quadratic terms and interactions, and how to read each coefficient as a percentage effect, an elasticity or an effect that changes with the data. You learn to code categories such as region or union membership with dummy variables, to test whether two groups follow the same regression with the Chow test, and to model yes-or-no outcomes with the linear probability model. It also covers comparing models with adjusted R-squared and information criteria, and turning an estimated equation into predictions with confidence and prediction intervals.

IntermediateLesson 4 of 8 in Econometrics 1 Course

What you will learn

  1. Write and interpret regressions with the natural logarithm of the outcome, of a regressor or of both, and decide when logs suit the data.
    • Interpret coefficients in log-level, level-log and log-log models
      Read each coefficient as a percentage change per unit, a change per percent or an elasticity, and know when the 100⋅β approximation is close enough.
    • Decide when to use logs and how units change the estimates
      Choose between levels and logs from the nature of each variable, handle zeros and negative values, and see how rescaling a variable changes some estimates and leaves others unchanged.
  2. Use quadratic terms and interactions so that the effect of one variable can change with its own level or with another variable, and report those effects correctly.
    • Use quadratics to model changing marginal effects
      Estimate a quadratic, compute the marginal effect at chosen values and the turning point, test whether the curvature matters and report a meaningful summary effect.
    • Interpret interaction terms between continuous variables
      Include the product of two regressors, compute how the effect of one depends on the other, center the variables for easier reading and test the interaction.
  3. Judge competing models with adjusted R-squared, information criteria and economic reasoning, and turn an estimated equation into predictions with honest intervals.
    • Compare models with adjusted R-squared
      Compute adjusted R-squared, see why it can fall when a regressor is added, use it and information criteria to choose between nonnested models, and avoid reading too much into goodness of fit.
    • Build confidence and prediction intervals
      Predict the outcome at chosen regressor values, give a confidence interval for the average outcome and a wider prediction interval for one new unit.
    • Predict from a log model and analyze residuals
      Turn a prediction of log(y) into a prediction of y, compare the fit of models for y and for log(y), and use residuals to find unusual observations.
  4. Code categories as 0/1 variables, interpret intercept and slope differences between groups and test whether groups follow the same regression.
    • Interpret a single dummy variable
      Define a dummy, choose the base group, read its coefficient as a group difference with other factors held fixed and convert it to an exact percentage in log models.
    • Use several dummies for categories and ordered information
      Code a variable with g categories as g−1 dummies, read each coefficient against the base group, change the base, test whether the categories matter and handle ordered categories.
    • Interact dummies with other variables
      Let groups differ in slopes as well as intercepts, interpret dummy-by-dummy and dummy-by-continuous interactions, and test which differences matter.
    • Test for differences between groups with the Chow test
      Test whether one regression holds for two groups, compute the Chow F statistic from sums of squared residuals and choose between the full and the slopes-only version.
  5. Regress a 0/1 outcome on explanatory variables, read the coefficients as changes in probability and recognize where the linear probability model breaks down.
    • Estimate and interpret a linear probability model
      Write the model for a binary outcome, read coefficients in percentage points, compute predicted probabilities and judge how well the model classifies.
    • Recognize the limits of the linear probability model
      Spot predicted probabilities outside 0 and 1, implausible constant effects and built-in heteroskedasticity, and use the model where it works well.

Functional Form and Dummy Variables study guide

5 chapters

1

Use logarithms to model percentage effects and elasticities

An extra year of education is measured in years, while a wage increase is often described as a percentage. Logs let one regression connect those two kinds of change. Learn how the position of a log changes the meaning of a coefficient, when an approximation needs an exact calculation, and how the data’s zeros, units and economic meaning guide the choice of form. Keep the outcome scale in view when comparing fitted models.

1.1 Read effects in levels and logs

A coefficient gets its meaning from the variables on both sides of the equation. Before interpreting its size, identify whether each variable is in levels or natural logs. In a multiple regression, keep the other regressors fixed throughout the comparison.

Match the form to the effect
FormEquation for the fitted relationshipReading for a small change
Level-levely=β0+β1xΔy=β1Δx units
Log-levellog⁡(y)=β0+β1x%Δy≈100β1Δx
Level-logy=β0+β1log⁡(x)Δy≈(β1/100)%Δx units
Log-loglog⁡(y)=β0+β1log⁡(x)%Δy≈β1%Δx

The natural log turns ratios into differences. Going from 100 to 105 gives a log change of 0.0488, so multiplying by 100 gives 4.88, close to the actual 5% change. Going from 100 to 150 gives 0.405, so the same approximation gives only 40.5% for a 50% change.

Work a log-level comparison

Suppose log⁡(wage)^=1.20+0.075 educ, where education is in years. One more year changes the fitted log wage by 0.075. This is approximately 7.5% higher wage: the coefficient is a semi-elasticity, a percentage effect per unit of a level regressor.

For a finite change, exponentiate the change in the fitted log:

100[exp⁡(β^1Δx)−1].

One year gives 100(e0.075−1)=7.79%. Four years gives 100(e0.30−1)=34.99%, which is meaningfully larger than 30%. A log change of −0.30 gives −25.92%; equal and opposite log changes do not produce equal and opposite percentage changes. The exact calculation is especially useful when the absolute log change exceeds about 0.1.

Separate an elasticity from a change in points

In log⁡(salary)^=4.8+0.25log⁡(sales), 0.25 is an elasticity. A 1% increase in sales goes with approximately 0.25% higher salary. For a 10% increase, the exact effect is 100(1.100.25−1)=2.41%. A demand elasticity of −1.2 similarly gives 100(1.10−1.2−1)=−10.81% for a 10% price increase. Elasticities have no units.

A level-log model keeps the outcome in units. With score^=40+12log⁡(income), a 1% income increase adds approximately 0.12 test points. A 10% increase adds 12log⁡(1.10)=1.14 points; doubling income adds 12log⁡(2)=8.32 points.

If an outcome is itself a percentage, its level changes are percentage points. Unemployment moving from 8% to 10% rises by 2 points and by 25% relative to its original rate.

Keep the log base straight

Here, log means natural log. Replacing natural logs with base-10 logs divides a log-level slope by 2.303 and multiplies a level-log slope by 2.303. A log-log slope stays the same if both logs change base together. A transformation changes the measurement of an effect; a causal reading still requires regressors unrelated to unobserved determinants in the error.

Key Takeaways

  • Identify both variable forms before attaching units or percentages to a coefficient.
  • A log-level coefficient gives an approximate percentage effect of 100β^1 per unit.
  • Use 100[exp⁡(Δlog⁡y^)−1] for an exact finite percentage change.
  • A log-log slope is an elasticity; a level-log slope gives outcome units per proportional change.
  • Percentage points measure differences between rates; percent changes use a starting value.
  • Changing log bases changes semi-elasticity readings; changing form does not establish causality.

1.2 Choose logs and keep track of units

Choosing a functional form begins with the kind of change the question asks about. A constant addition suggests levels. A constant proportional change suggests logs. The observed values must also permit the transformation.

Decide what a log represents

Strictly positive wages, prices, sales and large counts often enter in logs. Education, experience and age usually stay in years. Rates and proportions can enter either way, but levels are common because their effects then have a direct percentage-point reading.

Positive money amounts often have a long right tail: a few firms or households have much larger values than most. Logging compresses that tail and can make the spread more even. It may reduce the influence of very large values and bring the distribution closer to normal. Inspect the data; these improvements are tendencies, not automatic results of pressing a log command.

Deal with zeros before estimating

The natural log of zero or a negative value is undefined. Donations can be zero; profits can be negative. Dropping those observations changes which population the regression describes. If zero donors differ systematically from positive donors, interpreting the remaining sample as all households can be misleading.

The transformation log⁡(1+y) keeps zeros, but changes the relationship being modeled. Near zero, a coefficient in this model is not a percentage effect on the original outcome. When many values are zero, a level model or a model designed for such outcomes is usually more useful. A dummy takes values zero and one and stays in levels.

Rescale levels without changing the evidence

If the dependent variable is divided by 1,000, every coefficient and its standard error is divided by 1,000. A sales equation in thousands of currency units reports smaller numbers because its outcome unit is larger. Each t statistic is unchanged because its numerator and denominator shrink together.

If only a level regressor is multiplied by a constant, its slope and standard error are divided by that constant. For example, replacing kilometers by meters multiplies distance by 1,000. A slope of −2 per kilometer becomes −0.002 per meter. The other coefficients, t statistics, p-values and R2 stay the same. This rule refers to rescaling one regressor column; if a model also contains its powers or products, transform those terms consistently.

Rescale logged variables

For a logged outcome, multiplying its original units by 100 adds log⁡(100)=4.605 to the intercept. The slopes stay the same because every logged outcome shifts by the same amount. For a logged regressor, multiplying the original variable by a positive constant shifts its log and changes the intercept, leaving its slope unchanged. A floor-area elasticity is therefore the same with area recorded in square meters or square centimeters.

A level regressor in a log-level model still has units. The semi-elasticity per kilometer is 1,000 times the semi-elasticity per meter.

Judge forms on a common outcome

The R2 of a wage regression measures variation in wages; the R2 of a log-wage regression measures variation in log wages. Their numerical sizes cannot choose between the models. Convert the log model's predictions back to wage units with the appropriate mean correction before comparing prediction errors. Use economic reasoning to choose plausible forms and residual plots to look for missed patterns. Logs do not repair omitted-variable bias or reverse causality.

Key Takeaways

  • Use logs for proportional relationships and strictly positive variables.
  • Zeros and negatives cannot enter an ordinary natural log; dropping them changes the sample.
  • Coefficients on log⁡(1+y) do not generally give percentage effects on small values of y.
  • Rescaling a level variable changes coefficients and standard errors together, leaving t statistics unchanged.
  • Rescaling a logged variable changes the intercept, leaving its slope unchanged.
  • Compare predictions of the same outcome, not R2 values for different outcome transformations.
2

Model nonlinear and interacting effects

Experience can raise wages strongly at first and weakly later, while fertilizer can work better when there is more rain. Quadratics and interactions describe these changing effects within an OLS regression. Work from the full fitted expression to find slopes, finite changes and useful reference points. The same expression also tells you which coefficient restrictions answer a question about curvature or dependence between effects.

2.1 Find slopes and turning points in quadratics

A straight-line slope cannot describe an effect that grows or fades as the regressor changes. A quadratic adds the square of that regressor. OLS can estimate it because the unknown coefficients still enter linearly.

Read the slope of the whole expression

For y=β0+β1x+β2x2+u, the marginal effect is

∂y^∂x=β^1+2β^2x.

The coefficient on the unsquared term is the slope at zero. It is not the slope everywhere. Consider hourly wage in currency units:

wage^=5.00+0.40 exper−0.0080 exper2.

The slope is 0.40−0.016 exper. It equals 0.24 at 10 years and 0.08 at 20 years. Experience still raises fitted wage at both values, but each additional year has a smaller marginal effect.

Distinguish a slope from a whole step

At 10 years the fitted wage is 8.200. At 11 it is 8.432, a rise of 0.232. The derivative at 10 is 0.24 and describes a very small change near that point. For a quadratic, the exact one-unit change equals the slope at the midpoint: 0.40−0.016(10.5)=0.232. For larger changes, subtract the two fitted values.

Locate the peak or minimum

Set the slope equal to zero:

x∗=−β^12β^2.

Here the turning point is 25 years and the fitted wage is 10.00. A negative squared-term coefficient makes this a maximum; a positive one makes the turning point a minimum. Check the observed range before reporting a reversal. If few workers have more than 25 years of experience, the falling side of this fitted curve has little data behind it.

Choose the test that answers the question

A t test of H0:β2=0 tests curvature. An F test of H0:β1=β2=0 tests whether experience contributes at all. Correlation between experience and its square can make individual estimates imprecise; it does not make a quadratic ineligible for OLS.

Report slopes at meaningful values, such as quartiles. The average partial effect averages the observation-specific slopes. For a quadratic it equals the slope at the sample mean. At mean experience of 15 years it is 0.40−0.016(15)=0.16 currency units per hour for a marginal extra year.

Combine curvature with a logged outcome

Suppose the fitted log price includes −0.55 rooms+0.060 rooms2. The slope at six rooms is 0.17 log units per room, approximately 17%. A whole room changes the slope along the way. From six to seven rooms the fitted log changes by −0.55+0.060(49−36)=0.23, giving 100(e0.23−1)=25.86%. From seven to eight the exact increase is 41.91%.

A cubic adds a third-power term and gives slope β^1+2β^2x+3β^3x2. Test the highest power, or added powers jointly, to judge whether the extra flexibility is supported.

Key Takeaways

  • A quadratic is nonlinear in the regressor and linear in its coefficients.
  • The marginal effect is β^1+2β^2x; finite changes come from subtracting fitted values.
  • The turning point is −β^1/(2β^2) and needs support within the observed range.
  • Test the square for curvature and both terms jointly for any contribution of the regressor.
  • The quadratic APE equals the slope evaluated at the sample mean.
  • With log outcomes, compute the finite change in the fitted log before exponentiating.
  • Added polynomial powers can be tested individually or jointly.

2.2 Let one effect depend on another variable

An interaction models a relationship in which the effect of one regressor depends on the level of another. Form the product of the two variables and include both original variables in the regression.

Work out both partial effects

In y=β0+β1x1+β2x2+β3x1x2+u, hold the second variable fixed while changing the first. Both terms containing the first variable change, so

∂y^∂x1=β^1+β^3x2,∂y^∂x2=β^2+β^3x1.

The interaction coefficient is the change in one marginal effect when the other regressor increases by one unit.

Follow an agricultural example

Let yield be tonnes per hectare, fertilizer be kilograms per hectare, and rainfall be centimeters during the growing season:

yield^=1.5+0.012 fert+0.020 rain+0.00010 fert⋅rain.

The fertilizer effect is 0.012+0.00010 rain. At rainfall of 20, 40 and 60 cm it equals 0.014, 0.016 and 0.018 tonnes per hectare per extra kilogram of fertilizer per hectare. At fixed rainfall of 40 cm, adding 100 kg per hectare raises fitted yield by 1.6 tonnes per hectare. The equation is linear in fertilizer once rainfall is fixed, so that comparison is exact for this fitted form.

A positive interaction means the inputs reinforce each other's effects. It does not determine either effect's sign: each effect also includes its main coefficient. The fertilizer coefficient 0.012 describes a season with zero rain, which may be far outside the sample.

Center the variables to move the reference point

Define centered fertilizer as fertilizer minus 100 and centered rainfall as rainfall minus 40, their sample means. Regress yield on these two centered variables and their product, keeping an intercept. The fertilizer coefficient becomes 0.012+0.00010(40)=0.016. The rainfall coefficient becomes 0.020+0.00010(100)=0.030. The new intercept is the fitted yield at both means, 3.9.

Centering leaves the interaction coefficient, fitted values and R2 unchanged. It also provides the standard error for an effect at that reference point directly from the relevant main coefficient's output.

Keep tests and restrictions clear

A t test of H0:β3=0 asks whether the first effect varies with the second variable. An F test of H0:β1=β3=0 asks whether the first variable contributes at all. A small t statistic on the main effect only concerns the other variable's zero point.

Dropping the first main effect forces its partial effect to zero when the second regressor is zero and changes the model. Report effects at useful values or average them: here the average fertilizer effect is its effect at mean rainfall. For interactions with logs or powers, first differentiate the full fitted expression, then evaluate it at the values of interest.

Key Takeaways

  • An interaction makes each variable’s effect depend on the other variable.
  • The coefficient on a product measures the change in a marginal effect per unit of the other regressor.
  • Main coefficients refer to the other variable’s zero point; centering moves that point.
  • Centering preserves fitted values, interaction coefficients and R2.
  • Test the product for dependence of effects; test the main and product terms jointly for any contribution.
3

Compare specifications and make predictions

A model that fits more closely is not always the model that best answers an economic question. Compare fit with a charge for extra parameters, then distinguish the targets behind a point prediction and its interval. Returning a log prediction to original units requires care because a mean and an exponentiated fitted log are different quantities. Residuals help locate observations that the fitted relationship leaves unexplained.

3.1 Compare fit while accounting for model size

Adding regressors gives OLS more ways to fit the same observations. The residual sum of squares cannot rise, so ordinary R-squared cannot fall. Choosing every new term that raises it would always favor the largest candidate model.

Charge for extra parameters

With an intercept, R2=1−SSR/SST. Adjusted R-squared replaces the two sums of squares by their degrees-of-freedom-adjusted values:

Rˉ2=1−SSR/(n−k−1)SST/(n−1)=1−(1−R2)n−1n−k−1.

Here n is the sample size and k counts slopes, excluding the intercept. With 100 observations, four slopes and R2=0.300, adjusted R-squared is 0.2705. A fifth slope that raises R-squared only to 0.305 lowers the adjusted measure to 0.2680. If R-squared reaches 0.310, the adjusted measure rises to 0.2733. The improvement in fit must offset the lost residual degree of freedom.

Adjusted R-squared can be negative. With 20 observations, eight slopes and R-squared of 0.30, it is −0.209. This signals poor fit after the size adjustment; it is not a negative share of explained variation.

Relate the adjustment to a test

Adding one regressor raises adjusted R-squared exactly when its conventional OLS t statistic has absolute value above one. For several added terms, the corresponding conventional F statistic must exceed one. These are weaker thresholds than a 5% significance test. A new term with a t statistic of 1.5 improves adjusted R-squared while remaining statistically insignificant at 5% in a large sample.

Compare different specifications

Models are nonnested when neither can be obtained by restrictions on the other. A log-salary model with log sales and one with sales plus sales squared are an example. A direct nested-model F test does not compare these two, but adjusted R-squared can help if both use the same dependent variable and observations.

Information criteria also balance fit and size. Let the parameter count be k+1, including the intercept:

AIC=ln⁡(SSR/n)+2(k+1)n, BIC=ln⁡(SSR/n)+(k+1)ln⁡nn.

Prefer the smaller value. At sample sizes of at least eight, BIC has the larger penalty per parameter. With 200 observations, a four-parameter model with SSR 500 has AIC 0.956 and BIC 1.022. A six-parameter model with SSR 485 has AIC 0.946 and BIC 1.045. AIC favors the larger model while BIC favors the smaller one. Small differences provide limited evidence.

Match controls to the question

Fit is separate from causal validity. A high R-squared cannot establish causality, and a low one does not make OLS biased. To estimate a tax's total effect on traffic deaths, controlling for the consumption through which the tax works blocks part of that effect. This is overcontrolling.

A control that predicts the outcome and is unrelated to the regressor of interest can reduce error variance and usually improve precision; sample correlation and lost degrees of freedom can still increase a reported standard error. Begin with economic reasoning, test nested restrictions, compare suitable nonnested alternatives and inspect residual patterns. Report the specifications considered; selecting the smallest p-value from many attempts overstates the evidence.

Key Takeaways

  • Ordinary R2 cannot decrease when regressors are added on the same sample.
  • Adjusted R2 penalizes lost residual degrees of freedom and can be negative.
  • The improvement rule uses conventional OLS tests: absolute t above one, or group F above one.
  • Compare nonnested models only on the same outcome and observations.
  • Smaller AIC or BIC is preferred; BIC penalizes size more when n≥8.
  • Choose controls for the causal question, not just for fit.

3.2 Give intervals for a mean and for one outcome

A fitted equation gives one point prediction at chosen regressor values. The interval around it depends on what you want to predict: the average outcome at those values or one new observation.

Set the prediction target

For chosen values c1,…,ck, calculate

y^0=β^0+β^1c1+⋯+β^kck.

This estimates the conditional mean, θ0=E(y∣x=c). It also predicts one new outcome, but that outcome includes its own unobserved deviation: y0=θ0+u0. Even perfect knowledge of the mean would not reveal that person's error.

Find uncertainty in the fitted mean

Prediction software combines all coefficient variances and covariances to calculate se(y^0). An equivalent method is to subtract each chosen value from its regressor and re-estimate with an intercept. The new intercept equals the fitted mean at the chosen values; its standard error is the required prediction standard error. Center all design columns consistently, including any powers and products used in the fitted model.

Under the usual homoskedastic OLS formula, the fitted mean's standard error is smallest at the vector of sample regressor means. Combinations far from the sample center generally have more estimation uncertainty. Correlations between regressors matter, so distance is measured jointly, not by looking at one variable alone.

Calculate the two intervals

For the standard normal-error, constant-variance model, a 95% confidence interval for the conditional mean is

y^0±t0.025,n−k−1 se(y^0).

Here the t value leaves 2.5% in the upper tail. For a new independent observation, add its error variance:

se(e^0)=se(y^0)2+σ^2.

The 95% prediction interval is y^0±t0.025,n−k−1 se(e^0). The regression standard error σ^ describes the unexplained spread of individual outcomes.

Suppose a score model uses 200 observations and three slopes. At the chosen characteristics, the fitted score is 52.0, its standard error is 0.8, and the regression standard error is 6.0. The residual degrees of freedom are 196 and the critical value is 1.972.

The mean interval is 52.0±1.972(0.8), or approximately 50.42 to 53.58 points. The prediction standard error is 0.82+6.02=6.05. The individual interval is approximately 40.06 to 63.94 points. Using the narrow mean interval for a particular student would ignore nearly all of the uncertainty.

Know what greater sample size fixes

As the estimation sample grows, uncertainty in the conditional mean shrinks. The new individual's unobserved error remains, so the prediction interval approaches a width governed by 1.96σ^ on each side. Normal errors and constant conditional variance justify the individual interval above. If error variance changes across regressor values, one common variance gives the wrong width in some regions. At values beyond the data, the fitted form itself may fail; a computed interval does not resolve that extrapolation problem.

Key Takeaways

  • A mean interval reflects coefficient estimation uncertainty.
  • An individual prediction interval also includes the new observation’s error variance.
  • Add variances before taking the square root: se(y^0)2+σ^2.
  • An individual interval stays wide even when the mean is estimated precisely.
  • The standard individual interval requires normal errors with constant variance and a reliable functional form.

3.3 Return log predictions to outcome units

A regression for log spending predicts log spending. Exponentiating its fitted value brings the scale back to spending units, but a further step is needed to predict average spending. This matters when predictions will be summed into a total.

Explain the missing factor

Write the model as log⁡(y)=xβ+u. Then y=exp⁡(xβ)exp⁡(u), so

E(y∣x)=exp⁡(xβ)E[exp⁡(u)∣x].

A zero mean for the log error does not make the mean of its exponential equal to one. Exponentiation is curved: positive log errors raise the outcome more than equal negative log errors lower it. Simply using exp⁡(log⁡y^) therefore misses a factor in the conditional mean.

If the error is normal with constant variance and independent of the regressors, the uncorrected exponential estimates the conditional median. The factor for the mean is exp⁡(σ2/2).

Apply the normal correction

A house-price equation gives a fitted log price of 11.80 and a regression standard error of 0.30. First exponentiate the fitted log: e11.80≈133252 currency units. Square the standard error and halve it: 0.302/2=0.045. The correction factor is e0.045≈1.046. Carrying unrounded values gives a mean prediction of about 139386 currency units.

The variance belongs in the correction, not the standard error itself. Using exp⁡(0.30/2) would overcorrect this prediction.

Estimate a smearing factor

Normality is not required for a smearing estimate. Take the log regression's residuals, exponentiate each one and average:

α^0=1n∑iexp⁡(u^i),y^=α^0exp⁡(log⁡y^).

A factor of 1.05 gives about 139915 currency units in the house example. With an intercept, residuals average zero and their average exponential is at least one. A further way to estimate a common factor is the slope from regressing the original outcome on the exponentiated fitted log without an intercept.

A common correction assumes the error distribution does not change with the regressors. If log-error spread differs by group, one pooled factor can mispredict particular groups. The absence of a normality assumption does not remove this requirement for a common factor.

Compare predictions on the same scale

To compare level and log models, convert the log-model predictions to outcome units. Squared correlation between outcomes and predictions measures how well their variation tracks. A value of 0.66, compared with a level-model R-squared of 0.62, favors the log model on that particular measure. Correlation ignores a common scale error, so compare mean squared prediction errors to judge accuracy in original outcome units.

Read residuals against the correct reference

A level residual is observed minus fitted outcome. A negative log residual of −0.15 means the observed outcome is 100(1−e−0.15)=13.93% below the exponentiated fitted log value. Its reference is the uncorrected exponential, not the corrected mean. Large residuals can flag unusual observations, but they also contain omitted characteristics and measurement error. A house selling below its fitted value may have an unrecorded defect.

Key Takeaways

  • Exponentiating a fitted log omits the factor E[exp⁡(u)∣x] needed for a mean.
  • The normal correction is exp⁡(σ^2/2).
  • Smearing averages exponentiated log residuals and avoids assuming normality.
  • One common correction factor requires a stable error distribution across regressor values.
  • Correlation measures tracking; mean squared error detects mistakes in prediction scale.
  • A log residual compares the observed outcome with the exponentiated fitted log.
4

Represent qualitative information with dummy variables

Groups such as regions, union members and program participants carry information that a numerical slope alone cannot represent. Indicators turn that information into comparisons with a clear base group. Interactions let the comparisons change across other characteristics. Build group equations, compare categories and use joint restrictions to test whether one regression can describe two groups.

4.1 Read a dummy as a group comparison

Qualitative information can enter a regression through a dummy, also called an indicator or binary variable. Code membership as one and nonmembership as zero. A name such as union or treated makes the direction of the comparison visible.

Read the two fitted lines

Consider wage=β0+δ0 union+β1 educ+u. Set union to zero to obtain the nonunion line. Set it to one to obtain the union line:

GroupInterceptEducation slope
Nonunion, the baseβ0β1
Unionβ0+δ0β1

The dummy coefficient is the union-minus-nonunion wage gap at the same education. Because the slopes are equal, these fitted lines are parallel.

For wage^=−1.20+1.40 union+0.95 educ, a worker with 12 years of education has predicted hourly wage 10.20 currency units outside a union and 11.60 in a union. The gap is 1.40 at every education level. The negative intercept describes zero years of education, outside the relevant data, and need not have a useful economic interpretation.

Leave a base group

With an intercept, including both union and nonunion creates perfect collinearity: their values add to one for every observation. The regression cannot distinguish the intercept from the two group indicators. Omit one dummy; its group becomes the base group. A model without an intercept can instead include both indicators and estimate a separate intercept for each group.

With only one dummy and an intercept, the intercept is the base group's sample mean and the dummy coefficient is the difference between sample group means. The dummy's sample mean is itself a group share: if 0.35 is the mean of union, 35% of the observations are union members. The usual common-variance t test on the coefficient is the corresponding equal-means test. Adding controls changes the comparison to groups with the same recorded characteristics.

Convert a log gap to a percentage

With log wage as the outcome, a dummy coefficient of 0.18 means an approximate 18% union premium. The exact fitted percentage gap is 100(e0.18−1)=19.72%. This compares the exponentiated fitted log values; it also compares conditional means when both groups have the same retransformation factor. A coefficient of −0.20 gives −18.13%, not −20%.

Reversing the comparison changes the denominator. If union wages are 19.72% above nonunion wages, nonunion wages are 100(e−0.18−1)=16.47% below union wages. The percentage gaps are not symmetric.

Interpret a treatment indicator

A treatment dummy can mark job-training participation. Its coefficient measures a causal effect when treatment is unrelated to unobserved determinants given the controls. Random assignment provides that independence; use pretreatment characteristics for adjustment. With voluntary participation, motivation may raise both participation and later wages, inflating the apparent benefit. Controls can reduce such differences without necessarily removing them.

Key Takeaways

  • A dummy equals one for the named condition and zero otherwise.
  • With an intercept and one dummy, its coefficient compares that group with the omitted base.
  • A dummy without interactions shifts the intercept and leaves slopes equal.
  • Including every category dummy with an intercept causes perfect collinearity.
  • For a log outcome, the exact fitted percentage gap is 100[exp⁡(δ^0)−1].
  • A treatment coefficient needs independence from unobserved determinants for a causal reading.

4.2 Code categories and compare their effects

A category label such as region has no natural numerical distance. Use a set of indicators so that a regression can estimate its group differences without assuming a meaningful spacing between labels.

Choose one reference category

For a classification with g mutually exclusive categories, include g−1 dummies alongside an intercept. The omitted category is the base. Each coefficient compares its category with that base, holding the other regressors fixed. Coding north as one, east as two and so on would impose both an order and equal steps in the effect.

Suppose a log-wage equation uses north as the base and estimates east 0.04, south −0.06 and west 0.10. South versus north has a log gap of −0.06 and an exact fitted percentage gap of 100(e−0.06−1)=−5.82%. West versus south requires subtraction: 0.10−(−0.06)=0.16, giving 100(e0.16−1)=17.35%. Adding the coefficients would compare the wrong quantities.

Change the base to get a direct comparison

If south becomes the base, the intercept falls by 0.06. The new coefficients are north 0.06, east 0.10 and west 0.16. These are alternative coordinates for the same fitted relationships. Fitted values, R-squared and slopes on other variables do not change.

To test west against south, re-estimating with south as the base provides the west-minus-south coefficient and its standard error directly. The separate standard errors from the old regression are not enough to calculate the uncertainty of their difference: the covariance between the two coefficient estimates matters too.

Test the classification jointly

With four regions, test all three dummy coefficients equal to zero using an F test. This asks whether any regional difference contributes after controlling for the other regressors. Individual t tests ask narrower questions, each against the base. They can all be insignificant while a joint test rejects. With three restrictions and 495 residual degrees of freedom, the 5% critical F value is about 2.62.

Several classifications can enter together. A model with region dummies and industry dummies has one base for each. Without products between them, it imposes the same regional gaps in every industry. Different regional gaps across industries need interactions.

Decide how to use ordered information

An ordinal variable has a meaningful order but not necessarily meaningful distances. A credit rating from zero through four is an example. Using it as one numerical regressor assumes each one-level move has the same effect. Dummies allow a separate effect for each level.

Against rating zero, coefficients 0.08, 0.16, 0.24 and 0.32 match equal steps of 0.08. Coefficients 0.02, 0.05, 0.25 and 0.30 do not: the largest jump is between ratings two and three. Test the restrictions that all level effects are multiples of one step to assess the single-number model.

Age-band dummies similarly allow an irregular shape across age ranges. They discard within-band age variation and use a parameter for each included band. Finer categories offer flexibility but consume more degrees of freedom, which matters especially in a small sample.

Key Takeaways

  • Use g−1 dummies for g categories with an intercept.
  • Subtract category coefficients to compare two non-base groups.
  • Changing the base preserves predictions and provides a direct standard error for a new comparison.
  • A joint F test asks whether a classification contributes at all.
  • One numerical ordinal regressor imposes equal steps; category dummies relax that restriction.

4.3 Read group differences when slopes can differ

A single dummy allows an intercept shift. Interacting it with another variable allows the group gap to change. Write out the fitted expression for each group before interpreting a coefficient in isolation.

Combine two dummies

Suppose a fitted log-wage equation contains 0.12 union+0.06 public−0.09 union⋅public. Nonunion private-sector workers have all three terms equal to zero and form the base.

GroupFitted log gap from the base
Union, private0.12
Nonunion, public0.06
Union, public0.12+0.06−0.09=0.09

The interaction −0.09 is not the whole gap for union public-sector workers. It is the extra adjustment beyond the two main effects. The union gap is 0.12 in the private sector and 0.12−0.09=0.03 in the public sector. Their difference is −0.09. Coding three of the four combined groups directly produces the same fitted values.

Let a continuous slope differ

For y=β0+δ0d+β1x+δ1dx+u, substitute each value of the dummy:

  • Group zero: y^=β^0+β^1x.
  • Group one: y^=(β^0+δ^0)+(β^1+δ^1)x.

The group gap at a chosen value is δ^0+δ^1x. The interaction is the slope difference, and the dummy's main coefficient is the gap only at zero.

Consider log⁡(wage)^=0.80+0.30 union+0.085 educ−0.012 union⋅educ. The education slopes are 0.085 for nonunion workers and 0.073 for union workers, approximately 8.5% and 7.3% per year.

At 12 years of education, the union log gap is 0.30−0.012(12)=0.156. The exact fitted wage gap is 100(e0.156−1)=16.88%. At 16 years it is 0.108 log units, or 11.40%. Reading 0.30 as the premium for all workers would miss the interaction.

Move the comparison to a useful value

Center education at 12 by using education minus 12 and its product with union. The dummy coefficient becomes 0.156, making the gap at 12 years visible directly. Predictions and the slope difference stay the same. The original lines cross at 25 years of education, outside typical schooling values; the positive gap over the observed range matters more than that extrapolated crossing.

Test the relevant group terms

A t test of H0:δ1=0 asks whether the education slopes differ. An F test of H0:δ0=δ1=0 asks whether the fitted group relationships differ at all. Correlated estimates can produce small individual t statistics alongside a significant joint F statistic.

Interacting the group dummy with every regressor gives each group its own intercept and slopes. Its fitted coefficients reproduce separate group regressions. Testing all these group terms together leads to the Chow test.

Key Takeaways

  • Two dummies and their product describe four combined groups.
  • A dummy-by-dummy product measures a difference between group gaps.
  • A dummy-by-continuous product measures a slope difference.
  • The group gap is δ^0+δ^1x, not just the dummy coefficient.
  • Centering makes the dummy coefficient the gap at a meaningful value.
  • Test slope differences separately from all group differences.

4.4 Test whether groups share one regression

The Chow test compares one regression for two groups with a model that lets each group have its own coefficients. The full test includes the intercept difference. A slopes-only test answers a different question by allowing that intercept difference under the null.

Define the two models

Use the same outcome, regressors and observations in every comparison. Let each group equation contain an intercept and k slopes. The restricted pooled model estimates one set of k+1 coefficients. The unrestricted model estimates two sets, or 2(k+1) coefficients. Thus the full null imposes k+1 equality restrictions.

Estimate the pooled model to obtain SSRP. Estimate each group separately to obtain SSR1 and SSR2. The unrestricted SSR is their sum. The pooled restriction can only worsen fit or leave it unchanged.

Calculate the full statistic

The loss in fit per restriction is divided by the unrestricted error-variance estimate:

F=(SSRP−SSRur)/(k+1)SSRur/[n−2(k+1)],SSRur=SSR1+SSR2.

There are k+1 numerator and n−2(k+1) denominator degrees of freedom. Count the unrestricted parameters when finding the denominator.

For groups of 220 and 180 observations, three slopes, pooled SSR 1250 and separate SSRs 560 and 610, the unrestricted SSR is 1170. The restriction costs 80 SSR units. Divide by four restrictions to get 20; divide 1170 by 392 residual degrees of freedom to get the error-variance estimate. The resulting F statistic is 6.70, above the 5% critical value of about 2.39. The p-value is below 0.001, so the common-coefficient null is rejected.

Allow different intercepts under the null

For a slopes-only test, the restricted regression already contains a group dummy. This allows separate intercepts while imposing equal slopes. Its SSR replaces the fully pooled SSR in the numerator, and there are only k restrictions. The unrestricted denominator is unchanged.

If that restricted SSR is 1205, the statistic is F=(35/3)/(1170/392)=3.91. The 5% critical value for three and 392 degrees of freedom is about 2.63. Equal slopes are rejected even after allowing an intercept shift. Using 1250 in this slopes-only calculation would charge an intercept restriction that this null does not impose.

Use a single interacted regression

Include the group dummy and its product with every regressor. A joint test that the dummy and all products equal zero reproduces the full Chow test. Test just the products to compare slopes with intercepts allowed to differ. For more than two groups, the full equality test has (G−1)(k+1) restrictions.

The classical SSR-based F test assumes homoskedastic errors with a common variance across groups; normal errors give its exact finite-sample F reference. If variances differ, use a heteroskedasticity-robust joint test of the group terms. Rejection identifies some difference, not its location. Inspect the relevant coefficients; failure to reject can reflect limited precision. The same equality idea applies to observations before and after a known break date.

Key Takeaways

  • The full Chow null equates the intercept and all slopes across groups.
  • With two groups, it imposes k+1 restrictions and leaves n−2(k+1) unrestricted residual degrees of freedom.
  • Add separate-group SSRs to obtain the unrestricted SSR.
  • A slopes-only test includes the group dummy under the null and tests only k slopes.
  • A fully interacted regression provides the same group comparison.
  • Use a robust joint test when error variances differ; the classical SSR test requires a common variance.
5

Model binary outcomes with the linear probability model

Employment, participation and approval are observed as yes-or-no outcomes, yet their probabilities can be modeled with OLS. Read a fitted value as a chance and a slope as a change in percentage points. The simplicity helps explain average effects, but it can also produce impossible probabilities and changing error variance. Check both the predictions and the uncertainty before deciding how well the model serves the question.

5.1 Interpret probabilities from an OLS regression

When an outcome is zero or one, its conditional mean is the chance of observing one. This lets an ordinary least-squares regression describe a probability directly. The resulting model is called the linear probability model, or LPM.

Translate a binary mean into a probability

For an employment indicator, zero means not employed and one means employed. The conditional average is 0 P(y=0∣x)+1 P(y=1∣x)=P(y=1∣x). The LPM writes this probability as an intercept plus slopes times regressors:

P(y=1∣x)=β0+β1x1+⋯+βkxk.

Estimate the equation by OLS. A fitted value such as 0.68 represents a predicted probability of 68%, not an outcome of 0.68 for a person. Each actual outcome is still zero or one.

Read effects in percentage points

A slope of 0.04 means a one-unit increase in its regressor changes the probability by 0.04, or four percentage points. A probability rising from 0.50 to 0.54 rises by four points and by 8% relative to its starting value. Use points when reporting the slope's direct effect.

Consider the fitted employment equation

emp^=0.20+0.04 educ+0.15 train−0.005 age.

Education and age are in years, and train equals one for training participants. For age 30 and education 12, the prediction without training is 0.20+0.48−0.15=0.53. With training it is 0.68. The model assigns a 15-percentage-point training gap at every age and education level. Ten additional years of age reduce the prediction by five points.

Interpret dummy effects and averages

A dummy regressor compares probabilities between the group coded one and the group coded zero, holding the remaining regressors fixed. If it is the only regressor with an intercept, its coefficient is exactly the difference in the two sample shares with outcome one.

OLS with an intercept also makes residuals sum to zero. Consequently, the sample average fitted probability equals the sample share of ones. This equality describes an overall average; it does not establish accurate predictions for every subgroup.

Check classification for both outcomes

A common classification rule assigns one when the fitted probability is at least 0.5 and zero otherwise. Percent correctly predicted counts matches between these assignments and observed outcomes.

In a sample of 1000 people, suppose 600 have outcome one and 400 have outcome zero. If the model correctly classifies 510 of the ones and 250 of the zeros, it gets 760/1000=76% correct overall. The group-specific rates are 85% for ones and 62.5% for zeros. Reporting only the overall rate hides the weaker performance for zeros. Ordinary R-squared offers limited guidance for this binary-outcome task.

Separate prediction from a causal effect

The training coefficient is causal when participation is unrelated to unobserved determinants given the controls. Voluntary participants may be more motivated, and motivation may also improve employment prospects. The fitted probability gap then combines training with selection. The binary outcome does not change the usual requirements for interpreting regression coefficients causally.

Key Takeaways

  • For a binary outcome, E(y∣x)=P(y=1∣x).
  • LPM slopes measure probability changes; multiply by 100 to report percentage points.
  • A fitted probability differs from the observed zero-or-one outcome.
  • With an intercept, average fitted probability equals the sample share of ones.
  • Report classification accuracy for both observed outcome groups.
  • A treatment probability gap needs the usual independence condition for a causal interpretation.

5.2 Judge where a linear probability model works

The LPM is easy to estimate and explain because every slope gives a direct probability change. Its straight-line form also creates two problems: probabilities can escape their bounds, and individual-outcome variance generally changes with the probability.

Inspect predicted probabilities

In the employment equation emp^=0.20+0.04 educ+0.15 train−0.005 age, a 20-year-old participant with 20 years of education has fitted value 1.05. A 60-year-old nonparticipant with two years of education has fitted value −0.02. Neither is a valid probability. Count and report fitted values outside zero to one, and inspect where they occur.

A few invalid predictions in sparse parts of the sample need not erase useful estimates of average effects near its center. They do show that the equation cannot provide valid probabilities throughout that range.

Check how far a constant effect can extend

A slope of −0.26 on the number of children under six assigns the same 26-percentage-point reduction to each additional child. Four children would reduce the predicted probability by 1.04. No starting probability can absorb that drop while remaining within zero and one. The effect therefore cannot stay constant over that entire range.

Dummies for one child and two or more children allow different changes without requiring a straight line in the count. Such flexibility can improve the shape, but it still needs a check of the fitted probability bounds.

Use the binary variance formula

For a zero-or-one outcome with conditional probability p(x),

Var(y∣x)=p(x)[1−p(x)].

The regression error has the same conditional variance. It takes value 1−p(x) when the outcome is one and −p(x) when it is zero. At probability 0.5 its variance is 0.25; at 0.9 it is 0.09. A changing fitted probability generally means changing error variance: heteroskedasticity is built into the usual LPM setting.

Use heteroskedasticity-robust standard errors for inference. Conventional constant-variance standard errors and their associated t and F tests are unreliable here. The two-point error distribution is also nonnormal, so robust inference uses large-sample approximations.

Keep estimation and inference separate

Heteroskedasticity itself does not bias OLS coefficients. If the conditional mean is truly linear and the usual exogeneity condition holds, OLS estimates that linear probability relationship without bias. Unequal error variance changes uncertainty calculations. A misspecified conditional mean or omitted confounder is a separate source of trouble.

The LPM is often useful for average effects near the center of the regressor data. It is less reliable for predictions near zero or one and for combinations of characteristics in the tails. Nonlinear probability models such as logit and probit use an S-shaped function to keep predictions within the bounds and let effects flatten near the extremes. Near the middle, LPM slopes are often close to their average effects. Choose the model with the target in view: an average probability effect and an extreme individual probability demand different performance.

Key Takeaways

  • Check and report fitted values outside zero to one.
  • A constant probability effect cannot extend across a range that violates probability bounds.
  • Binary conditional variance is p(x)[1−p(x)] and generally varies with regressors.
  • Use robust standard errors and large-sample inference for an LPM.
  • Unequal error variance does not itself bias OLS; a correct conditional mean and exogeneity still matter.
  • Average effects near the data center are often more useful than tail predictions.

Functional Form and Dummy Variables examples

5 Walkthroughs

1

Choose and interpret a log specification

11 steps
Move from a percentage question to the right form, then check units and the observations that can be logged.
  1. 1
    IntroductionStart with the change you want to describe

    A firm wants to know whether additional delivery distance adds a fixed cost or a fixed percentage of cost. Those are different relationships. A level-cost model describes the first; a log-cost model can describe the second.

    Follow a fitted log-cost equation, calculate a finite change, and then check whether the units and observations support that reading.

  2. 2
    ExplanationIdentify the two scales

    In a log-level model, the outcome is logged while the regressor remains in its original units. The coefficient measures a proportional outcome change per regressor unit.

    For log⁡(cost)^=2.3+0.04 distance, with distance in kilometers, the slope means approximately 4% more cost per extra kilometer. It is not an addition of 0.04 currency units.

  3. 3
    ExampleFind the fitted log change first

    Compare trips that differ by three kilometers, holding other characteristics fixed. The intercept cancels when the fitted equations are subtracted:

    Δlog⁡(cost)^=0.04(3)=0.12.

    The calculation gives a change in the log, not yet the exact percentage cost change. Multiplying by 100 gives a 12% approximation.

  4. 4
    ExampleConvert the log difference into a percentage

    A log difference of 0.12 means the ratio of the two fitted exponential values is e0.12=1.1275, approximately.

    Subtract one and multiply by 100:

    100(e0.12−1)=12.75%.

    The exact fitted increase exceeds the 12% approximation. Reversing the trip comparison uses a log change of −0.12 and gives an 11.31% decrease, because the starting cost is now different.

  5. 5
    ChallengeTry a negative log change

    A fitted log-cost change is −0.16. What is the exact percentage change in fitted cost?

    ---reveal---

    100(e−0.16−1)=−14.79%.

    The −16% figure is the small-change approximation. Exponentiating returns a cost ratio of about 0.8521, which must be compared with one before it becomes a proportional change.

  6. 6
    ConnectionMove the log to the regressor

    If cost stays in levels but distance is logged, a slope of 20 gives approximately 0.20 currency units per 1% distance increase. For a 10% rise, the exact addition is 20log⁡(1.10)≈1.91 units.

    If both cost and distance are logged, the slope is an elasticity. A slope of 0.4 means about 0.4% higher cost for 1% more distance.

  7. 7
    ExplanationCheck which observations permit logs

    A strictly positive, right-skewed cost variable often suits a log model. But a zero cost has no natural log, and a negative amount cannot enter one either.

    Removing zero-cost observations changes the sample to trips with positive costs. Before interpreting results for all trips, ask whether the excluded observations differ systematically. Adding one permits zeros but changes the quantity being logged and its coefficient’s meaning near zero.

  8. 8
    ExampleChange distance from kilometers to meters

    The same equation records a slope of 0.04 per kilometer. A kilometer contains 1000 meters, so the slope per meter becomes 0.04/1000=0.00004.

    A three-kilometer trip difference is now 3000 meters, producing the same fitted log change: 0.00004(3000)=0.12. The coefficient’s standard error also divides by 1000, leaving its t statistic unchanged.

  9. 9
    Key InsightChanging outcome units shifts a logged intercept

    Suppose original cost units are multiplied by 100 before taking logs. Every logged cost rises by log⁡(100)≈4.605.

    The intercept rises by that amount, and the distance slope remains 0.04 per kilometer. The proportional relationship has not changed. This differs from rescaling a level outcome, which multiplies every coefficient and standard error by the outcome’s scale factor.

  10. 10
    ChallengeConnect rescaling with the effect reading

    A log-cost regression changes distance from kilometers to meters. Its new slope is 0.00007. What is the approximate percentage effect of five extra kilometers, and does the unit change alter R-squared?

    ---reveal---

    Five kilometers is 5000 meters, so the fitted log change is 0.00007(5000)=0.35, approximately a 35% increase. R-squared is unchanged because the fitted log costs are unchanged.

  11. 11
    RecapChoose the form before reporting the effect

    For a new equation, first identify the scales on both sides. Find the change in its fitted expression, then translate that change into outcome units or a percentage as appropriate.

    Before using a log specification, inspect zeros and negative values. Before comparing it with a level specification, return predictions to the same outcome scale; their original R-squared values describe different variables.

2

Work through changing marginal effects

13 steps
Use a quadratic and a continuous interaction to calculate effects at useful values and choose the matching test.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionLet a regression describe changing effects
  2. 2
    ExplanationDifferentiate the whole quadratic
  3. 3
    ExampleCalculate a whole-step change
  4. 4
    ExampleLocate the peak and check its support
  5. 5
    ChallengeChoose a test for a curved contribution
  6. 6
    TipMatch a summary to the data
  7. 7
    ExplanationForm a product to let effects depend on context
  8. 8
    ExampleEvaluate the effect where the observations are
  9. 9
    Key InsightCenter to make a main coefficient useful
  10. 10
    ChallengeRead the test with the correct reference point
  11. 11
    ConnectionA positive interaction is not a positive effect
  12. 12
    ChallengeCompare two kinds of changing slope
  13. 13
    RecapRead, evaluate and test the full effect
3

Compare models and predict on the right scale

16 steps
Move from a fit comparison to mean and individual intervals, then correct predictions from a logged outcome.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake the prediction target explicit
  2. 2
    ExplanationGive added regressors a cost
  3. 3
    ExampleCompare an expanded equation
  4. 4
    ChallengeSeparate better fit from the causal question
  5. 5
    TipCompare suitable models with suitable criteria
  6. 6
    ExplanationSeparate a mean from one new household
  7. 7
    ExampleBuild the mean interval
  8. 8
    ExampleAdd the new household’s variation
  9. 9
    ChallengeDiagnose an interval that is too narrow
  10. 10
    ExplanationExponentiation changes the averaging problem
  11. 11
    ExampleApply the normal factor step by step
  12. 12
    Key InsightUse smearing without assuming normality
  13. 13
    ChallengeCompare predictions that differ only in scale
  14. 14
    ConnectionRead a residual against its own fitted scale
  15. 15
    ChallengeChoose a fair comparison across outcome forms
  16. 16
    RecapUse the result that matches the target
4

Build and test group comparisons

19 steps
Code a base group, let intercepts and slopes differ, and connect the fully interacted model to a Chow test.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTurn a category into a comparison
  2. 2
    ExplanationDefine the indicator and its base
  3. 3
    ExampleCalculate a gap with controls fixed
  4. 4
    TipAvoid a duplicate intercept column
  5. 5
    ChallengeReverse a percentage comparison
  6. 6
    ExplanationRepresent three regions with two indicators
  7. 7
    ExampleCompare two included regions
  8. 8
    ChallengeChange the base without changing fit
  9. 9
    Key InsightOrder does not establish equal distances
  10. 10
    ExplanationLet the group gap change with size
  11. 11
    ExampleEvaluate the gap at two sizes
  12. 12
    ConnectionRead a product of two indicators
  13. 13
    ChallengeChoose the test for any group difference
  14. 14
    ExplanationCount parameters before the Chow calculation
  15. 15
    ExampleAssemble restricted and unrestricted fit
  16. 16
    ChallengeAllow intercepts under the slope null
  17. 17
    TipCheck the variance assumption
  18. 18
    ChallengeConnect interactions to a whole-model comparison
  19. 19
    RecapKeep coding, comparison and restrictions aligned
5

Read and check a linear probability model

11 steps
Calculate probability gaps, evaluate classification and examine the limits of constant effects and conventional inference.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionModel the chance of a yes outcome
  2. 2
    ExplanationTranslate slopes into percentage points
  3. 3
    ExampleCalculate a probability and a gap
  4. 4
    ChallengeCheck both sides of classification
  5. 5
    ConnectionAn overall average does not establish causality
  6. 6
    ExampleFind where the straight line breaks a bound
  7. 7
    ExplanationWork out the binary error variance
  8. 8
    Key InsightChange inference without changing coefficients
  9. 9
    ChallengeCheck an effect across a wider range
  10. 10
    ChallengeChoose a model evaluation for the intended use
  11. 11
    RecapJudge the model against its job

Functional Form and Dummy Variables practice questions

50 Practice Questions in 5 sets

Set 1: Apply effects and diagnose model choices10 Practice Questions

Question 1 of 10

A fitted log-log model has a price elasticity of −0.8. What is the exact fitted quantity change when price rises by 25%?
  1. About −20.00%.
  2. About −22.12%.
  3. About −17.85%.
  4. About −16.35%.
Show answerHide answer
Answer: D
The price ratio is 1.25, so the quantity ratio is 1.25 raised to negative 0.8. Subtracting one and multiplying by 100 gives about −16.35%. Multiplying −0.8 by 25% gives the small-change approximation −20%, which is less accurate for this sizable price increase.

Question 2 of 10

An estimated quadratic has a positive squared-term coefficient. What type of turning point does it have?
  1. A minimum.
  2. A maximum.
  3. A horizontal inflection.
  4. A discontinuity.
Show answerHide answer
Answer: A
A positive squared coefficient makes the fitted curve bend upward, so its slope increases as the regressor rises. The point where the slope reaches zero is a minimum. A maximum would require a negative squared coefficient, which makes the curve bend downward.

Question 3 of 10

In y^=5+0.3x+0.8z+0.04xz, z has sample mean 6. What is the coefficient on x after centering z at its mean and retaining all terms?
  1. 0.30
  2. 0.04
  3. 0.54
  4. 0.06
Show answerHide answer
Answer: C
The x coefficient after centering z describes its effect at z equal to 6: 0.3 plus 0.04 times 6, or 0.54. Centering moves the reference point but preserves the fitted relationship. Keeping 0.30 would still describe the effect at the old zero point of z.

Question 4 of 10

A log-outcome model has fitted log value 4 and normal errors independent of regressors, with estimated variance 0.16. What is the corrected conditional-mean prediction?
  1. e4
  2. e4.08
  3. e4.20
  4. e4.16
Show answerHide answer
Answer: B
The normal correction multiplies the exponential of the fitted log by the exponential of half the error variance. Half of 0.16 is 0.08, giving the exponential of 4.08. Adding 0.20 instead uses half the standard error, 0.40, in place of half the variance.

Question 5 of 10

An OLS regression has an intercept and a single dummy regressor. What does the dummy coefficient equal?
  1. The mean for group zero minus the mean for group one.
  2. The mean for group one minus the mean for group zero.
  3. The overall mean minus the mean for group zero.
  4. The group-one mean divided by the group-zero mean.
Show answerHide answer
Answer: B
For group zero, the fitted value is the intercept and equals that group’s sample mean. The dummy adds the amount needed to reach the group-one sample mean, so its coefficient is their difference in that order. Reversing the subtraction reverses the meaning of the indicator.

Question 6 of 10

A fitted log-pay equation contains 0.20d+0.05x−0.01dx. Over the observed range x = 8 to 16, how does the group-one fitted percentage premium change?
  1. It falls from about 12.75% to 4.08%.
  2. It falls from about 22.14% to 4.08%.
  3. It falls from about 12.00% to 4.00%.
  4. It falls from about 4.08% to −4.88%.
Show answerHide answer
Answer: A
The log gap is 0.20 minus 0.01 times x, giving 0.12 at 8 and 0.04 at 16. Exponentiating each gap and subtracting one gives premiums of 12.75% and 4.08%. The 12% and 4% pair uses the log gaps as approximate percentages instead of computing the requested fitted premiums.

Question 7 of 10

An analyst wants to test equal slopes across two firm groups while permitting their intercepts to differ. What belongs in the restricted regression?
  1. Common slopes and no group dummy.
  2. Separate slopes and no group dummy.
  3. Separate slopes and a group dummy.
  4. Common slopes and a group dummy.
Show answerHide answer
Answer: D
A slopes-only null leaves intercept differences unrestricted, so its restricted equation includes the group dummy alongside the common regressors. The dummy supplies the intercept shift. Omitting it imposes equal intercepts as well and changes the question to a full equality test.

Question 8 of 10

An LPM slope on waiting time is −0.025, with waiting time in minutes. What does one extra minute imply, other regressors fixed?
  1. A 0.025-percentage-point lower probability.
  2. A 2.5% lower probability relative to its start.
  3. A 2.5-percentage-point lower probability.
  4. A 0.25-percentage-point lower probability.
Show answerHide answer
Answer: C
The fitted probability falls by 0.025 probability units for an extra minute. Multiplying by 100 expresses that difference as 2.5 percentage points. A 2.5% relative decrease would depend on the starting probability, which this coefficient alone does not specify.

Question 9 of 10

Two profiles in an LPM have probabilities 0.2 and 0.5. What are their conditional error variances?
  1. 0.20 and 0.50.
  2. 0.04 and 0.25.
  3. 0.16 and 0.25.
  4. 0.80 and 0.50.
Show answerHide answer
Answer: C
For a binary outcome, conditional variance is probability times one minus probability. The two calculations are 0.2 times 0.8 and 0.5 times 0.5, giving 0.16 and 0.25. Squaring the probability alone gives 0.04 for the first profile and omits the possibility of outcome zero.

Question 10 of 10

On the same sample, a larger model lowers the SSR-to-n ratio from 3.0 to 2.9 and adds two parameters. There are 100 observations. Using the per-observation AIC and BIC, how do the criteria rank it?
  1. Both prefer the smaller model.
  2. Both prefer the larger model.
  3. AIC prefers larger; BIC prefers smaller.
  4. AIC prefers smaller; BIC prefers larger.
Show answerHide answer
Answer: A
The log-fit change is ln(2.9/3), about −0.03390. The added AIC penalty is 0.04 and the added BIC penalty is about 0.09210, so both criteria rise and favor the smaller model. Choosing the larger model merely because SSR falls ignores both parameter penalties.
Set 2: Read coefficients and choose the right comparison10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A fitted model is log⁡(cost)=2+0.06 distance, with distance in kilometers. What is the approximate cost change for one additional kilometer?
  1. A 0.06% increase.
  2. A 6% increase.
  3. A 6-point increase.
  4. A 0.6% increase.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A level-outcome regression uses travel distance in kilometers. Distance is changed to meters, with the same observations. What happens to its slope and standard error?
  1. Both are multiplied by 1000.
  2. Only the slope is divided.
  3. Both are divided by 1000.
  4. Only the standard error falls.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

The fitted output equation is y^=8+1.2x−0.03x2. What is the marginal effect at x=10?
  1. 0.60
  2. 0.90
  3. 1.20
  4. −0.60
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A fitted equation is y^=3+0.4a+0.2b−0.01ab. How does the effect of a change when b rises from 5 to 15?
  1. It falls from 0.15 to 0.05.
  2. It rises from 0.45 to 0.55.
  3. It stays at 0.40 at both values.
  4. It falls from 0.35 to 0.25.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A regressor is added to an OLS equation with an intercept, using exactly the same observations. What can happen to ordinary R-squared?
  1. It must rise strictly.
  2. It can fall or stay unchanged.
  3. It must stay unchanged.
  4. It can rise or stay unchanged.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A fitted score equation is used for one new student with given characteristics. What uncertainty must an individual prediction interval include?
  1. Mean estimation error and the sample mean only.
  2. Mean estimation error and the new student’s error.
  3. The new student’s error and no estimation error.
  4. Coefficient estimation error with no new student error.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Hourly pay is fitted as y^=4+2.2d+0.7e, where d marks certification and e is experience in years. What is the fitted certification gap at 8 years of experience?
  1. 2.2 currency units per hour.
  2. 7.8 currency units per hour.
  3. 0.7 currency units per hour.
  4. 17.6 currency units per hour.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A log-rent equation uses district A as base and estimates district B at 0.07 and district C at −0.05. What is the fitted log-rent gap for B compared with C?
  1. 0.02
  2. −0.12
  3. 0.12
  4. 0.07
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Two groups total 180 observations. Each group regression has two slopes and an intercept. Pooled SSR is 430 and the separate SSRs are 190 and 210. What are the full Chow statistic and denominator degrees of freedom?
  1. F=6.53;df=174
  2. F=4.43;df=177
  3. F=4.35;df=174
  4. F=6.64;df=177
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An LPM estimates an approval probability of 0.40 without a document and 0.52 with it, holding controls fixed. What is the direct probability gap?
  1. 12 percent of the original probability.
  2. 12 percentage points.
  3. 30 percentage points.
  4. 0.12 percentage points.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Choose intervals, restrictions and probability summaries10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

For a log-output model, the exponentiated fitted log is 240 and the smearing factor is 1.08. What is the corrected mean prediction?
  1. 240.0
  2. 241.08
  3. 259.2
  4. 222.22
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A researcher records net profit, including losses and exact zeros. What prevents taking its natural log directly for every observation?
  1. The log makes zero profits equal to one.
  2. The log changes every negative profit to positive.
  3. The log is undefined at zero and negative values.
  4. The log requires an integer-valued outcome.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A fitted log-cost equation contains 0.30x−0.02x2. What happens to fitted cost when x rises from 6 to 9?
  1. It rises 19.72%.
  2. It is unchanged.
  3. It falls 16.47%.
  4. It falls 5.82%.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A model has 80 observations, three slopes and R-squared 0.40. What is its adjusted R-squared?
  1. About 0.3921.
  2. About 0.4237.
  3. About 0.3680.
  4. About 0.3763.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A prediction has a mean-estimation standard error of 1.5 and regression standard error of 4.0. Under the standard independent-new-observation assumptions, what is its individual prediction-error standard error?
  1. About 4.27.
  2. About 5.50.
  3. About 3.71.
  4. About 1.50.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A model with an intercept contains dummies for six mutually exclusive delivery categories. How many category indicators should be retained to estimate unrestricted category differences?
  1. Six indicators.
  2. Four indicators.
  3. One indicator.
  4. Five indicators.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A fitted equation is y^=2+0.4d+0.7x−0.1dx. It is rewritten using z=x−5 and h=1−d, preserving its predictions. What are the new intercept and the coefficient on h?
  1. 5.5 and −0.1.
  2. 5.4 and 0.1.
  3. 5.4 and −0.1.
  4. 2.4 and −0.4.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two group regressions have different error variances. How should equality of their coefficients be tested?
  1. A robust joint test of the group terms.
  2. A classical Chow test using pooled SSR.
  3. A comparison of separate R-squared values.
  4. A t test of the pooled intercept alone.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A classifier predicts one for 90 people and zero for 30. Of the 80 observed ones, 64 are predicted one. What are its overall accuracy and its accuracy among observed zeros?
  1. 75% overall and 65% among zeros.
  2. 65% overall and 35% among zeros.
  3. 65% overall and 80% among zeros.
  4. 80% overall and 35% among zeros.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An LPM estimates a slope of 0.09 on a count regressor. What is the model’s fitted probability change for four additional units, holding other regressors fixed?
  1. 36 percentage points.
  2. 9 percentage points.
  3. 0.36 percentage points.
  4. 40 percentage points.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Connect transformations, comparisons and inference10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A rate recorded as a percent is modeled by log⁡(r)^=1.1+0.10x. At the starting x, its exponentiated fitted value is 8%. What are its fitted value and percentage-point change after x rises by 2?
  1. About 8.20%; an increase of 0.20 points.
  2. About 9.77%; an increase of 1.77 points.
  3. About 9.60%; an increase of 1.60 points.
  4. About 28.00%; an increase of 20.00 points.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A regression uses natural log revenue as its outcome. Revenue is changed from whole currency units to hundredths of a currency unit before logging. How does the fitted equation change?
  1. The intercept falls by ln(100); slopes stay fixed.
  2. Every coefficient is multiplied by 100.
  3. Every slope rises by ln(100); the intercept stays fixed.
  4. The intercept rises by ln(100); slopes stay fixed.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

In y^=6−0.2a+0.5b+0.03ab, b ranges from 4 to 12 and averages 9. What can be said about the effect of a across that range and on average?
  1. It changes sign; its sample average is 0.07.
  2. It is positive everywhere; its sample average is 0.07.
  3. It changes sign; its sample average is 0.27.
  4. It is negative everywhere; its sample average is −0.20.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A new outcome is predicted as 70, with mean standard error 2, regression standard error 5 and critical t value 2. What is the individual prediction interval?
  1. About 66.00 to 74.00.
  2. About 60.00 to 80.00.
  3. About 59.23 to 80.77.
  4. About 56.00 to 84.00.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Two methods predict an outcome from the same log model. Their predictions vary across observations, and the second method multiplies every first-method prediction by a common smearing factor of 1.2. How do squared correlation with actual outcomes and mean squared error compare?
  1. Squared correlation is equal; MSE may differ.
  2. Both squared correlation and MSE must be equal.
  3. Squared correlation rises; MSE must fall.
  4. Squared correlation falls; MSE must rise.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A sample indicator equals one for 84 of 240 firms. What is its sample mean?
  1. 0.65
  2. 0.84
  3. 0.35
  4. 2.86
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A log-price model uses type A as base and estimates type B at 0.09 and type C at −0.03. After changing the base to B, what is the coefficient on type C?
  1. 0.12
  2. −0.03
  3. −0.06
  4. −0.12
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A log-outcome equation includes 0.14d+0.09h−0.05dh, where d and h are dummies. What is the ratio of the fitted d premium factor when h is one to that factor when h is zero?
  1. e0.09
  2. e−0.05
  3. e0.18
  4. e0.04
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An LPM has several fitted values of 1.07. What conclusion follows for those observations?
  1. Their OLS coefficients must be biased.
  2. Their standard errors must be understated.
  3. Their fitted values are invalid probabilities.
  4. Their actual outcomes must be coded incorrectly.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An estimated quadratic has coefficients 1.8 on x and −0.045 on its square. Where is its fitted maximum?
  1. x=20
  2. x=40
  3. x=10
  4. x=−20
Show answerHide answer

Save this lesson to see this answer.

Set 5: Reason through unfamiliar model comparisons10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

In a level-log model, the coefficient on log area is 18. What is the approximate outcome change for a 1% area increase?
  1. 18 outcome units.
  2. 0.18% of the outcome.
  3. 0.18 outcome units.
  4. 1.8 outcome units.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A level-log model is y^=10+8log⁡(x). Starting at x = 20, how much must x increase to raise the fitted outcome by 4 units?
  1. By about 12.97 units.
  2. By exactly 10.00 units.
  3. By about 32.97 units.
  4. By exactly 0.50 units.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A fitted log-y quadratic has its turning point at x = 12 and a squared-term coefficient of −0.01. What is the exact fitted percentage change from x = 10 to x = 13?
  1. About +12.75%.
  2. About +3.00%.
  3. About −3.92%.
  4. About +3.05%.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A model includes x, z and their product. The analyst removes x but keeps z and the product. What restriction is imposed on the effect of x?
  1. It is forced to zero when x is zero.
  2. It is forced to zero when z is zero.
  3. It is constant at every value of z.
  4. It equals the effect of z at every point.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An estimation sample grows very large at a fixed prediction profile. The error variance is 9 and the standard normal individual prediction assumptions hold. What does the approximate 95% individual prediction interval approach?
  1. The fitted mean plus or minus zero.
  2. The fitted mean plus or minus 17.64.
  3. The fitted mean plus or minus 3.00.
  4. The fitted mean plus or minus 5.88.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A log-price model gives an exponentiated fitted value of 500 and smearing factor 1.10. An observed price is 450. What are its log residual and percentage shortfall from the corrected mean prediction?
  1. About −0.1054 and 18.18%.
  2. About −0.1054 and 10.00%.
  3. About −0.2007 and 18.18%.
  4. About −0.1000 and 10.00%.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A regression includes a group dummy d, x and their product. A test of the product coefficient alone rejects zero. What feature of the fitted group relationships differs?
  1. Their intercepts.
  2. Their fits at every x.
  3. Their slopes on x.
  4. Their error variances.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two fitted group lines have a positive group-one gap at x = 4 and a negative gap at x = 10. The model contains d, x and dx. What must hold over this interval?
  1. The dummy coefficient is negative and no crossing occurs.
  2. The interaction is negative and the lines cross inside.
  3. The interaction is positive and the lines cross inside.
  4. The dummy coefficient is positive and the slopes are equal.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Two groups total 250 observations and each regression has four slopes plus an intercept. Separate-group SSR totals 480; the common-slope model with a group dummy has SSR 520. What is the slopes-only F statistic?
  1. 4.00
  2. 5.10
  3. 4.08
  4. 5.00
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

An LPM is used mainly for average effects around the sample center, but 2% of its fitted probabilities exceed one at extreme profiles. How should its usefulness be assessed?
  1. Assess central effects and inspect the invalid tail predictions.
  2. Reject every coefficient because some predictions exceed one.
  3. Use all tail predictions because only 2% exceed one.
  4. Replace robust errors with conventional errors to fix bounds.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

65 Key Terms, each with its definition

A

Adjusted R-squared
Adjusted R-squared modifies R-squared using residual degrees of freedom, penalizing added regressors that improve fit too little.
A nearly irrelevant extra regressor can raise ordinary R-squared while lowering its adjusted counterpart.
Akaike information criterion
The Akaike information criterion combines a measure of fit with a parameter penalty; a lower value favors a comparable specification.
An added regressor lowers AIC only when its fit improvement outweighs the extra parameter penalty.
Average partial effect
An average partial effect is the sample average of the marginal effects evaluated at each observation’s regressor values.
A researcher averages worker-specific experience slopes instead of reporting only the slope at zero.

B

Band dummy
A band dummy indicates whether a continuous variable falls inside a chosen interval, allowing separate effects for different ranges.
An age-40-to-49 indicator allows that range a separate intercept but ignores differences within it.
Base group
A base group is the category represented by zero values for its classification’s included dummies, against which coefficients are read.
If rural properties are the base, an urban coefficient measures an urban-minus-rural fitted gap.
Bayesian information criterion
The Bayesian information criterion balances fit and size with a penalty depending on sample size, stronger than AIC’s for n at least eight.
BIC can prefer a shorter equation even when AIC favors including an additional pair of regressors.
Binary outcome
A binary outcome takes only zero or one, with its conditional mean equal to the conditional probability of observing one.
An application outcome can be one for acceptance and zero for rejection, while its average is a share.

C

Centering
Centering subtracts a chosen reference value from a regressor, making zero represent that reference and changing coefficient interpretations.
Subtracting mean rainfall makes a fertilizer main coefficient describe a season with mean rainfall.
Chow test
A Chow test evaluates equality of regression coefficients across groups; its classical SSR-based version assumes a common error variance.
The full test compares a common firm equation with equations having separate intercepts and slopes.
Classification threshold
A classification threshold is the probability cutoff used to turn a fitted probability into a predicted zero-or-one outcome.
At a threshold of 0.5, a fitted acceptance probability of 0.55 is classified as acceptance.
Coefficient covariance
Coefficient covariance measures how two coefficient estimates vary together across samples and helps determine uncertainty in their difference.
Two regional standard errors alone cannot establish the precision of the difference between their effects.
Conditional mean
A conditional mean is the average outcome for a specified set of regressor values, distinct from any one observation’s realized outcome.
Students with identical recorded preparation can still score above or below their conditional mean.
Conditional median
A conditional median is an outcome value with at least half the conditional distribution on each side, for specified regressor values.
With independent normal log errors, exponentiating the fitted log estimates the conditional median.
Constant probability effect
A constant probability effect assigns the same additive probability change per regressor unit at every starting profile in a linear specification.
A fixed six-point increase per unit cannot persist indefinitely without eventually crossing a probability bound.
Cubic specification
A cubic specification adds a regressor’s third power to its linear and squared terms, allowing a more flexible changing slope.
A test on the third-power coefficient checks whether the cubic adds useful flexibility to a quadratic.

D

Dummy variable
A dummy variable is an indicator equal to one when a condition holds and zero otherwise, allowing a regression to represent categories.
An exporter dummy equals one for firms that export and zero for firms that do not.
Dummy variable trap
The dummy variable trap is perfect collinearity caused by including all mutually exclusive category indicators with an intercept.
Indicators for approved and not approved add to one, duplicating the intercept column.
Dummy-by-continuous interaction
A dummy-by-continuous interaction multiplies an indicator by a numerical regressor, allowing that regressor’s slope to differ between groups.
An urban-by-area term allows the fitted rent per extra square meter to differ in urban properties.
Dummy-by-dummy interaction
A dummy-by-dummy interaction is the product of two indicators, allowing one group gap to differ across the other indicator’s categories.
A certification-by-exporter term lets the certification gap differ between exporters and other firms.

E

Elasticity
An elasticity measures the percentage response of one variable to a 1% change in another, holding the model’s other regressors fixed.
A demand elasticity of −0.5 indicates that quantity changes proportionally less than price.
Equal-step restriction
An equal-step restriction requires the same outcome change for each one-level rise in an ordered numerical regressor.
Category coefficients of 0.03, 0.06 and 0.09 against level zero match one constant 0.03 step.
Extrapolation
Extrapolation predicts at regressor values beyond those well supported by the estimation data, where the fitted form may fail.
A cost equation estimated for small facilities may poorly predict costs for a much larger facility.

F

Fully interacted regression
A fully interacted regression gives each group its own intercept and all slopes through group dummies and their regressor products.
One fully interacted equation reproduces the fitted values of two separate group regressions.
Functional form
A functional form specifies how variables enter a model, such as levels, logs, squares or products, and thus how fitted effects vary.
A researcher chooses log sales when the economic question concerns proportional sales differences.

H

Heteroskedasticity
Heteroskedasticity means conditional error variance differs across regressor profiles, as binary variance generally does when probabilities vary.
A binary outcome is more variable at probability 0.5 than at probability 0.95.

I

Interaction term
An interaction term is a product of regressors that lets the fitted effect of one depend on the value of the other.
A spending-by-experience term can make the fitted effect of spending differ across experience levels.

J

Joint exclusion test
A joint exclusion test tests whether all coefficients in a selected group equal zero, assessing their combined contribution to the model.
Testing an input’s main and interaction terms together asks whether that input contributes at all.

L

Level variable
A level variable enters an equation without a log transformation, so its measurement units remain central to the coefficient’s reading.
Age recorded in years is a level regressor even when the outcome is log annual expenditure.
Level-log model
A level-log model keeps the outcome in original units and logs a regressor, linking outcome-unit changes to proportional regressor changes.
A score equation can relate additional score points to a 1% increase in study spending.
Linear in parameters
A model is linear in parameters when each unknown coefficient multiplies a known regressor term and coefficients enter additively.
OLS can estimate coefficients on age and age squared even though the fitted curve is not a straight line.
Linear probability model
A linear probability model uses OLS for a binary outcome, specifying its conditional probability as a linear combination of regressors.
An approval equation can assign a direct percentage-point effect to an additional year of experience.
Log-level model
A log-level model regresses a logged outcome on level regressors, making a slope an approximate percentage effect per regressor unit.
A transport model can describe the percentage cost change associated with another kilometer of travel.
Log-log model
A log-log model logs both the outcome and a regressor, so that regressor’s slope is a constant elasticity, other regressors fixed.
A coefficient of 0.6 connects a 1% increase in floor area with approximately 0.6% higher rent.
Log-one-plus transformation
A log-one-plus transformation applies the natural log to one plus a variable, allowing zero values but changing the effect’s interpretation.
A log-one-plus donations model keeps zero donors, but its slope is not a usual percentage effect near zero.

M

Main effect
A main effect is a variable’s own term alongside an interaction; its coefficient describes a slope at the other variable’s zero point.
With an area-by-age interaction, the area coefficient describes an age-zero property.
Marginal effect
A marginal effect is the slope of the fitted relationship for a very small change in one regressor, holding other regressors fixed.
The effect of another kilogram of an input can depend on how much of that input is already used.
Mean confidence interval
A mean confidence interval expresses sampling uncertainty in the estimated conditional mean at a specified regressor profile.
An interval for average rent at a given floor area does not describe the spread of individual rents.
Mean squared error
Mean squared error averages squared differences between observed outcomes and predictions, measuring prediction error on a fixed scale.
Unlike correlation, mean squared error detects a systematic multiplication error in predicted spending.

N

Natural logarithm
The natural logarithm is the logarithm with base e; a small difference in natural logs approximates a proportional change.
A fitted log-sales increase of 0.02 describes approximately 2% higher sales, with other regressors fixed.
Nonnested models
Nonnested models are specifications where neither is obtained by imposing coefficient restrictions on the other.
Using log size in one equation and size plus size squared in another gives nonnested candidates.

O

Ordinal variable
An ordinal variable has ranked categories whose numerical distances need not represent equally large differences in the underlying attribute.
A five-level satisfaction rating has an order, but adjacent levels need not have equal outcome effects.
Overcontrolling
Overcontrolling means adjusting for a variable on the causal channel of interest, removing part of the total effect being estimated.
Controlling for purchases can block the channel through which a price change affects total spending.

P

Percent correctly predicted
Percent correctly predicted is the share of observations whose classified outcome matches the observed binary outcome, expressed as a percent.
A model can have high overall accuracy while correctly classifying few observations in the smaller group.
Percentage point
A percentage point is a unit for the arithmetic difference between percentages, distinct from a relative percent change.
A probability moving from 30% to 36% rises by six percentage points and by 20% relative to its start.
Point prediction
A point prediction is the fitted outcome calculated at specified regressor values, estimating their conditional mean.
A fitted score of 64 is a point prediction for students with the specified study characteristics.
Prediction interval
A prediction interval accounts for estimation uncertainty and a new observation’s error, giving an interval for one new outcome.
A prediction interval for one shipment is wider than a confidence interval for mean delivery time.
Probability bounds
Probability bounds require a probability to lie between zero and one inclusive; an unrestricted linear prediction can violate them.
A fitted employment value of −0.08 is an invalid probability even though OLS can produce it.

Q

Quadratic specification
A quadratic specification includes a regressor and its square, allowing its marginal effect to rise or fall linearly with its level.
An experience square can represent diminishing additions to hourly wage as experience grows.

R

R-squared
R-squared is one minus residual variation divided by total outcome variation; with an intercept, it measures in-sample explained variation.
An R-squared of 0.45 refers to the variation of the particular dependent variable used in estimation.
Reinforcing effects
Reinforcing effects occur when increasing either of two variables raises the other’s marginal effect, represented by a positive interaction.
A positive irrigation-by-fertilizer coefficient means more irrigation raises fertilizer’s fitted effect.
Rescaling
Rescaling changes a variable’s numerical units by multiplying or dividing by a constant, without changing the underlying observations.
Recording mass in grams instead of kilograms multiplies its numerical value by 1000.
Residual
A residual is an observed dependent-variable value minus its fitted value, combining unexplained influences and measurement error.
A negative rent residual identifies a property renting for less than its recorded characteristics predict.
Restricted model
A restricted model imposes the coefficient constraints being tested, such as equal intercepts and slopes for two groups.
The fully pooled regression is the restricted model for a full two-group Chow comparison.
Retransformation
Retransformation converts predictions from a transformed outcome scale back to original units, requiring care about the prediction target.
An exponentiated log-spending prediction needs a correction before it predicts mean spending.
Right-skewed distribution
A right-skewed distribution has a long tail toward large values, with some observations much larger than most of the sample.
A few very large firms can make the distribution of positive annual sales strongly right-skewed.
Robust standard error
A robust standard error estimates coefficient uncertainty while allowing conditional error variance to vary across observations.
LPM inference uses robust standard errors instead of assuming identical error variance for all profiles.

S

Self-selection
Self-selection occurs when units choose treatment in a way related to their characteristics, potentially including unobserved outcome determinants.
More motivated applicants may choose training and also search for jobs more actively.
Semi-elasticity
A semi-elasticity measures proportional change in an outcome per unit change in a regressor; multiply by 100 for an approximate percent effect.
In a log-revenue model, a time slope of 0.03 describes roughly 3% more revenue per additional year.
Slope difference
A slope difference is the amount by which one group’s marginal effect differs from another’s, represented by a dummy interaction coefficient.
A product coefficient of −0.02 makes group one’s slope 0.02 smaller than the base group’s slope.
Slopes-only test
A slopes-only test compares group slopes while allowing intercept differences, retaining the group dummy in the restricted equation.
Rejecting equal slopes after allowing different intercepts points to more than a simple vertical shift.
Smearing factor
A smearing factor is the average exponential of log-model residuals, used to correct original-scale mean predictions without assuming normality.
A smearing factor above one raises the model’s exponentiated log prediction for total-expenditure forecasts.

T

Treatment dummy
A treatment dummy marks program or intervention exposure with one and the comparison condition with zero.
A grant-recipient indicator compares recipient and nonrecipient outcomes after accounting for controls.
Turning point
A turning point is a regressor value at which a fitted curve’s slope is zero and the curve changes from rising to falling or the reverse.
A negative quadratic term can place the highest fitted output at an intermediate input level.

U

Unordered category
An unordered category is a classification label without a meaningful ranking or numerical distance from the other labels.
Industry names can be coded as dummies without assigning an artificial order to their effects.
Unrestricted model
An unrestricted model allows the coefficient differences under examination, providing the fit and residual variance used in a joint test.
For a two-group comparison, separate equations allow each group its own set of coefficients.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started