Docsity

Solved Midterm Exam for Advanced Statistical Methods | ISQS 5347, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
ISQS 5347 Midterm
Instructions: Open notes, no books. Points (out of 100) are in parentheses.
1. Give the sample space for the following experiments.
1.A.(10) You record the time it takes you to get from home to school.
Solution: S = {x: x>0}.
1.B.(10) You get a grade in a business class at TTU.
Solution: S = {A,B,C,D,F} (assuming that “grade” is defined as “grade used for GPA
calculation”.
2. The pdf of a random variable X is f(x) = 3x2/8, for 0<x<2, f(x)=0 otherwise.
2.A.(10) Show that this is indeed a valid pdf.
Solution: The integral of 3x2/8 dx from 0 to 2 is (3/8)23/3-(3/8)03/3=1. Since f(x) is
always greater than or equal to zero (because x2 is never negative) and integrates to 1, it
is a valid pdf.
2.B.(5) Find P(X<1).
Solution: The integral of 3x2/8 dx from 0 to 1 is (3/8)13/3-(3/8)03/3=1/8=0.125.
2.C.(10) Find E(X).
Solution: The integral of (x) (3x2/8) dx from 0 to 2 is (3/8)24/4-(3/8)04/4=12/8=1.5.
3. The distribution of X is exponential: f(x) = (1/2)e-x/2, x>0, 0 otherwise. The
distribution of Y is also exponential: f(y) = (1/3)e-y/3, y>0, f(y)=0 otherwise. These
variables represent time to perform certain tasks and are independent of each other; the
total time is Z = X+Y.
3.A.(10) Find E(Z). Briefly explain every step of the calculation.
Solution:
E(Z)=E(X+Y) , since Z=X+Y.
E(X+Y)=E(X)+E(Y), by the additivity property of expectation.
E(X)=1/(1/2)=2, since the distribution of X is exponential with λ=1/2, and since the mean
of the exponential pdf is 1/λ. By the same argument, E(Y)=3.
Thus, E(Z)=5.
pf2

Partial preview of the text

Download Solved Midterm Exam for Advanced Statistical Methods | ISQS 5347 and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

ISQS 5347 Midterm Instructions: Open notes, no books. Points (out of 100) are in parentheses.

  1. Give the sample space for the following experiments.

1.A.(10) You record the time it takes you to get from home to school.

Solution: S = {x: x>0}.

1.B.(10) You get a grade in a business class at TTU.

Solution: S = {A,B,C,D,F} (assuming that “grade” is defined as “grade used for GPA calculation”.

  1. The pdf of a random variable X is f(x) = 3x 2 /8, for 0<x<2, f(x)=0 otherwise.

2.A.(10) Show that this is indeed a valid pdf.

Solution: The integral of 3x 2 /8 dx from 0 to 2 is (3/8)2 3 /3-(3/8)0 3 /3=1. Since f(x) is always greater than or equal to zero (because x 2 is never negative) and integrates to 1, it is a valid pdf.

2.B.(5) Find P(X<1).

Solution: The integral of 3x 2 /8 dx from 0 to 1 is (3/8)1 3 /3-(3/8)0 3 /3=1/8=0.125.

2.C.(10) Find E(X).

Solution: The integral of (x) (3x 2 /8) dx from 0 to 2 is (3/8)2 4 /4-(3/8)0 4 /4=12/8=1.5.

  1. The distribution of X is exponential: f(x) = (1/2)e -x/2^ , x>0, 0 otherwise. The distribution of Y is also exponential: f(y) = (1/3)e -y/3^ , y>0, f(y)=0 otherwise. These variables represent time to perform certain tasks and are independent of each other; the total time is Z = X+Y.

3.A.(10) Find E(Z). Briefly explain every step of the calculation.

Solution: E(Z)=E(X+Y) , since Z=X+Y. E(X+Y)=E(X)+E(Y), by the additivity property of expectation. E(X)=1/(1/2)=2, since the distribution of X is exponential with λ=1/2, and since the mean of the exponential pdf is 1/λ. By the same argument, E(Y)=3. Thus, E(Z)=5.

3.B.(10) Find Var(Z). Briefly explain every step of the calculation.

Solution: Var(Z)=Var(X+Y) , since Z=X+Y. Var(X+Y)=Var(X)+Var(Y), by the additivity property of variance when the variables are independent (which was assumed). Var(X)=1/(1/2)^2 =4, since the distribution of X is exponential with λ=1/2, and since the variance of the exponential pdf is 1/λ^2. By the same argument, Var(Y)=9. Thus, Var(Z)=13.

3.C.(5) Find the standard deviation of Z. No explanations needed. Solution: sqrt(13)=3.6056.

  1. A random sample of cash receipts X 1 ,…,X 400 is sampled from a continuous pdf whose mean is 10 and whose standard deviation is 15. The values of these cash receipts can never be negative.

4.A.(10) Draw a graph of the pdf from which the X’s are sampled, being consistent with the given information. Put numbers on the horizontal axis for easy reading.

Solution: since the standard deviation is larger than the mean, and since the data are positive, the distribution has to be very right skewed. The mean (10) should reflect the point of balance and therefore be well to the right of the peak of the curve.

4.B.(10) The average of the values is X = (X 1 +…+X 400 )/400. Draw a graph of the pdf of X , being consistent with the given information. Put numbers on the horizontal axis for easy reading.

Solution: By the central limit theorem, the distribution is approximately normal (bell shaped) with mean 10, and standard deviation 15/sqrt(400) = 0.75. Since three standard deviations captures most of the range of a normal distribution, the graph should be a bell curve ranging from 10-3(.75) = 7.75 to 10+3(.75) = 12.25.

5.(10) If you run the following SAS program, something will be created. What will be created? Explain in detail what is created by this program.

data test; do i = 1 to 1000; U = ranuni(0); output; end; run;

Solution: The program creates a data set called “test” and places it in the SAS temporary library called “work” (the formal name of the file is work.test). The file contains 1000 rows and two columns; one column is the variable named “i” which has values 1, 2,,…,1000; the other column is the variable named “U”, which has 1000 values that are randomly generated from the continuous uniform distribution with (0,1) limits.