Challenge

Basics of Probability and Statistics Week 1 Challenge

1. Why is there a difference in the formula of variance for population and sample?

The variance formula differs for a population and a sample to account for the fact that a sample is only a subset of the population. When we estimate the variance from a sample, we need to correct for bias in our estimate. The sample variance tends to underestimate the population variance if we use the same formula as for the population, so we use a correction factor (dividing by n−1n-1n−1 instead of nnn).

  • Population Variance Formula:

    σ2=1N∑i=1N(xi−μ)2\sigma^2 = \frac{1}{N} \sum_{i=1}^{N} (x_i - \mu)^2σ2=N1​i=1∑N​(xi​−μ)2

    where:

    • NNN = population size
    • xix_ixi​ = individual data points
    • μ\muμ = population mean
  • Sample Variance Formula:

    s2=1n−1∑i=1n(xi−xˉ)2s^2 = \frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2s2=n−11​i=1∑n​(xi​−xˉ)2

    where:

    • nnn = sample size
    • xix_ixi​ = individual data points
    • xˉ\bar{x}xˉ = sample mean

The n−1n-1n−1 term is used in the sample variance formula to correct for the bias caused by estimating the population mean using the sample mean.


2. Difference between Stratified and Clustered Sampling

  • Stratified Sampling: In stratified sampling, the population is divided into distinct subgroups or strata (based on a specific characteristic), and a random sample is taken from each of these strata. This ensures that each subgroup is represented proportionally.

    • Purpose: To ensure that each subgroup is fairly represented in the sample.
    • Example: If we are studying student performance, we might stratify by grade levels (freshmen, sophomores, juniors, seniors) and then sample from each grade.
  • Cluster Sampling: In cluster sampling, the population is divided into clusters, often based on geography or another practical division. A random sample of clusters is selected, and all members of the chosen clusters are surveyed.

    • Purpose: To reduce costs and time by sampling entire clusters rather than individuals from the entire population.
    • Example: If we are studying schools, we might randomly select a few schools (clusters) and survey all students within those schools.


3. How many different samples can be created out of a population of size n?

The number of possible samples of size kkk that can be drawn from a population of size nnn is given by the binomial coefficient, also known as "n choose k."

Number of Samples=(nk)=n!k!(n−k)!\text{Number of Samples} = \binom{n}{k} = \frac{n!}{k!(n-k)!}Number of Samples=(kn​)=k!(n−k)!n!​

Where:

  • nnn = population size
  • kkk = sample size
  • !!! = factorial (the product of all positive integers up to that number)

This formula gives the number of ways to choose kkk items from nnn items without regard to the order of selection.


4. What is the probability of drawing 2 jacks from a pack of cards?

A standard deck of cards has 52 cards, and there are 4 jacks in the deck. The probability of drawing 2 jacks from the deck can be computed using the hypergeometric distribution formula:

P(2 jacks)=(42)⋅(480)(522)P(\text{2 jacks}) = \frac{\binom{4}{2} \cdot \binom{48}{0}}{\binom{52}{2}}P(2 jacks)=(252​)(24​)⋅(048​)​

  • (42)\binom{4}{2}(24​) = number of ways to choose 2 jacks from 4 jacks.
  • (480)\binom{48}{0}(048​) = number of ways to choose 0 non-jacks from 48 non-jack cards.
  • (522)\binom{52}{2}(252​) = total number of ways to choose 2 cards from 52 cards.

P(2 jacks)=4×32×1×152×512×1=61326≈0.0045P(\text{2 jacks}) = \frac{\frac{4 \times 3}{2 \times 1} \times 1}{\frac{52 \times 51}{2 \times 1}} = \frac{6}{1326} \approx 0.0045P(2 jacks)=2×152×51​2×14×3​×1​=13266​≈0.0045

So, the probability is approximately 0.45%.


5. What is the probability that both the numbers on dice are the same while rolling 2 dice?

When rolling two dice, there are 6 possible outcomes where both dice show the same number (the doubles): (1,1), (2,2), (3,3), (4,4), (5,5), (6,6).

The total number of possible outcomes when rolling two dice is:

6×6=366 \times 6 = 366×6=36

Thus, the probability of rolling two dice with the same number is:

P(same number)=636=16≈0.1667P(\text{same number}) = \frac{6}{36} = \frac{1}{6} \approx 0.1667P(same number)=366​=61​≈0.1667

So, the probability is approximately 16.67%.


6. Why standard deviation when variance can measure the dispersion in data?

  • Variance measures the average squared deviation from the mean. It is useful in quantifying the spread of data, but it has the unit of the square of the original data, making it harder to interpret directly.

  • Standard deviation is the square root of variance. It returns the measure of spread in the same units as the data, making it more interpretable in practical scenarios. For example, if the data is in meters, the variance will be in square meters, while the standard deviation is in meters, which is easier to understand.

  • In short, we use standard deviation because it provides a more intuitive measure of the spread of data while still preserving the mathematical properties of variance.


Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.