Is this function the right implementation to compute the likelihood of a normal distribution at a point?

Hi @shiqangpan,

Is this what you're looking for?

> dnorm(x = 34, mean = 32, sd = 2.5)
[1] 0.1158766
> log(dnorm(x = 34, mean = 32, sd = 2.5))
[1] -2.155229

(Hint, it is :wink:)

Ps. the video you link to, nicely explains probability versus likelihood - Please note that these are not the same. They are used interchangeably in every day talk, but in statistics they represent different entities.

1 Like