Function to generate sampling distribution of the sample mean function called samp.dist.mean , Such that: Takes as inputs: i) a population vector ( pop ), ii) the number of samples (n, lower-cas conduct (call this variable is K ). n the body of the function: i) for a given sample size n, uses the function sample.me mean for each experiment (i.e., for k = 1, 2, ..., K). Dutputs: returns a vector of length K with the sample means obtained from the K

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.5: Comparing Sets Of Data
Problem 13PPS
icon
Related questions
Question
Part 1: Function to generate sampling distribution of the sample mean
Write a function called samp.dist.mean, SUCch that:
• Takes as inputs: i) a population vector ( pop ), ii) the number of samples ( n, lower-case) to draw, and iii) the number of experiments to
conduct (call this variable is k ).
• In the body of the function: i) for a given sample size n, uses the function sample.mean (with out.sample=FALSE ) to obtain the sample
mean for each experiment (i.e., for k = 1, 2,... , K).
• Outputs: returns a vector of length K with the sample means obtained from the K experiments.
Transcribed Image Text:Part 1: Function to generate sampling distribution of the sample mean Write a function called samp.dist.mean, SUCch that: • Takes as inputs: i) a population vector ( pop ), ii) the number of samples ( n, lower-case) to draw, and iii) the number of experiments to conduct (call this variable is k ). • In the body of the function: i) for a given sample size n, uses the function sample.mean (with out.sample=FALSE ) to obtain the sample mean for each experiment (i.e., for k = 1, 2,... , K). • Outputs: returns a vector of length K with the sample means obtained from the K experiments.
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill