
SDS 291
October 6, 2025
Research Question
Given that Quantum of Solace cost $200,000,000 to produce, what do we predict its total box office gross to be?


Let \(x_i\) be the budget and \(y_i\) the total box office gross of the \(i\)th movie, both in millions of dollars. Then:
\[\widehat{\log(y_i)} = 0.604 + 0.846\log(x_i)\]
\[ \log(Y_i) = \beta_0 + \beta_1\log(x_i) + \epsilon_i, \quad\text{where } \epsilon_i \overset{iid}{\sim} N(0, \sigma) \]
We still like to draw inferences about the broader population on the untransformed scales:
Transformations/re-expressions won’t create new relationships where there were none previously!
Regardless of what transformation of the response variable we used to make our prediction, we will want to re-express the prediction back on the original data scale (by applying the inverse transformation)
# A tibble: 1 × 4
Budget_M .fitted .lower .upper
<dbl> <dbl> <dbl> <dbl>
1 200 5.08 3.36 6.81
# A tibble: 1 × 3
.fitted .lower .upper
<dbl> <dbl> <dbl>
1 162. 28.9 903.
Inferences 2 and 3 require more careful consideration, since they aim to make statements about the population model for the mean: \[\begin{alignat*}{2} &\text{General:} &&E[f(Y) | g(x)] = \beta_0 + \beta_1 g(x)\\[0.75em] &\text{Movies in 2008:} \quad &&E[\log(Y) | \log(x)] = \beta_0 + \beta_1\log(x) \end{alignat*}\]
Interpretations for transformed variables can be clunky:
Note
\(\log\) transformations have the benefit of offering us convenient, sensical interpretations in terms of the original, untransformed variables!
The exact interpretation depends on which variable(s) was (were) transformed:
The slope of a regression line tell us how a change in \(x\) relates to a constant change in (the mean of) \(y\)
Because logarithms turn multiplication into addition, our interpretation of the slope will be in terms of multiplicative changes in \(x\):
A \(c\)-fold multiplicative change in the explanatory variable is associated with a \(\beta_1\log(c)\) unit [increase/decrease] in the average value of the response variable.
Tip
The choice of \(c\) should depends on what scale of change makes sense for the data! A doubling? Then set \(c = 2\). A 10-fold change? Set \(c = 10\). A 10% reduction? Set \(c = 0.9\).
The Happy Planet Index measures human well-being and environmental impact. Their data on a country’s GDP per capita (\(x\)) and life expectancy (\(y\)) is best summarized by the fitted linear model \[\widehat{y}_i = 20.12 + 5.62\log(x_i)\]
Estimate Std. Error t value Pr(>|t|)
(Intercept) 20.120197 2.4865124 8.091734 2.093958e-13
log(GDP_per_capita) 5.619668 0.2617096 21.472914 4.992533e-47
Interpretation
A three-fold increase in GDP per capita is associated with an estimated 6.17 year increase in average life expectancy.
Part of our goal when we transformed \(Y\) was to ensure that the resulting \(\log(Y)\) was symmetrically distributed about the regression line. This means the mean and the median of \(\log(Y)\) are the same! So our interpretation focuses on multiplicative changes in the median of \(Y\):
Interpretation
A one unit increase in the explanatory variable is associated with a multiplicative change of \(e^{\beta_1}\) in the median value of the response variable.
Using data collected by The World Bank in 2020, we find that the relationship between a country’s GDP per capita (\(y\)) and the percent of its population that lives in urban areas (\(x\)) is given by \[\widehat{\log(y_i)} = 6.37 + 0.04x_i \iff \widehat{Median(y_i)} = e^{6.37 + 0.04 x_i}\]
A one percentage point increase in the percent of the population living in urban areas is associated with an estimated multiplicative change of 1.04 in the median GDP per capita.
When both \(x\) and \(Y\) are log-transformed, we combine the previous two approaches! We consider how multiplicative changes in \(x\) associate with multiplicative changes in the median of \(Y\):
Interpretation
A \(c\)-fold multiplicative change in the explanatory variable is associated with a multiplicative change of \(c^{\beta_1}\) in the median value of the response variable.

SDS 291