R Cheat Sheet 3
R Cheat Sheet 3
R Cheat Sheet 3
September 3, 2018
I Number of hits per game for all nine-inning games that were
played between 1989-1993 in a major league baseball
I The histogram seems to be unimodal but not symmetric
Figure :
Figure :
Figure :
I Symmetric unimodal
I Bimodal
I Right-skewed
I Left-skewed
Figure :
I
P
I With the sum total xi = 229.0, the sample mean is
229.0
x̄ = = 16.36
14
I Often the median and the mean are just two extremes...How
do we claim the middle ground? Consider the trimmed
mean.
I The mean does not discard any observations while the median
discards almost everything. We can discard a predetermined
number or percentage of observations as an alternative.
I The following dataset gives the copper percentages in a
sample of 26 Bidri artifacts
2.0 2.4 2.5 2.6 2.6 2.7 2.7 2.8 3.0 3.1 3.2 3.3
3.4 3.4 3.6 3.6 3.6 3.6 3.7 4.4 4.6 4.7 4.8 5.3
I The regular mean is x̄ = 3.65 and the median is x̃ = 3.35.
The difference is due to a large observation 10.1%