plot_normal_likelihood function

Plot a Normal Likelihood Function

Plot a Normal Likelihood Function

Plots the Normal likelihood function for variable μ\mu

given a vector of Normal data y.

plot_normal_likelihood(y, sigma = NULL)

Arguments

  • y: vector of observed data
  • sigma: optional value for assumed standard deviation of y. by default, this is calculated by the sample standard deviation of y.

Returns

a ggplot of Normal likelihood

Examples

plot_normal_likelihood(y = rnorm(50, mean = 10, sd = 2), sigma = 1.5)