oldoc63 / learningDS

Learning DS with Codecademy and Books
0 stars 0 forks source link

Calculating Probabilities #450

Open oldoc63 opened 1 year ago

oldoc63 commented 1 year ago

Once we know the sampling distribution of the mean, we can also use to estimate the probability of observing a particular range of sample means, given some information (either known or assumed) about the population. To do this, we can use the Cumulative Distribution Function, or CDF of the normal distribution.

Let's work throuhg this with our salmon fish example. Let's say we are transporting the salmon and want to make sure the crate we carry the fish in will be strong enough to hold the weight.

Using the CLT, we first estimate that the mean weight of 10 randomly sampled salmon from this population is normaly distributed with mean = 60 and standard error = 40/10^.5. Then we can use this probability distribution to calculate the probability that 10 ramdomly sampled fish will have a mean weight less than or equal to 75.

oldoc63 commented 1 year ago

Let's calculate the same probability for our cod fish poupulation.

Our first step is to calculate the standard error for a sample size of 25. Then use the normal CDF to calculate the probability that a sample of 25 fish has a mean weight of 30 lbs.