Description
Activity on
Problem 1.1 (5 Points) The response variable of the observed data and the fitted prediction are listed in the following table.
Response (Y) Model I Prediction (πΜ1) Model II Prediction (πΜ2)
3 3.2 3.3
4 4.3 4.2
5 4.9 4.8
6 5.7 5.9
7 6.9 7.1
1. Calculate the sum squared of error of Model I and Model II.
2. Calculate the average squared error of Model I and Model II.
3. Calculate both π
πΌ2 and π
πΌπΌ2 .
4. Calculate both ππ΄ππΈπΌ and ππ΄ππΈπΌπΌ
5. Calculate both ππ΄πΈπΌ and ππ΄πΈπΌπΌ
Measure Model I Model II
SSE
ASE
R2
MAPE
MAE
1
ISC 4241 β Activity #2
Problem 1.2 (10 Points) Work on Problem 1, Problem 2, and Problem 3 in the Textbook (Chapter 5 on Page 219)
Data Used: βHouse_Prices_PRED.CSVβ with three variables: ID, House_Price (observed value), and P_House_Price (Model Predicted Value).
Problem 2.1 (0 Points) Read the CSV file βHouse_Prices_PRED.CSVβ
Problem 2.2 (3 Points) Write a program to calculate the sum squared of error and the average squared error of the Model (i.e., P_House_Price).
Problem 2.3 (3 Points) Write a program to calculate the R2 of the Model (i.e., P_House_Price).
Problem 2.4 (3 Points) Write a program to calculate the MAPE of the Model (i.e., P_House_Price).
Problem 2.5 (3 Points) Write a program to calculate the MAE of the Model (i.e., P_House_Price).
Problem 2.6 (3 Points) Write a program to produce a residual plot with residual on the Y-axis and observed value (House_Price) and to impose a loess line on the graph.
2



