Basics of Probability and Statistics Week 1 Challenge
-
Suppose we draw n independent observations from a population with mean µ and variance σ2 this is commonly the case when we are drawing a random sample µ and σ2 our parameters and their values are typically unknown. We want to estimate them the sample mean x-bar estimates the population mean µ and the sample variance S2 estimates the population variance σ2. Ideally, we would estimate σ2 with `\sum(x_i-\mu)^2/n`. This is the average squared distance from the true mean and it would be the best estimator of σ2. But there is a problem, the population mean µ is usually not known so we cannot use it in this formula and since we cannot possibly calculate this quantity here, `\sum(x_i-\mu)^2/n` the sum of squared distances from the true mean if the true mean is unknown we might try simply replacing the true mean with our best estimate of it the sample mean x-bar `\sum(x_i-\bar x)^2/n`. But there is a problem here, of all the values we could subtract in this formula subtracting x-bar makes this sum as small as it possibly could be. Roughly speaking the sample mean x-bar must fall near the centre of the observations whereas µ the true mean could be any value so this sum here is going to be. Smaller than this sum and so this quantity tends to underestimate the true of the population variance σ2. To compensate for that we divide by n-1 this makes the sample variance a little bigger than it would be if we divided by n. It turns out that mathematically this properly compensates for the problem and on average this estimator equals the population variance σ2.
- The main difference between cluster sampling and stratified sampling is that in cluster sampling the cluster is treated as the sampling unit so sampling is done on a population of clusters. In stratified sampling, the sampling is done on elements within each stratum. In stratified sampling, a random sample is drawn from each of the strata, whereas in cluster sampling only the selected clusters are sampled.
- When drawing a sample from a population, there are many different combinations of people that could be selected (i.e., Roy-Sam-Ben and Sam-Ben-Roy are considered different). The number of possible samples is n^N where n is the number in the total population and N is the number of units being sampled. When drawing the sample without replacement (i.e., Roy-Sam-Ben is considered the same as Sam-Ben-Roy). Then the formula would be `(n!)/(N! (n-N)!)`. Where n is the number in the total population and N is the number of units being sampled`
- The probability of drawing 2 jacks are `\frac{4c_2}{52c_2}`. which is equal to 0.00452%`
- The probability of getting the same number on 2 dices is 6/36. which is equal to 16.7%.
- The standard deviation, as the square root of the variance, gives a value that is in the same units as the original values, which makes it much easier to work with.