nickeubank / practicaldatascience_book

https://www.practicaldatascience.org/
6 stars 2 forks source link

When you're back: linear regression visualization and example from knn regression? #17

Open nickeubank opened 3 weeks ago

nickeubank commented 3 weeks ago

Hope the wedding went well!

I've done some drafting of my week for class 5, but I'm holding off on the "what's a linear regression" till I see these visualizations you mentioned and know the example you're using for knn regression (so I can carry that forward).

kylebradbury commented 5 days ago

Thanks so much, Nick - the wedding went very well!

Great content so far, by the way!

The example I'm using for Knn regression is the King's County house price dataset

As for figures, here's a few that may be of interest - let me know if you want the files for any of these! KNN Classification KNN Regression

Figures for R-squared:

Screenshot 2024-06-27 at 10 39 32 PM Screenshot 2024-06-27 at 10 39 43 PM

Happy to chat about any of this, of course!

nickeubank commented 12 hours ago

The example I'm using for Knn regression is the King's County house price dataset

Great! Is that something you've put in repo yet?

kylebradbury commented 10 hours ago

Yes! Here are the readings about it: Regression for prediction applied Regression for prediction evaluated

And here's the dataset: Dataset

nickeubank commented 9 hours ago

awesome, thank you!

If you have time:

I'd love a couple images built around that same "line through a cloud of dots" structure:

The squares make sense, but I fear might confuse things a little, and I'd rather make what constitutes an error clear, then I can talk about the squaring.

It would also be awesome to have a picture generalized to two regressions (so a 3-d plot) of the same. Would that be too hard to do?