We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The mean and variance displayed are incorrect. For example visualize.exp(1,theta=2,"lower") pexp(1,rate=2)
give the same probabilities, but mu=2 and sigma^2=4 are displayed instead of mu = 0.5 and sigma^2=0.25.
The text was updated successfully, but these errors were encountered:
@lgawarec Mmm, there might be a hang up in how the exponential distributions are implemented.
If we're using R's implementation, this rests upon:
$$f(w) = \lambda e^{-\lambda w}$$
However, visualize.exp() function signature is noting a $\theta$ parameterization:
visualize.exp()
$$f(x) = \frac{1}{\theta} e^{-x/\theta}$$
Though, glancing at the source:
visualize/R/visualize.exp.R
Lines 33 to 35 in c43b25c
We're directly using R's implementation.
So, we'll need to apply a conversion between the two of a quick division:
$\theta=\frac{1}{\lambda}$ and $\lambda=\frac{1}{\theta}$
Thanks for finding the bug!
Sorry, something went wrong.
No branches or pull requests
The mean and variance displayed are incorrect. For example
visualize.exp(1,theta=2,"lower")
pexp(1,rate=2)
give the same probabilities, but mu=2 and sigma^2=4 are displayed instead of mu = 0.5 and sigma^2=0.25.
The text was updated successfully, but these errors were encountered: