title | subtitle | author | job | framework | highlighter | hitheme | widgets | mode | |||
---|---|---|---|---|---|---|---|---|---|---|---|
Homework 1 for Stat Inference |
(Use arrow keys to navigate) |
Brian Caffo |
Johns Hopkins Bloomberg School of Public Health |
io2012 |
highlight.js |
tomorrow |
|
selfcontained |
- These are some practice problems for Statistical Inference Quiz 1
- They were created using slidify interactive which you will learn in Creating Data Products
- Please help improve this with pull requests here (https://github.com/bcaffo/courses)
--- &radio
Consider influenza epidemics for two parent heterosexual families. Suppose that the probability is 15% that at least one of the parents has contracted the disease. The probability that the father has contracted influenza is 10% while that the mother contracted the disease is 9%. What is the probability that both contracted influenza expressed as a whole number percentage?
- 15%
- 10%
- 9%
- 4%
*** .hint
*** .explanation
.10 + .09 - .15
[1] 0.04
--- &radio
A random variable,
- 1.00
- 0.75
- 0.50
- 0.25
*** .hint The median is the point so that 50% of the density lies below it.
*** .explanation
This density looks like a box. So, notice that
--- &radio
You are playing a game with a friend where you flip a coin and if it comes up heads you give her
- $-X \frac{d}{1 + d} + Y \frac{1}{1+d} $
$X \frac{d}{1 + d} + Y \frac{1}{1+d} $ $X \frac{d}{1 + d} - Y \frac{1}{1+d} $ $-X \frac{d}{1 + d} - Y \frac{1}{1+d} $
*** .hint
The odds that you win on a given round is given by
*** .explanation
You lose
--- &radio A random variable takes the value -4 with probability .2 and 1 with probability .8. What is the variance of this random variable?
- 0
- 4
- 8
- 16
*** .hint
This random variable has mean 0. The variance would be given by
*** .explanation
-4 * .2 + 1 * .8
[1] 0
(-4)^2 * .2 + (1)^2 * .8
[1] 4
--- &radio
If
- 0
- $2\sigma^2/n$
-
$\mu_x$ -$\mu_y$ $2\sigma^2$
*** .hint
Remember that
*** .explanation $$ Var(\bar X - \bar Y) = Var(\bar X) + Var(\bar Y) = \sigma^2 / n + \sigma^2 / n $$
--- &radio
Let
- Nothing
- It must have variance 1.
- It must have mean 0.
- It must have variance 0.
*** .hint
*** .explanation
--- &radio If a continuous density that never touches the horizontal axis is symmetric about zero, can we say that its associated median is zero?
- Yes
- No.
- It can not be determined given the information given.
*** .explanation This is a surprisingly hard problem. The easy explanation is that 50% of the probability is below 0 and 50% is above so yes. However, it is predicated on the density not being a flat line at 0 around 0. That's why the caveat that it never touches the horizontal axis is important.
--- &radio
Consider the following pmf given in R
p <- c(.1, .2, .3, .4)
x <- 2 : 5
What is the variance expressed to 1 decimal place?
- 1.0
- 4.0
- 6.0
- 17.0
*** .hint
The variance is
*** .explanation
sum(x ^ 2 * p) - sum(x * p) ^ 2
[1] 1