Obesity Weight Prediction Model โ€” Linear Regression

Overview

This model predicts a personโ€™s weight (kg) based on height (m) and age (years) using a Linear Regression model from scikit-learn.


Training

Detail Value
Algorithm LinearRegression()
Features Height, Age
Target Weight
Train/Test Split 75% / 25%
Random State 42
Dataset ObesityDataSet_raw_and_data_sinhtetic.csv

Performance

Metric Score
MSE (Mean Squared Error) 511.55
R^2 Score 0.2777

These results indicate that height and age alone do not fully explain weight โ€” important factors like diet, genetics, and exercise are missing.


Visualization

Below is a scatter plot showing predicted vs true weights:

True vs Predicted Weight

The wide spread around the regression line shows prediction uncertainty for heavier individuals.


Limitations

  • Only two features used โ†’ reduced explanatory power
  • Synthetic dataset โ€” not reflective of real population variation
  • Performance not suitable for real-world medical decisions

This model is intended for educational use only.


Strengths

  • Easy to interpret
  • Fast and simple
  • Good educational model

Weaknesses

  • Low accuracy
  • Missing key health variables
  • Not production-ready

Citation

Downloads last month
16
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Evaluation results

  • mean_squared_error on ObesityDataSet_raw_and_data_sinthetic.csv
    self-reported
    511.550
  • r2 on ObesityDataSet_raw_and_data_sinthetic.csv
    self-reported
    0.278