2024-02-04

Point Estimation

Point estimation is the practice of taking a sample from an entire batch of data and using it to calculate important metrics. These metrics are then used to make inferences about the entire batch.

Important calculations

  • Average
  • Standard Deviation
  • Variance

ToothGrowth

This is a data set showing tooth growth of Guinea pigs based on the dose of vitamin C given per day, by two separate delivery methods. The guinea pigs where given either .5, 1, or 2 mg of vitamin C each day in the form of either orange juice or ascorbic acid.

##    len supp dose
## 1  4.2   VC  0.5
## 2 11.5   VC  0.5
## 3  7.3   VC  0.5
## 4  5.8   VC  0.5
## 5  6.4   VC  0.5
## 6 10.0   VC  0.5

What can we observe?

This data set has 60 observations that we can gather information from. The point estimation will work best if we only have one variable for each calculation. We will be testing teeth growth of only those guinea pigs given 1 mg/day of vitamin C, and only given vitamin C via orange juice.

##    len
## 1 19.7
## 2 23.3
## 3 23.6
## 4 26.4
## 5 20.0
## 6 25.2

Number of guinea pigs by tooth length

tooth %>%
  ggplot( aes(x = len)) +
  geom_density(fill = "chartreuse4", color = "#e9ecef")

Important values

Average length:
\(\bar{x} = 22.7\)

Standard deviation:
\(\sigma = 3.9109533\)

Variance:
\(\sigma^2 = 15.2955556\)

Variance equation

\(\sigma^2 = \frac{\Sigma(x_i - \bar{x})^2}{(n-1)}\)

\(\sigma^2 =\) sample variance
\(x_i =\) value of observation
\(\bar{x} =\) mean of all observations
\(n =\) number of observations

More info

We can continue these calculations with the rest of the dataset.

OJ hisograms

VC histogram

Length for all doses and suppliments