Arzu Sir Assignment by Romin
Arzu Sir Assignment by Romin
Assignment No: 01
Department: Statistics
Course Title: Sampling Distributions(Lab)
Course Code: STAT-2207
Name of the Assignment:
Date of Submission: 15.01.2025
Submitted to
Arzo Ahmed,
Lecturer,
Department of Statistics,
Mawlana Bhashani Science and
Technology University
Submitted by
Muhymenul Haque Ramim
ST23015
2nd Year 1st Semester
2022-2023 session
Exact Sampling Distributions
Q1. Given that the random variable X has a t15 distribution. Determine the value of t for which,
Q2. Suppose that the random variable Y has a chi square distribution with 15 degrees of
freedom. Use the table and R language to obtain y such that,
Q3. Suppose that the random variable X has a chi square distribution with 15 degrees of
freedom. Use the table and R language to obtain,
[1] 0.06290225
Q6. The random variable X has a F distribution with 15 and 16 degrees of freedom.
where, z be a standard
normal variate and w be
a chi square distributed
random variable with n
d.f.
(b) Calculate mean, mean (m) 0.005856316
median, and variance of median (m) 0.001310754
simulated data. var (m) 1.679323
Result
Q2. Set your seed by last two digit of your id. Simulate 105 values of standard normal
variate, Z, chi-square distribution with m=5 degrees of freedom(u) and chi square
distribution with n=3 degrees of freedom(v).
n=3=3
n−2 3−2
2 n2 (m+n − 2) =− 21.6
m (n − 2)2 (n − 4 )
n (m − 2 )
=0.36 m (n+2)
Q1. Simulate 1000 times to generate 30 observations from uniform distribution X ~ U (0 , 1) and
then calculate y=n (1 – Xn ). Find the mean and standard deviation of y. Comment on your result.
Code n=30
y ←c ()
for (i in 1:1000) {
x ←runif (n , 0 , 1)
y [i ] ←n ∗(1 − max ( x ))
}
mean ( y )
sd ( y )
Result 1.026136
0.9513666
Q2. Plot histogram of y and superimpose the graphs with the p.d.f. of the eonential
distribution with rate = 1.
Result