Skip to content

Conversation

@mmcky
Copy link
Contributor

@mmcky mmcky commented Feb 20, 2023

This PR is the initial work on a lecture showing the basics of Simple Linear Regression and solves the system of equations for this simple illustrative case for early Undergraduates that are learning calculus and basic estimation

There are alternative ways to present this information -- the contained is a pretty classic approach but the team has other ideas as well that could form a more unified approach:

Team Comments and Ideas

  1. Fixed and Repeated Samples approach (Epsilon is the randomness)
  2. Frame the lecture as an Experimental Design Question
  3. Use the Fisher Original Example (Fertiliser)
  4. Extend with other following lectures (multivariate, Linear Algebra (rather than $\sum$) etc.)

@netlify
Copy link

netlify bot commented Feb 20, 2023

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit ac40685
🔍 Latest deploy log https://app.netlify.com/sites/taupe-gaufre-c4e660/deploys/63ffe582ff6ab00007f42aed
😎 Deploy Preview https://deploy-preview-100--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot temporarily deployed to commit February 20, 2023 02:32 Inactive
@github-actions github-actions bot temporarily deployed to commit February 20, 2023 02:33 Inactive
@jstac
Copy link
Contributor

jstac commented Feb 20, 2023

Great work @mmcky ! I really like the style.

Comments:

  • After "The Ordinary Least Squares (OLS) method..." I suggest replacing $\min$ with $\min_{\alpha, \beta}$.
  • After "and setting it equal to" replace $\beta * x_i$ with $\beta x_i$ --- similar issues appear in the equations below.
  • " solving for B" -> "and solving for $\beta$"
  • ": I don’t think this surface plot adds a whole lot" --- I agree.
  • "How does error change with respect to..." --- I wonder if this section should come before differentiation. First set up the cost function, explore how it changes the parameters using your figures, and then minimize systematically using calculus.
  • As a suggested exercise, simply ask people to run a simple regression on a new data set, perhaps from real data.

@mmcky
Copy link
Contributor Author

mmcky commented Feb 20, 2023

thanks @jstac -- super helpful comments. Thank you.

@github-actions github-actions bot temporarily deployed to commit February 21, 2023 05:49 Inactive
@github-actions github-actions bot temporarily deployed to commit February 21, 2023 05:56 Inactive
@mmcky
Copy link
Contributor Author

mmcky commented Feb 21, 2023

thanks @jstac the exercise example was a great idea.

I have explored the relationship between life expectancy and GDP per capita.
The Our World in Data objects integrate nicely into the page as well and the exercise kind of turned into a blend of "working with data" and "regression work"

@github-actions github-actions bot temporarily deployed to commit February 21, 2023 06:05 Inactive
@mmcky
Copy link
Contributor Author

mmcky commented Feb 21, 2023

@github-actions github-actions bot temporarily deployed to commit February 22, 2023 03:51 Inactive
@github-actions github-actions bot temporarily deployed to commit March 1, 2023 23:58 Inactive
@mmcky mmcky merged commit 9a3a5ac into main Mar 2, 2023
@mmcky mmcky deleted the add-simplelinearreg branch March 2, 2023 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants