Re: P=e^-λ((λ^2)/2+λ+1)



I hope I have your precedence correct. With Mathematica

Define the lambda function so we can look at it:

f[\[Lambda]_] := Exp[-\[Lambda] (\[Lambda]^2/2 + \[Lambda] + 1)]

Plot it:

Plot[f[\[Lambda]], {\[Lambda], 0, 5}, PlotRange -> {0, 1}]

We might try numerical root finding, but t Mathematica will find the three roots with Solve and we can extract the real one.

sol = Part[Solve[f[\[Lambda]] == p, \[Lambda]], 1, 1] // Quiet
\[Lambda] ->
1/3 (-2 -
2/(10 - 27 Log[p] + 3 Sqrt[3] Sqrt[4 - 20 Log[p] + 27 Log[p]^2])^(
1/3) + (10 - 27 Log[p] +
3 Sqrt[3] Sqrt[4 - 20 Log[p] + 27 Log[p]^2])^(1/3))

Checking visually for a value of p:

sol /. p -> .5
\[Lambda] -> 0.447766

which looks about right on the plot.

--
David Park
djmpark@xxxxxxxxxxx
http://home.comcast.net/~djmpark/


<davidhaslam100@xxxxxxxxxxxxxx> wrote in message news:74532254-ad81-4fb7-b1d0-c65c959291e7@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Can anyone explain how I might solve the above equation for λ? This
relates to the probability of a soccer match ending under 2.5 goals
(given an average expected amount of goals (λ). I'm stuck.

Thanks, David

.



Relevant Pages

  • Re: How to visualize Riemann surfaces
    ... But that is how the mathematica article I ... of the complex plane except for the points in your barrier. ... above, then, this graph is just the slit complex plane ... All I can do to plot and visualize a ...
    (sci.math)
  • Mathematica problem - generate filename automatically
    ... I have a load of text files for which I'd like to plot the data in them. ... But how can I best combine those lists, so it creates a file name? ... I'm tempted to write a C program to generate the Mathematica commands, but I'm sure it must be possible to do this in Mathematica - I just know C better! ...
    (sci.math.symbolic)
  • Re: How can I speed up drawing of 2D graphs?
    ... When I plot this in Mathematica 6 using ListPlot[] ... seconds to render a single page which has 4 graphs on it. ...
    (sci.math.symbolic)
  • Re: How can I speed up drawing of 2D graphs?
    ... When I plot this in Mathematica 6 using ListPlot ... But when the notebook is ... seconds to render a single page which has 4 graphs on it. ...
    (sci.math.symbolic)