Skip to Main Content
Hands-On Data Science and Python Machine Learning
book

Hands-On Data Science and Python Machine Learning

by Frank Kane
July 2017
Beginner to intermediate content levelBeginner to intermediate
420 pages
10h 56m
English
Content preview from Hands-On Data Science and Python Machine Learning

The co-efficient of determination or r-squared

So how do I know how good my regression is? How well does my line fit my data? That's where r-squared comes in, and r-squared is also known as the coefficient of determination. Again, someone trying to sound smart might call it that, but usually it's called r-squared.

It is the fraction of the total variation in Y that is captured by your models. So how well does your line follow that variation that's happening? Are we getting an equal amount of variance on either side of your line or not? That's what r-squared is measuring.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

Publisher Resources

ISBN: 9781787280748Supplemental Content