
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for using r to simulate the number of females in a random sample of size 15 from a population with a 30% male and 70% female composition. Five problems that involve generating and analyzing the empirical distribution and theoretical distribution of the random variable x, which represents the number of females in the sample.
Typology: Study Guides, Projects, Research
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Hint : You may create a population with the above characteristics as follows:
Problem 2. Use the R code in Problem 1, to generate 10000 copies of X. Draw the histogram of the relative frequencies (density histogram) for the 10000 values. This is referred to as the “empirical distribution” of X. What is the shape of the empirical distribution of X?
Problem 3: Using the empirical distribution of X, as obtained in problem 2, what is the approximate probability that the number of females in a sample of size 15 from this population is more than 10?
Problem 4: Again using the empirical distribution, what is the mean and standard deviation of X?
Problem 5: Determine the theoretical distribution of X, and answer Problems 2-4, using the theoretical distribution. Are the theoretical quantities close to their empirical quantity