2/4/2024

Estimation In Statistics

  • Point Estimation
    • The definition of point estimation is a single value that is used to estimate an unknown population parameter.
  • Interval Estimation
    • The definition of interval estimation is a statistical inference that uses sample data to estimate a range of values for a parameter of interest.
  • Confidence Interval Estimation
    • The definition of confidence interval estimation is the probability that a population parameter will fall between a set of values for a certain proportion of times.

Point Estimation Example

  • To find the point estimate for the population mean, we need to find the sample mean.
    • Below is a sample of the hours worked by an employee each week:
      • 23, 25, 21, 22, 26, 28, 18, 32

Calculating The Sample Mean

  • Sample mean: \(\bar{X}\) = \(\frac{\sum x}{n}\)
    • \(\frac{(23 + 25 + 21 + 22 + 26 + 28 + 18 + 32)}{8}\) = 24.375
    • The point estimate for the population mean is 24.375

Plotly Plot For Point Estimate Of The Population Mean

## Loading required package: ggplot2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout

Plotly Plot For Point Estimate Of The Population Mean

Code Snippet For Plotly Plot Bar Graph

weeks <- c("Week 1", "Week 2", "Week 3", "Week 4", 
           "Week 5", "Week 6", "Week 7", 
        "Week 8")
hours <- c(23, 25, 21, 22, 26, 28, 18, 32)

p = plot_ly(x = weeks, y = hours, type = "bar")

ggplot For Point Estimate Of The Population Mean

Point Estimate For Standard Deviation

  • To find the standard deviation, we first have to find the sample mean, and variance.
  • Below is a sample of the number of children who ride bikes, walk, ride the bus, or get dropped off at school:
  • Walkers: 10
  • Bus Riders: 12
  • Car Riders: 15
  • Bike Riders: 6

Point Estimation Standard Deviation

  • Need the sample mean:
    • Sample mean: \(\bar{X}\) = \(\frac{\sum x}{n}\)
    • \(\bar{X}\) = \(\frac{10 + 12 + 15 + 6}{4}\) = 10.75
  • Then need to subtract the mean from each value and square it:
    • (\(x_0\) - \(\bar{X}\))\(^2\)

Calculating The Standard Deviation

  • \(\bar{x}\) = 24.375
  • Subtract the mean from each value and square it:
  • (10 - 10.75)\(^2\) = 0.56
  • (12 - 10.75)\(^2\) = 1.56
  • (15 - 10.75)\(^2\) = 18.06
  • (6 - 10.75)\(^2\) = 22.56

Calculating The Standard Deviation Contuine…

  • Find the sample variance
    • 0.56 + 1.56 + 18.06 + 22.56 = 42.75
    • n - 1 = 4 - 1 = 3
    • variance: \(\frac{42.75}{3}\) = 14.25
    • standard deviation: \(\sqrt{14.25}\) = 3.77

ggplot Plot For Point Estimate Standard Deviation