What is R² score in regression?

Quality Thought – Best AI & ML Course Training Institute in Hyderabad with Live Internship Program

Quality Thought stands out as the best AI & ML course training institute in Hyderabadoffering a perfect blend of advanced curriculum, expert mentoring, and a live internship program that prepares learners for real-world industry demands. With Artificial Intelligence (AI) and Machine Learning (ML) becoming the backbone of modern technology, Quality Thought provides a structured learning path that covers everything from fundamentals of AI/ML, supervised and unsupervised learning, deep learning, neural networks, natural language processing, and model deployment to cutting-edge tools and frameworks.

What makes Quality Thought unique is its practical, hands-on approach. Students not only gain theoretical knowledge but also work on real-time AI & ML projects through live internships. This experience ensures they understand how to apply algorithms to solve real business problems, such as predictive analytics, recommendation systems, computer vision, and conversational AI.

The institute’s strength lies in its expert faculty, personalized mentoring, and career-focused training. Learners receive guidance on interview preparation, resume building, and placement opportunities with top companies. The internship adds immense value by boosting industry readiness and practical expertise.

👉 With its blend of advanced curriculum, live projects, and strong placement support, Quality Thought is the top choice for students and professionals aiming to build a successful career in AI & ML, making it the most trusted institute in Hyderabad. 

🔹 Definition

  • R² measures the proportion of variance in the dependent variable (Y) that is explained by the independent variables (X) in the regression model.

  • It compares the fitted model against a simple baseline (the mean of Y).

🔹 Formula

R2=1SSresSStotR^2 = 1 - \frac{SS_{res}}{SS_{tot}}

Where:

  • SSres=(yiy^i)2SS_{res} = \sum (y_i - \hat{y}_i)^2 → Residual Sum of Squares (errors from predictions).

  • SStot=(yiyˉ)2SS_{tot} = \sum (y_i - \bar{y})^2 → Total Sum of Squares (variance of actual values).

  • yiy_i = actual values

  • y^i\hat{y}_i = predicted values

  • yˉ\bar{y} = mean of actual values

🔹 Interpretation

  • R² = 1 → Perfect fit (model explains 100% of variance).

  • R² = 0 → Model is no better than predicting the mean.

  • R² < 0 → Model performs worse than predicting the mean (poor fit).

🔹 Example

Suppose we predict house prices based on square footage:

  • Actual prices: [200k, 220k, 250k]

  • Predicted prices: [210k, 215k, 240k]

  • Mean price: 223k

If R2=0.85R² = 0.85, that means 85% of the variation in house prices is explained by square footage in the model, and 15% is due to noise or missing factors.

🔹 Limitations of R²

  • Doesn’t measure accuracy directly (just proportion of explained variance).
    Can increase with more features (even irrelevant ones). → That’s why Adjusted R² is used for multiple regression.
    Not useful for non-linear models in some cases.

In short:
The R² score tells you how much of the variation in your target is explained by your regression model, ranging from 0 (useless) to 1 (perfect fit), but it must be used carefully alongside other metrics like MAE, RMSE, and Adjusted R².

Read more :

What is log loss?

Visit  Quality Thought Training Institute in Hyderabad         

Comments

Popular posts from this blog

What is accuracy in classification?

Explain Gradient Descent.

What is regularization in ML?