1/9
Looks like no tags are added yet.

How many observations and how many variables are there in the dataset?
400 observations and 4 variables


Types of variables
num = numeric
chr = character
factor = factor
int = integer


Identify the names of the dependent and independent variables.
dependent variable = books
independent variables = promotion, price, published author

What’s the liniar regression equation
Liniar Regression equation → y = b0 + b1 * x + error
ex: lm(formula = wb1infantmortality wb1gdp_per_capita)
infant_mortality = dependent variable (y)
gdp_per_capita = independent variable (x)
intercept = b0
the coeficient estimate of independent variable = b1


Write the regression equation for the following example.
books = 2493.31 + 0.02 * promotion + (- 201.93)*price + 288.09 *published authors + error


Interpret the coeficient estimates.
intercept = 2493.31 represents books when promotion is 0
coefficient of promotion = if promotion increases with 1 unit, books increase with 0.02 (estimate for b1), assuming everything else remains the same
coefficient of price = if price increases with 1 unit, books decrease (bc value is negative here) with 201.93, assuming everything else remains the same
coefficient of published authors = if an author has been published before, books increase with 288.09 compared to an author that hasn’t been published


Decide if the coeficient estimates are statistically significant.
The coefficient estimates for price and published authors are statistically significant because the p-value is lower than 0.05 (***), while the coefficient estimate for promotion isn’t because the p-value is higher than 0.05.


Interpret the multiple R-squared value and discuss the value in relation to adjusted R-squared. Is the model correctly specified? Why?
multiple R-squared = 90.85% of books can be explained by the independent variables
adjusted R-squared = 90.78%
multiple R-squared - adjusted R-squared = 0.9085 - 0.9078 = small difference, so the model is correctly specified


What does the third quartile (3Q) for b1 (promotion) represent?
75% of the values in promotion are lower than 183.35 (3Q)
What does the first quartile (1Q) represent?
25% of the values are lower than 1Q