Calculate λ with known cdf

You can use find_zero in Roots.jl to solve this:

julia> using Distributions, Roots

julia> find_zero(λ -> cdf(Poisson(λ), 3) - .82, 2)
2.1967047830443853
3 Likes