STAT 307

Lab 2


Lab 4

(Textbook p.46)

Q1. Consider the following population of six units:
        x1 = 1, x2 = 2, x3 = 2, x4 = 4, x5 = 4, x6 = 5.

a. Find the exact distribution of xbar for a simple random sample of size 2 from this population.
b. Use the exact distribution to compute the expectation and standard deviation of the sample average.
c. Use the formulas found in the Theory section to compute the expectation and SD of xbar.  Compare your answers to those found using the exact distribution of xbar.


Q2. Consider the following population of five units:
        x1 = 1, x2 = 2, x3 = 2, x4 = 4, x5 = 4.

a. Find the exact distribution of the sample median of a simple random sample of size 3.
b. Use the exact distribution to compute the expectation and standard deviation of the sample median.


Code used in today's lab:

Data file for today’s Lab task:


Lab 5


Code used in today’s lab:

Data file for use with the code in lab5.R:

Data file for today’s lab task:


Lab 6

Code used in today’s lab:


Data file for today’s lab task:


Lab 7

Data file for today’s lab task:

Suggested solution to the lab task:


Lab 8

Data file for today's lab task:


Lab 9


Lab 10

Data file for today’s Lab task:

Reference plot for today's lab task:
To make life easier, you may safely skip Q4 of Lab Task 10.
Click START EDITING, then the Edit button to edit this text.

a place of mind, The University of British Columbia

Department of Statistics

E-mail: slate@stat.ubc.ca

Emergency Procedures | Accessibility | Contact UBC | © Copyright The University of British Columbia