Skip to content

Commit

Permalink
Update 07.preliminary_predictive_modeling.md
Browse files Browse the repository at this point in the history
  • Loading branch information
supremepandey authored Nov 14, 2024
1 parent db31d73 commit e1874e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/07.preliminary_predictive_modeling.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To test these theories, we first implemented cross-validation with 5 folds, as t
The relatively low performance of linear models suggests that the relationships between the variables in the dataset may be non-linear or involve complex interactions between variables. Therefore, we evaluated the performance with the polynomial regression model. This time we eliminated the one feature "Holiday" as it has less correlation with the price and we divided the data into 80% training and 20% testing.

**Equation (5):**
$$\text{Price} = 4332.83 + 4764.5065 x \text{Total Stops} + 4.98 x \text{Flight Duration} - 424.07 x \text{Holiday}<sup>2</sup> - 0.001 x \text{Flight Duration}<sup>2</sup>$$ - 1.43 \text{Noise}$$
$$\text{Price} = 4332.83 + 4764.5065 x Total Stops + 4.98 x \text{Flight Duration} - 424.07 x Holiday<sup>2</sup> - 0.001 x Flight Duration<sup>2</sup> - 1.43(Noise)$$

The RSME, MSE and R^2 values we observed from this model are 3082.22, \( 9.50 e+06 \), and 0.48, respectively. You can observed that the model performence have improved than the last model but still it has low performance.

Expand Down

0 comments on commit e1874e8

Please sign in to comment.