Use the following data to construct a PDF and CDF such that probabilities could be read from the CDF:
[ 5.6, 4.1, 3.0, 4.2, 1.1, 6.3, 6.5, 5.1, 2.1, 9.4, 2.5, 3.0, 4.2, 1.1, 5.2, 3, 7.1, 5.5, 3.1, 8.8 ]
For the PDF, suggest a frequency histogram with 5 equal bins on an x scale of 0 – 10.
The PDF is presented as a relative frequency histogram with 5 equal bins on an x scale of 0 – 10.
The CDF of the given data set is plotted below.
R code for both the plots below:
x <- c( 5.6, 4.1, 3.0, 4.2, 1.1, 6.3, 6.5, 5.1, 2.1, 9.4,
2.5, 3.0, 4.2, 1.1, 5.2, 3, 7.1, 5.5, 3.1, 8.8)
plot(1:1)
dev.new()
Fx <- ecdf(x)
plot(Fx, col="blue")
plot(1:1)
dev.new()
hist(x,freq = FALSE, breaks=c(0,2,4,6,8,10), col="sky
blue")
Get Answers For Free
Most questions answered within 1 hours.