Practice Question 1
One of the biggest issues facing e-retailers is the ability to turn browsers into buyers. This is measured
by the conversion rate, the percentage of browsers who buy something in their visit to a site. The
conversion rate for a company's website was 10%. The website at the company was redesigned in an
attempt to increase its conversion rates. A sample of 200 browsers at the redesigned site was selected
and it was found that 28 actually made a purchase. The company officials would like to know if there is
evidence of an increase in conversion rate at the 5% level of significance. What is the p-value?
Practice Question 2
A company manufacturing furniture knows that the average number of tables a worker can assemble in
one hour is 20, with a standard deviation of 5. It is proposed that a new glue may speed up assembly
and increase hourly output, so a test is made using the new glue and 100 hours of labor time. The
average number of tables assembled per hour during the test is 22. At the .10 level of significance, does
management have reason to believe that the new glue speeds up assembly output? P-value?
Practice Question 3
A sample of 30 cars is selected for the annual car exhibition in New Orleans. It was determined that the
value of the car is estimated based on mileage, number of additional features and the age of the car.
Based on these characteristics, the following data was obtained:
df
Regression
Residual
Total
Intercept
X1
X2
X3
a)
b)
c)
d)
Coefficient
9,580
100,000
35
15.5
SS
123,596
F
295,875
Standard Error
365.29
25,360.56
25.2
19.25
t-statistic
p-value
Fill out the missing variables
Determine the estimated regression equation
Estimate the coefficient of determination and interpret its meaning.
Construct and interpret the 90% confidence interval for the slope corresponding to the mileage
of the car.
e) Test the significance of the model; use 0.05 level of significance.
f) Which independent variable is the most significant?
Fluffytown:
After completing your MBA, you were hired by a producer and seller of cakes, called Fluffytown. The
company’s slogan is that “you can never say fluffy in an angry way”. In charge of sales forecasting for the
retail division, you compile the sales data nationwide for the past few years (RETAIL.xlsx) by the regional
sales managers. Ignore inflation.
1. Is there a trend overall, and is there a seasonal trend? Plot the forecast and explain what you find.
2. Can you match that trend line on your own?
a. Create a simple linear regression versus time. What would your predictive model be?
b. Is time a significant predictor?
c.
Complete the prediction for the rest of the final year.
d. What is the mean absolute deviation?
3. What about during any given year?
a. Build a regression to observe the effect of different periods in a year. What is the model?
b. Which is the most significant predictor? Explain what that means.
c.
Complete the prediction for the rest of the final year.
d. Compare the mean absolute deviation to the time series mode.
4. Now do one with both time and seasons.
a. What is the model?
b. Complete the prediction for the rest of the final year.
c.
What is the mean absolute deviation here?
5. The distant past may not be too relevant. Build a weighted average model using the details available
in the final year.
a. The most recent period has a weight of 50%, the previous one 30%. The final period of the
previous year can have 20%.
b. What does the forecast look like for the rest of that year?
c.
What is the mean absolute deviation?
6. “Would an auto-regressive model make more sense?” asks your assistant.
a. Would it? Build the model.
b. Complete the prediction for the rest of the final year.
c.
What is the mean absolute deviation?
7. Which regression model would you use? Why?
Project CARS:
With all the dough you make at Fluffytown, you now want to buy a shiny new Lexus. Given the sample
for multiple vehicles with internal combustion engines (CARS.xlsx), the following research questions are
being addressed.
1. Asian manufacturers (Korean and Japanese) are known for their reputation as producers of fuelefficient cars. Can you say with 95% confidence that the consumption of an Asian car is lower than
25 mpg while driving in the city?
2. Derive a confidence interval for the number of lifetime collisions of all vehicles. Since BMW drivers
have a reputation for being the rudest drivers, karma rules state that they are more likely to end up
in a collision. How does the confidence interval for BMWs compare to all the cars?
3. You are a haggler studying this set to learn how to get a good deal on your next car. Construct a
logistic regression to find the factors that lead to a car selling for a price that is lower than the MSRP
by at least 2000$. Use a 60-30-10 partition, with backwards elimination as the selection method.
Keep default settings everywhere else.
a. What is the logistic regression equation based on the training set?
b. Build a confusion matrix and identify the accuracy, specificity, sensitivity, and area under the
curve.
c.
Do you suspect multicollinearity with any of the remaining variables? Explain.
d. After removing any suspected multicollinear variables, predict whether you would get a
good deal (based on the difference between MSRP and actual price) for your shiny new
Lexus sportscar, with rear-wheel-drive, a 5 liter 10 cylinder engine producing 500
horsepower, with 12 mpg in the city and 18 mpg on the highway, weighing 2850 pounds,
with a length of 184 inches, and 0 collisions.
4. Now use k-nearest neighbors to find the expected highway mpg. Use the same ratio of 60-30-10, and
this time, standardize the data, with k between 1 and 10. Use the test set to answer all questions
below. Ignore the price variables and the categorical variables.
a. Why would one scale the data in this situation?
b. Which value of k minimizes the error rate?
c.
Compare the best choice of k and the worst choice from the previous question. What are
the lift chart heights of the first decile in each choice.
d. Ignoring price data, what would be the highway mpg rate of your new Lexus based on the
best choice kNN model?