Академический Документы
Профессиональный Документы
Культура Документы
Steven Tung
January 24 Lecture 1a: Data Types, Sampling Methodology, and Sampling Error
February 23 Reserved
February 28 Reserved
1
1/31/2017
2
1/31/2017
Sample size = 4
S1 = [1,4,5,6] x̄1 = 4
S2 = [3,4,4,6] x̄2 = 4.25
S3 = [1,5,6,6] x̄3 = 4.5
. The frequency table can be
. referred to as the “Sampling
Sn = [?,?,?,?] x̄n = ?? Distribution of the Sample
Mean”
Gmacro Gmacro
Population SamplingDistribution
#generate 10000 random numbers from the #k1 is sample size
#normal distribution with mean of 3 and Let k1 = 4
#stdev of 1 and place them into column 1 #k2 is number of samples
Random 10000 c1; Let k2 = 100
Normal 3 1.
#generate 10000 random numbers from the #Calculate mean of sample
#uniform distribution with a of 0 and b of 6 Do k3 = 1:k2
#and place them into column 3 #c5 stores index location based on
Random 10000 c3; #sample size requested
Uniform 0 6. Random k1 c5;
#plot the histograms of both my "population" integer 1 10000.
Histogram c1 c3; #c6 stores the actual value based on
Bar. #indexed location stored in c5
Endmacro Do k4 = 1:k1
#k5 is needed as a temporary
#index holder
Let k5 = c5(k4)
Let c6(k4) = c1(k5)
Let c7(k4) = c3(k5)
Enddo
#store sample mean from c6
Let c9(k3) = mean(c6)
Let c10(k3) = mean(c7)
Enddo
#plot the histograms of both my "sample distribution of
#the sample mean"
Histogram c9 c10;
Bar.
Endmacro
3
1/31/2017
Mean
o “Sampling Distribution of the Sample Mean” will have the same mean as the
original distribution:
o “Sampling Distribution of the Sample Mean” standard deviation will follow the
relationship: