R² is a widely used measure of fit, but for many analysts, it is just a number.
They believe high R² ➡ Good predictions.
This is not always true!
Now I will clarify. 🔽
R-squared measures how well the regression model fits the observed data.
To be more precise: It is the proportion of the variation in the dependent variable that is predictable from the independent variable.
It usually ranges from 0 to 1: (In rare cases it can be negative, I will explain this in another tweet)
R² = 0
The model does not explain any of the variability in the dependent variable ➡ No predictive power ➡ Bad model.
R² = 1
The model perfectly explains all the variability in the dependent variable ➡ Perfect fit to the data ➡ Good model if not overfitted and has predictive power.
A high R-squared value does not mean that the predictions made by the model will be correct.
It doesn't measure predictability power, it measures how well the model fits!
In the example below, we compare the mean of the data to a fitted line.
Of course, the mean of values is not a good fit ➡ the errors are large.
On the other hand, the fitted line has smaller errors ➡ The R² will be close to 1.
To calculate R² we need:
- The total sum of squares for the mean
- Sum of squares for the residuals from the model
- Finally, subtract the ratio from 1
___
That's it for today.
I hope you've found this Tweet helpful.
Like/Retweet for support and follow @levikul09 for more Data Science content.
Thanks 😉
@sspaeti@ReadwiseReader@obsdmd Yeah, the .cook might be a bit misleading, but after download I just replace .cook with .md in file view and it's perfect for obsidian.
This is how the markdown looks like for the same recipe on my phone.
@sspaeti@ReadwiseReader@obsdmd I use this one: https://t.co/RI4dKmyYJP
My process:
1. Convert recipe - type cook.md/ in front of any recipe url
2. download .cook file, convert to .md
3. add image, so it looks nice in recipe base
4. Use recipe view when cooking
@sspaeti@ReadwiseReader@obsdmd Have you tried cooklang? It has an awesome obsidian plugin, you can convert links directly on their site and the recipe format is superior imo. In line ingredients is the way to go!
@Saboo_Shubham_ Please add tabs or something so I can have several open canvases. It is freaking annoying in Excalidraw that you are limited to 1 canvas. I would move immediately
@pawjast I have an autocorrect autohotkey for these annoying words. There is a great script for English, it's pretty good. I am sure there are alternatives outside Windows as well.
@kurtbuhler Omarchy, agents, Jev for PBI. It is a really interesting combo, hopefully article incoming on your setup? 😀 We can fix everything, maybe PBI as well?
@GregMolnar I agree that it got better, but it was a pain in the neck at the beginning (for me at least). Not just newcomers, all the members are now left on a burnt field. I didn't post that much but I can imagine it's harder for others who were more active. Any new places you recommend?
@pawjast@freeCodeCamp If you already use markdown then obsidian will be easy to move to. It's way more customizable and clutter free. Of course there are use cases where notion is better, put you will probably find a plug in that will achieve a similar thing.