Question: Run the code block below. Discuss the differences between the histograms of ` x ` , ` y ` , and ` z ` .
Run the code block below. Discuss the differences between the histograms of xy and z How do they help us understand the Central Limit Theorem?
r
# Run this code block
# For replicability
set.seed
# Draw random observations out of a uniform distribution from
x runif min max
# Take a sample of size from x
y samplex
# Run a simulation:
samples
samplesize
z vectorlength samples
fori in seqalongz
zi meansamplex samplesize, replace TRUE
# Create histograms of x y and z
histx freq FALSE, xlab
histy freq FALSE, xlab
histz freq FALSE, xlab
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
