Coefficient of determination
The coefficient of determination is a measure of how well the linear regression line fits the observed values. For simple linear regression, it is equal to the square of the correlation between the explanatory and response variables.
Here, you'll take another look at the second stage of the advertising pipeline: modeling the click response to impressions. Two models are available: mdl_click_vs_impression_orig
models n_clicks
versus n_impressions
. mdl_click_vs_impression_trans
is the transformed model you saw in Chapter 2. It models n_clicks
to the power of 0.25 versus n_impressions
to the power of 0.25.
This exercise is part of the course
Introduction to Regression with statsmodels in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Print a summary of mdl_click_vs_impression_orig
print(____)
# Print a summary of mdl_click_vs_impression_trans
print(____)