We want to find the average height (in cm) of all students in a school using a sample of 15 randomly-selected students.
The sample mean, \(\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i\), is the point estimate for the population parameter, \(\mu\).
heights = c(182, 178, 168, 180, 177, 184, 164, 185,
173, 171, 175, 185, 169, 165, 168) ## sample data
mean(heights) ## calculate sample mean
## [1] 174.9333
The mean height for our sample of 15 students is about 175cm, so our best guess for the mean height of all students in the school is 175cm.