| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | [Description] Model Predictivity - Calculate R², Adjusted R², and understand model fit quality | |||||||||||||||||||||||||
2 | ||||||||||||||||||||||||||
3 | Model Predictivity Worksheet | |||||||||||||||||||||||||
4 | ||||||||||||||||||||||||||
5 | Dataset: Birds Abundance Study | |||||||||||||||||||||||||
6 | Variables: ABUNDANCE (Y) vs ELEVATION (X) | |||||||||||||||||||||||||
7 | Source: ../Dataset/birds.txt | |||||||||||||||||||||||||
8 | ||||||||||||||||||||||||||
9 | ||||||||||||||||||||||||||
10 | Learning Objectives: | |||||||||||||||||||||||||
11 | ||||||||||||||||||||||||||
12 | 1. Calculate SST (Total Sum of Squares) | |||||||||||||||||||||||||
13 | 2. Calculate SSE (Error Sum of Squares) from residuals | |||||||||||||||||||||||||
14 | 3. Calculate SSR (Regression Sum of Squares) | |||||||||||||||||||||||||
15 | 4. Verify: SST = SSR + SSE | |||||||||||||||||||||||||
16 | 5. Calculate R² = SSR/SST = 1 - SSE/SST | |||||||||||||||||||||||||
17 | 6. Calculate Adjusted R² = 1 - (SSE/(n-p))/(SST/(n-1)) | |||||||||||||||||||||||||
18 | 7. Calculate RSE (Residual Standard Error) = sqrt(SSE/(n-p)) | |||||||||||||||||||||||||
19 | ||||||||||||||||||||||||||
20 | ||||||||||||||||||||||||||
21 | Key Formulas: | |||||||||||||||||||||||||
22 | SST: | Σ(Yᵢ - Ȳ)² = Total variation in Y | ||||||||||||||||||||||||
23 | Relation: | SST = SSR + SSE (Total = Explained + Residual) | ||||||||||||||||||||||||
24 | SSR: | Σ(Ŷᵢ - Ȳ)² = Variation explained by model | ||||||||||||||||||||||||
25 | SSE: | Σ(Yᵢ - Ŷᵢ)² = Residual variation | ||||||||||||||||||||||||
26 | R²: | SSR/SST = 1 - SSE/SST | ||||||||||||||||||||||||
27 | Adj R²: | 1 - [(n-1)/(n-p)] × (1-R²) | ||||||||||||||||||||||||
28 | RSE: | sqrt(SSE/(n-p)) = sqrt(MSE) | ||||||||||||||||||||||||
29 | ||||||||||||||||||||||||||
30 | ||||||||||||||||||||||||||
31 | Color Guide: | |||||||||||||||||||||||||
32 | ||||||||||||||||||||||||||
33 | Given Data (Input) | |||||||||||||||||||||||||
34 | Intermediate Calculations | |||||||||||||||||||||||||
35 | Final Results | |||||||||||||||||||||||||
36 | Correct Answer (✓) | |||||||||||||||||||||||||
37 | Incorrect Answer (✗) | |||||||||||||||||||||||||
38 | ||||||||||||||||||||||||||
39 | ||||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 | ||||||||||||||||||||||||||