Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: integrating the symbolic normcdf
Replies: 5   Last Post: Jun 27, 2010 10:39 PM

 Messages: [ Previous | Next ]
 Roger Stafford Posts: 5,929 Registered: 12/7/04
Re: integrating the symbolic normcdf
Posted: Jun 25, 2010 8:19 PM

"Angie" <angie11tr@yahoo.com> wrote in message <i03d7t\$3tu\$1@fred.mathworks.com>...
> First: In the above post, I should have normcdf(x,0,1) not normcdf(x,1,0)
>
> Second: I tried this approach in another post, yet I am not sure if this is correct. Can anyone tell me if this is correct?
>
> fun1 = @(x) x;
> fun2 = @(x) normcdf(x,0,1);
> myintegrand = @(x) fun1(x).*fun2(x);
>
> ans =
> 0.3710

- - - - - - - - -
Yes, that agrees with the answer I got using integration by parts with old-fashioned pen and paper, namely:

1/4 + 1/2/sqrt(2*pi*exp(1)) = 0.370985362

I would have thought the symbolic toolbox could also solve this.

Roger Stafford

Date Subject Author
6/25/10 Angie Blue
6/25/10 Angie Blue
6/25/10 Roger Stafford
6/26/10 Angie Blue
6/26/10 Roger Stafford
6/27/10 Steven Lord