Soldato
- Joined
- 12 Apr 2004
- Posts
- 11,788
- Location
- Somewhere
I'm trying to integrate the Gaussian distribution between arbitrary limits, but I'm not having a lot of luck. As far as I can see I've done it right, but the answer I get is imaginary, which is obviously wrong, since it's supposed to represent a probability 
Steps I'm taking:
Here's my working:
The question I'm doing has the values of a, b, α and β as 299, 301, 2.37e-6, and -6.4e-6 respectively. This gives me an answer of 0.513e-5 i, which is clearly wrong (it should be around 2.84e-3).
Can anyone tell me what I'm doing wrong?
Edit: I meant to post this on physicsforums.com but absent mindedly did it in the wrong tab, help still appreciated though

Steps I'm taking:
- Turn it into a double integral over x and y
- Transform to polar coordinates; dxdy becomes rdrdθ and the limits become the corresponding values of r and θ for x=b, x=a (do I need to do something else with the θ limits perhaps?)
- Evaluate the r (inner) integral (with respect to r) and bring it outside the outer integral as a coefficient, since it's constant (is this part right? I'm not quite sure)
- Evaluate the θ integral; this just becomes θ(b) - θ(a).
Here's my working:
The question I'm doing has the values of a, b, α and β as 299, 301, 2.37e-6, and -6.4e-6 respectively. This gives me an answer of 0.513e-5 i, which is clearly wrong (it should be around 2.84e-3).
Can anyone tell me what I'm doing wrong?

Edit: I meant to post this on physicsforums.com but absent mindedly did it in the wrong tab, help still appreciated though

Last edited:
