Skip to content

[Term Entry] Data Science Data Distributions: Hypergeometric Distribu… #6335

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

Merged
merged 10 commits into from
Mar 27, 2025

Conversation

mamtawardhani
Copy link
Collaborator

…tion

Description

Added [Term Entry] Data Science Data Distributions: Hypergeometric Distribution

Issue Solved

Closes #6188

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.

@mamtawardhani mamtawardhani added new entry New entry or entries status: under review Issue or PR is currently being reviewed data science Data science entries labels Mar 14, 2025
Copy link
Collaborator

@raditya1117 raditya1117 left a comment

Choose a reason for hiding this comment

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

Hi @mamtawardhani ,
The content looks good to me. However, some numbers seem to be off. Maybe you can use smaller numbers for calculations in the examples. This tool might be helpful. https://www.calculator.net/permutation-and-combination-calculator.html

|----------------|----------------------------|----------------------|
| Sampling method | Without replacement | With replacement |
| Probability of success | Changes after each draw | Remains constant across all trials |
| Population size | Finite and relatively small compared to sample | Very large or infinite relative to sample |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
| Population size | Finite and relatively small compared to sample | Very large or infinite relative to sample |
| Population size | Finite | Very large or infinite relative to sample |

population cannot be small compared to sample.

@mamtawardhani
Copy link
Collaborator Author

mamtawardhani commented Mar 20, 2025

@Radhika-okhade this is updated with @raditya1117's suggestions - I've used smaller numbers for calculations. 🙇🏻‍♀️


## Hypergeometric Vs. Binomial Distributions

While both the hypergeometric and binomial distributions describe the probability of successes in a series of trials, they differ in several key aspects:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Backlink to Binomial distribution. Do it like we did in other docs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This one @mamtawardhani ?


Interestingly, as the population size (N) becomes very large relative to the sample size (n), the hypergeometric distribution approaches the binomial distribution. This is because the effect of removing items becomes negligible in large populations.

For exploring more data science concepts, check out our [Data Science](https://www.codecademy.com/catalog/subject/data-science) courses and articles. These courses provide interactive exercises and real-world examples to help solidify your understanding of the fundamental concepts in data science.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a specific link of course also remove "and articles"

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

This is fixed @Radhika-okhade 🫡

@mamtawardhani
Copy link
Collaborator Author

Hey @Radhika-okhade, link is added

@Radhika-okhade
Copy link
Collaborator

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

@Radhika-okhade Radhika-okhade merged commit b14a29d into Codecademy:main Mar 27, 2025
7 checks passed
Copy link

👋 @mamtawardhani
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/data-science/data-distributions/hypergeometric-distribution

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
data science Data science entries new entry New entry or entries status: review 1️⃣ completed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Term Entry] Data Science Data Distributions: Hypergeometric Distribution
3 participants