Nepedia
Back to Discover
Fluent Reader
🔢

Coefficient of determination

math Maturity 11-13 social justice Next article →

This article covers sensitive topics: social_justice. Parents can manage visibility in Parental Controls.

Imagine you are trying to guess how much a car costs based on its gas mileage. You might make a math model to help you predict the price. But how do you know if your guess is actually good?

Coefficient of Determination
Coefficient of Determination

Scientists use a special tool called the coefficient of determination to find out. Most people call this tool R squared. It is a way to measure how well a model explains the changes in data. It tells us if our mathematical guess is close to the real world or far away. This helps people decide if their models are useful for predicting the future.

R2values
R2values

To understand how it works, think about the differences in your data. In math, we call these differences variation. Some of that variation comes from the things we are studying. Other parts of the variation come from things we cannot see or explain. R squared looks at the total variation and compares it to the variation the model explains.

Coefficient of Determination
Coefficient of Determination

If the model explains everything, the score is 1. This means the model is a perfect fit for the data. If the score is 0, the model explains nothing at all. You can even think of the score as a percentage. A score of 0.49 means the model explains 49 percent of the changes.

Geometric R squared
Geometric R squared

There are different ways to calculate this score depending on the math used. In simple linear regression, R squared is just the square of the correlation coefficient. This is a number that shows how two things are related.

Thiel-Sen estimator
Thiel-Sen estimator

If you add more variables to the model, it is called multiple regression. In these cases, the score is the square of the multiple correlation coefficient. Most of the time, the score stays between 0 and 1. However, the score can sometimes be a negative number. This happens if the model is a very poor fit for the data. A negative score means a simple average would actually be a better guess than the model.

Screen shot proj fig
Screen shot proj fig

It is important to be careful when using R squared to judge a model. One tricky thing is that adding more information almost always makes the score go up. You could add silly things like the height of an engineer to a car model. The R squared score would likely increase just by chance.

Bias and variance contributing to total error
Bias and variance contributing to total error

This does not mean the model is actually better or more truthful. Because of this, some people use a different version called adjusted R squared. This version penalizes the score if you add extra variables that do not really help. It helps keep the math honest when comparing different models.

R2values
R2values

Finally, always remember a very important rule in statistics. Just because two things have a high R squared score does not mean one causes the other. This is often called the difference between correlation and causation.

Coefficient of Determination
Coefficient of Determination

For example, carrying matches might be linked to lung cancer in some data. But carrying matches is not what causes the cancer. The link exists, but the cause is something else entirely. R squared shows us how much things move together. It does not tell us why they are moving. This distinction helps scientists stay careful and curious about the world.

R2values
R2values
531 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (6)
File:R2values.svg
R2values.svg
File:Coefficient of Determination.svg
Coefficient of Determination.svg
File:Screen shot proj fig.jpg
Screen shot proj fig.jpg
File:Thiel-Sen estimator.svg
Thiel-Sen estimator.svg
File:Bias and variance contributing to total error.svg
Bias and variance contributing to total error.svg
File:Geometric R squared .svg
Geometric R squared .svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.