Skip to content

LECT: Simple Linear Regression - #100

Merged
mmcky merged 9 commits into
mainfrom
add-simplelinearreg
Mar 2, 2023
Merged

mmcky merged 9 commits into
mainfrom
add-simplelinearreg

Conversation

@mmcky

@mmcky mmcky commented Feb 20, 2023 •

Copy link
Copy Markdown
Contributor

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

netlify Bot commented Feb 20, 2023 •

Copy link
Copy Markdown

✅ 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

jstac commented Feb 20, 2023 •

Copy link
Copy Markdown
Contributor

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

mmcky commented Feb 20, 2023

Copy link
Copy Markdown
Contributor Author

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

mmcky commented Feb 21, 2023

Copy link
Copy Markdown
Contributor Author

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

mmcky commented Feb 21, 2023 •

Copy link
Copy Markdown
Contributor Author

@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

This branch was previously deployed

1 inactive deployment
commit — ac406851 Deployed Mar 1, 2023 by github-actions[bot]
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.

2 participants