openghg / openghg_inversions

University of Bristol Atmospheric Chemistry Research Group RHIME Inversion code (with openghg dependency)
MIT License
5 stars 0 forks source link

Add code to choose log normal prior with given mean and stdev #107

Closed brendan-m-murphy closed 2 months ago

brendan-m-murphy commented 2 months ago

The mu and sigma parameters for pymc's log normal distribution are the not the mean and standard deviation of the log normal. If X is a log normal random variable then log X is a normal random variable, and pymc's mu and sigma are the mean and standard deviation of log X.

There is a fairly simple formula that produces mu and sigma to get a log normal with a given mean and standard deviation. It would be useful to have this incorporated into our code.

brendan-m-murphy commented 2 months ago

Closed by PR #109