ผลต่างระหว่างรุ่นของ "Probstat/week6 practice 1"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 11: แถว 11:
 
'''Hint:''' for question 1.2 - 1.5, finding '''Var(X)''' 'indirectly' using the result from 1.1 might be an easier approach.
 
'''Hint:''' for question 1.2 - 1.5, finding '''Var(X)''' 'indirectly' using the result from 1.1 might be an easier approach.
  
1.2 We pick randomly an integer from the set {0,1,2,...,10} for 2 times.  Let '''Y''' be the sum of the 2 numbers that we picked.  Let '''X = Y/2'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
+
1.2 We pick randomly an integer from the set {0,1,2,...,10} for 2 times (with replacement).  Let '''Y''' be the sum of the 2 numbers that we picked.  Let '''X = Y/2'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
  
1.3 We pick randomly an integer from the set {0,1,2,...,10} for 3 times.  Let '''Y''' be the sum of the 3 numbers that we picked.  Let '''X = Y/3'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
+
1.3 We pick randomly an integer from the set {0,1,2,...,10} for 3 times (with replacement).  Let '''Y''' be the sum of the 3 numbers that we picked.  Let '''X = Y/3'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
  
1.4 We pick randomly an integer from the set {0,1,2,...,10} for 5 times.  Let '''Y''' be the sum of the 5 numbers that we picked.  Let '''X = Y/5'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
+
1.4 We pick randomly an integer from the set {0,1,2,...,10} for 5 times (with replacement).  Let '''Y''' be the sum of the 5 numbers that we picked.  Let '''X = Y/5'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
  
1.5 We pick randomly an integer from the set {0,1,2,...,10} for 10 times.  Let '''Y''' be the sum of the 10 numbers that we picked.  Let '''X = Y/10'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
+
1.5 We pick randomly an integer from the set {0,1,2,...,10} for 10 times (with replacement).  Let '''Y''' be the sum of the 10 numbers that we picked.  Let '''X = Y/10'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
  
 
=== Set 2: +1, -1 ===
 
=== Set 2: +1, -1 ===
 +
2.1 We pick randomly an integer from the set {-1,+1}.  Let '''X''' be the number that we picked.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
 +
 +
2.2 We pick randomly an integer from the set {-1,+1} for 2 time  (with replacement).  Let '''Y''' be sum of 2 numbers that we picked.  Let '''X = Y/2'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
 +
 +
2.3 We pick randomly an integer from the set {-1,+1} for 5 time  (with replacement).  Let '''Y''' be sum of 5 numbers that we picked.  Let '''X = Y/5'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
 +
 +
2.4 We pick randomly an integer from the set {-1,+1} for 10 time  (with replacement).  Let '''Y''' be sum of 10 numbers that we picked.  Let '''X = Y/10'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
 +
 +
2.5 We pick randomly an integer from the set {-1,+1} for 20 time  (with replacement).  Let '''Y''' be sum of 20 numbers that we picked.  Let '''X = Y/20'''.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
  
 
=== Set 3: imbalance distribution ===
 
=== Set 3: imbalance distribution ===
 +
3.1 We pick two numbers 0 and 10 at random.  The probability that we pick 0 is 0.9 and the probability that we pick 10 is 0.1.  Let '''X''' be the number that we pick.  Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
 +
 +
3.2 We pick two numbers 0 and 10 at random for 2 times (with replacement).  For each trial, the probability that we pick 0 is 0.9 and the probability that we pick 10 is 0.1.  Let '''Y''' be sum of the numbers that we pick.  Let '''X = Y/2'''. Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.
 +
 +
3.3 We pick two numbers 0 and 10 at random for 10 times (with replacement).  For each trial, the probability that we pick 0 is 0.9 and the probability that we pick 10 is 0.1.  Let '''Y''' be sum of the numbers that we pick.  Let '''X = Y/10'''. Find '''E[X]''', '''Var(X)''', and perform random experiments to plot '''X''' histogram.

รุ่นแก้ไขเมื่อ 18:19, 22 กันยายน 2557

This is part of probstat.

In this practice, we will try a few experiments that shows distributions of random variables with varying variances.

Variances and distribution

In each of the following experiments, you should find the expectation and the variance of the specified random variable. Then perform at least 10,000 experiments to generate the histogram of the distribution of the random variable.

Set 1: uniform distribution

1.1 We pick randomly an integer from the set {0,1,2,...,10}. Let X be the number that we picked. Find E[X], Var(X), and perform random experiments to plot X histogram.

Hint: for question 1.2 - 1.5, finding Var(X) 'indirectly' using the result from 1.1 might be an easier approach.

1.2 We pick randomly an integer from the set {0,1,2,...,10} for 2 times (with replacement). Let Y be the sum of the 2 numbers that we picked. Let X = Y/2. Find E[X], Var(X), and perform random experiments to plot X histogram.

1.3 We pick randomly an integer from the set {0,1,2,...,10} for 3 times (with replacement). Let Y be the sum of the 3 numbers that we picked. Let X = Y/3. Find E[X], Var(X), and perform random experiments to plot X histogram.

1.4 We pick randomly an integer from the set {0,1,2,...,10} for 5 times (with replacement). Let Y be the sum of the 5 numbers that we picked. Let X = Y/5. Find E[X], Var(X), and perform random experiments to plot X histogram.

1.5 We pick randomly an integer from the set {0,1,2,...,10} for 10 times (with replacement). Let Y be the sum of the 10 numbers that we picked. Let X = Y/10. Find E[X], Var(X), and perform random experiments to plot X histogram.

Set 2: +1, -1

2.1 We pick randomly an integer from the set {-1,+1}. Let X be the number that we picked. Find E[X], Var(X), and perform random experiments to plot X histogram.

2.2 We pick randomly an integer from the set {-1,+1} for 2 time (with replacement). Let Y be sum of 2 numbers that we picked. Let X = Y/2. Find E[X], Var(X), and perform random experiments to plot X histogram.

2.3 We pick randomly an integer from the set {-1,+1} for 5 time (with replacement). Let Y be sum of 5 numbers that we picked. Let X = Y/5. Find E[X], Var(X), and perform random experiments to plot X histogram.

2.4 We pick randomly an integer from the set {-1,+1} for 10 time (with replacement). Let Y be sum of 10 numbers that we picked. Let X = Y/10. Find E[X], Var(X), and perform random experiments to plot X histogram.

2.5 We pick randomly an integer from the set {-1,+1} for 20 time (with replacement). Let Y be sum of 20 numbers that we picked. Let X = Y/20. Find E[X], Var(X), and perform random experiments to plot X histogram.

Set 3: imbalance distribution

3.1 We pick two numbers 0 and 10 at random. The probability that we pick 0 is 0.9 and the probability that we pick 10 is 0.1. Let X be the number that we pick. Find E[X], Var(X), and perform random experiments to plot X histogram.

3.2 We pick two numbers 0 and 10 at random for 2 times (with replacement). For each trial, the probability that we pick 0 is 0.9 and the probability that we pick 10 is 0.1. Let Y be sum of the numbers that we pick. Let X = Y/2. Find E[X], Var(X), and perform random experiments to plot X histogram.

3.3 We pick two numbers 0 and 10 at random for 10 times (with replacement). For each trial, the probability that we pick 0 is 0.9 and the probability that we pick 10 is 0.1. Let Y be sum of the numbers that we pick. Let X = Y/10. Find E[X], Var(X), and perform random experiments to plot X histogram.