Geoscience Reference
In-Depth Information
median(sodium)
ans =
16.9739
v(find(n == max(n)))
ans =
17.7500
h e mean of the data is 16.6379, the median is 16.9739 and the mode is
17.7500. We now introduce a single, very low value of 7.0 wt% in addition to
the 50 measurements contained in the original data set.
sodium(51,1) = 7.0;
h = histogram(sodium,11)
v = h.BinWidth * 0.5 + h.BinEdges(1:end-1)
n = h.Values
v =
Columns 1 through 4
7.5500 8.6500 9.7500 10.8500
Columns 5 through 8
11.9500 13.0500 14.1500 15.2500
Columns 9 through 11
16.3500 17.4500 18.5500
n =
Columns 1 through 8
1 0 0 0 0 1 3 8
Columns 9 through 11
9 27 2
h e histogram of this data set using a larger number of classes illustrates
the distortion produced in the frequency distribution by this single outlier,
showing several empty classes. h e inl uence of this outlier on the sample
statistics is also substantial.
mean(sodium)
ans =
16.4490
median(sodium)
ans =
16.9722
v(find(n == max(n)))
ans =
17.4500
Search WWH ::




Custom Search