5.2.1 Implementing the model
Until now, we have exclusively utilised a single independent variable, “Age” for predicting insurance premiums. Let's now introduce another independent variable, “BMI”, into the dataset and assess whether the inclusion of this additional variable enhances prediction accuracy. Let's take a quick look at our dataset once more, this time with the addition of the “BMI” variable:
|
Dataset |
||
|
Age (Years) |
BMI |
Insurance Premium ($) |
|
20 |
21.8 |
5042 |
|
21 |
22.0 |
3928 |
|
22 |
20.0 |
4700 |
|
23 |
28.3 |
9016 |
|
24 |
22.6 |
2457 |
|
Data continues up to 60 years of age… |
||
We have now added another independent variable “BMI”, therefore, the multiple linear regression equation…