Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Term Entry] Python statsmodels: model residuals #5903

Merged
merged 27 commits into from
Jan 15, 2025

Conversation

SaviDahegaonkar
Copy link
Collaborator

Description

Created a new term entry on the model residuals term under Python statsmodels.

Issue Solved

#5691

Type of Change

  • Adding a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@SaviDahegaonkar SaviDahegaonkar added python Python entries new entry New entry or entries labels Dec 28, 2024
@SaviDahegaonkar SaviDahegaonkar changed the title Modelresi [Term Entry] Python statsmodels: model residuals Dec 28, 2024
@Radhika-okhade Radhika-okhade self-assigned this Jan 7, 2025
@Radhika-okhade Radhika-okhade added the status: under review Issue or PR is currently being reviewed label Jan 7, 2025
**Model residuals** are calculated as the differences between observed and predicted values for a statistical model. This is a method of error or deviation measuring for each data point by using the formula:

\[
\text{Residual} = \text{Observed Value} - \text{Predicted Value}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put an image of the formula here, rather than writing it down.

@SaviDahegaonkar
Copy link
Collaborator Author

Hey @Radhika-okhade, I have made the changes to the file.


**Model residuals** are calculated as the differences between observed and predicted values for a statistical model. This method measures error or deviation for each data point by using the formula:

! [Model Residuals formula](https://raw.githubusercontent.com/Codecademy/docs/main/media/model-residual-example.png)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a space in between ! and [?

@Radhika-okhade Radhika-okhade added status: waiting for author and removed status: under review Issue or PR is currently being reviewed labels Jan 15, 2025
@Radhika-okhade
Copy link
Collaborator

Thank you for contributing to Codecademy docs @SaviDahegaonkar. The entry looks good to be merged.

@Radhika-okhade Radhika-okhade merged commit 756ce9b into Codecademy:main Jan 15, 2025
7 checks passed
Copy link

👋 @SaviDahegaonkar
You have contributed to Codecademy Docs, and we would like to know more about you and your experience.
Please take a minute to fill out this four question survey to help us better understand Docs contributions and how we can improve the experience for you and our learners.
Thank you for your help!

🎉 Your contribution(s) can be seen here:

https://www.codecademy.com/resources/docs/python/statsmodels/model-residuals

Please note it may take a little while for changes to become visible.
If you're appearing as anonymous and want to be credited, visit the linked accounts page and ensure that your GitHub account is linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants