324a2-f08-141 - Use comments in your programs Each source...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Math 324 Fall 2009 Name Piryatinska Due: December 3 1.1 Generate 500 samples (each of them should have size k = 10) from the following distributions: a) Uniform distribution or n interval (0,3) b) Binomial distribution with n=14, p = 0.4. c) Exponential distribution with lambda=3. i. Calculate mean for each sample and find mean of the means. ii. For each part find the variance of means. iii. Draw a histogram for the means. iv. Draw the normal probability plot of means 1.2 Do the same for k=80. 1. 3 Compare results for 1.1 and 1.2. Use central limit theorem to explanation the results. 2. Problems from textbook section 4.12: a)#10 Hand in: The source code. The output Directions : The program is due at the beginning of the session on the due date. Use this page as the cover page with your name.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Use comments in your programs. Each source and output must be clearly marked with the question number. Circle the answers. Hints: To generate random numbers you use the following R commands: a) uniform distribution- “runif(n, min=0, max=1)” b) binomial distribution: “rbinom(n, size, prob) c) normal distribution “rnorm(n, mean=0, sd=1)”(if mean and sd are different put their values, zero and 1 are default). e) Problem #10. System functions if R and T are function. If A is a time for the first system to function and B is the time for second system to function then to find the time that both function you need to find the min (A,B). To calculate minimum for every pair, you have to use command pmin(R,T)....
View Full Document

This note was uploaded on 09/15/2011 for the course MATH 324 taught by Professor Staff during the Spring '08 term at S.F. State.

Ask a homework question - tutors are online