Sei sulla pagina 1di 1

Math 338 Lab 2 - Assignment Fall 2014

Page 1 of 1

Lab #2 Assignment
If you dont follow any of the following, points will be deducted.
Open a Word document and type lab2, section number (you are in section 3) and
your name in the heading.
You must show your R commands and outputs in a text box.
Send me a PDF file (email: heejeonglim@fullerton.edu)
In your email subject line, type Math338-3 Lab2 YourName.


1. Concepts of Mean, Variance and Standard Deviation

(a) Create a vector with 5 numbers {3, 3, 3, 3, 3}. Calculate the mean, variance and sd.
(b) Create a vector with 5 numbers {1, 2, 3, 4, 5}. Calculate the mean, variance and sd.
(c) Create a vector with 5 numbers {2, 2, 3, 4, 4}. Calculate the mean, variance and sd.
(d) Create a vector with 5 numbers {1, 1, 3, 5, 5}. Calculate the mean, variance and sd.
(e) Can you create a set of 5 numbers using {1, 2, 3, 4, 5} (repetition allowed) which has
the variance larger than the variance from {1, 1, 3, 5, 5}? If so, give an example.
(f) Describe what you learned from the results in parts (a) (e).


2. Change the Unit of Measurement (Linear Transformation)

(a) Create a vector with 5 numbers {1, 2, 3, 4, 5}. Calculate the mean, variance and sd.
(b) Add 5 to all values (to a vector in part a) and calculate the mean, variance and sd.
What effects do you see in the values of mean, variance and sd (compared to a)?
(c) Multiply all values in a vector in part a by 10 and calculate the mean, variance and sd.
What effects can you see in the values of mean, variance and sd?
(d) Divide all values in a vector in part a by 2 and calculate the mean, variance and sd.
What effects can you see in the values of mean, variance and sd?
(e) If you multiply all values in a vector in part a by 20 and then subtract 5, what effects
do you see in the values of mean, variance and sd?

Potrebbero piacerti anche