Markdown

StatQ

StatQ.md·5.7 KB·Uploaded 2mo ago

Statistics

  1. Randomly chose a coordinate (x, y, z) on the unit sphere. What is the variance of the z-coordinate?
  2. Suppose you roll three fair 100-sided die. What is the expected value of the lowest roll?
  3. A donut shop has 25 different bakers, each of whom bake donuts. Each baker's output is independent from the others. It so happens that the standard deviation in donut output for each baker is 10. What is the standard deviation in the average number of donuts made by a baker?
  4. Imagine you are given a standard deck of 52 cards (half of the cards are red and the other half are black). A run is defined as a block of cards that are drawn consecutively and all have the same color. As an example, BBRRBBB has 3 runs.
    1. Find the expected number of runs in a shuffled deck of cards.
  5. Suppose a game has you roll a fair six-sided die repeatedly, until you first encounter a number which has previously appeared. Let r denote number of times the die was rolled, and the probability of rolling r times.
    1. Calculate
    2. What is the value of
    3. What is given that this iteration of the game has taken at least 3 rolls?
  6. What is the variance of a uniform random variable X with probability density function for and zero elsewhere?
  7. A certain disease has an incidence rate of 2%. If the false negative rate is 10% and the false positive rate is 1%
    1. What is the probability that a person who tests positive actually has the disease?
    2. A medical research lab has concocted a new drug that they claim will cure 80% of people suffering from a novel disease. After examining the drug, the FDA believes that their claims regarding the efficacy of the drug are inflated. To validate their hypothesis, the FDA administers the drug to 20 people with the novel disease and observes, XX, the number of individuals cured by the drug. More formally, the FDA is conducting the following test:
      1. and Assuming a rejection region of is used, what is the significance level, , for this study?
      2. Assuming a rejection region of , what is the power of the test when ?

Answer

1. Variance of -coordinate on the unit sphere

By symmetry of the uniform distribution on the unit sphere, . Since :

Also by symmetry, , so:


2. Expected value of the minimum of three rolls

Using the tail-sum formula for non-negative integer random variables:

Using :


3. Standard deviation of the average baker output

The standard deviation of a sample mean of independent observations is :


4. Expected number of runs in a shuffled deck

Define indicators where if position starts a new run. Always . For , if positions and differ in color.

By linearity of expectation:


5. Repeated rolling

(a) requires the first two rolls to differ and the third to match one of them:

(b) By the pigeonhole principle, with only 6 distinct values, the game must end by the 7th roll. Also . So and all other :

(c) First compute (rolls 1–4 all distinct, roll 5 matches one of them):

The event "at least 3 rolls" is the complement of , so .


6. Variance of


7. Disease testing

(a) Let = has disease, = positive test. Given , , :

(b)(i) Under , . Equivalently let , so :

(b)(ii) Under , :


Reference (and explanation)

  1. https://openquant.co/questions/spherical-coordinate-variance
  2. https://openquant.co/questions/3-die-minimum
  3. https://openquant.co/questions/inconsistent-bakers
  4. https://openquant.co/questions/number-of-runs
  5. https://openquant.co/questions/repeated-rolling
  6. https://openquant.co/questions/find-the-variance
  7. https://openquant.co/questions/disease-incidence