in matlab, how to get the integration of xf(x) from t1 to t2
where f(x) is a Gaussian (or Normal) density function with
known mean and variance parameters? thanks!
"Jerry " <mricad@yahoo.no000spppam.com> wrote in message
<foau82$cqb$1@fred.mathworks.com>...
> in matlab, how to get the integration of xf(x) from t1 to t2
> where f(x) is a Gaussian (or Normal) density function with
> known mean and variance parameters? thanks!
normcdf, if you have the statistics toolbox.
If not, then its a simple transformation of
erf or erfc.
"John D'Errico" <woodchips@rochester.rr.com> wrote in
message <fob0bi$bar$1@fred.mathworks.com>...
> "Jerry " <mricad@yahoo.no000spppam.com> wrote in message
> <foau82$cqb$1@fred.mathworks.com>...
> > in matlab, how to get the integration of xf(x) from t1 to t2
> > where f(x) is a Gaussian (or Normal) density function with
> > known mean and variance parameters? thanks!
>
> normcdf, if you have the statistics toolbox.
>
> If not, then its a simple transformation of
> erf or erfc.
>
> John
no, please note that "integration of xf(x) from t1 to t2",
it's xf(x), not f(x).
"Jerry " <mricad@yahoo.no000spppam.com> wrote in message <foau82$cqb
$1@fred.mathworks.com>...
> in matlab, how to get the integration of xf(x) from t1 to t2
> where f(x) is a Gaussian (or Normal) density function with
> known mean and variance parameters? thanks!
---------
Write x*f(x) = (x-m)*f(x) + m*f(x), where m is the mean. The first one can be
directly integrated in terms of the exp function, while the second can be
expressed in terms of normcdf or erf.
"Jerry " <mricad@yahoo.no000spppam.com> wrote in message <foau82$cqb
$1@fred.mathworks.com>...
> in matlab, how to get the integration of xf(x) from t1 to t2
> where f(x) is a Gaussian (or Normal) density function with
> known mean and variance parameters? thanks!
---------
Write x*f(x) = (x-m)*f(x) + m*f(x), where m is the mean. The first one can be
directly integrated in terms of the exp function, while the second can be
expressed in terms of normcdf or erf.
"Jerry " <mricad@yahoo.no000spppam.com> wrote in message <foau82$cqb
$1@fred.mathworks.com>...
> in matlab, how to get the integration of xf(x) from t1 to t2
> where f(x) is a Gaussian (or Normal) density function with
> known mean and variance parameters? thanks!
---------
Write x*f(x) = (x-m)*f(x) + m*f(x), where m is the mean. The first one can be
directly integrated in terms of the exp function, while the second can be
expressed in terms of normcdf or erf.
"Jerry " <mricad@yahoo.no000spppam.com> wrote in message <foau82$cqb
$1@fred.mathworks.com>...
> in matlab, how to get the integration of xf(x) from t1 to t2
> where f(x) is a Gaussian (or Normal) density function with
> known mean and variance parameters? thanks!
---------
Write x*f(x) = (x-m)*f(x) + m*f(x), where m is the mean. The first one can be
directly integrated in terms of the exp function, while the second can be
expressed in terms of normcdf or erf.
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in
message <fob85m$ctq$1@fred.mathworks.com>...
> Write x*f(x) = (x-m)*f(x) + m*f(x), where m is the mean. The first one can
be
> directly integrated in terms of the exp function, while the second can be
> expressed in terms of normcdf or erf.
>
> Roger Stafford
-------
I think the Matlab Newsgroup is misbehaving again! I clicked the "Post
Message" button only once, I swear, but got four copies sent anyhow. Let's see
how it behaves this time.
"Roger Stafford"
<ellieandrogerxyzzy@mindspring.com.invalid> wrote in
message <foba8e$rr4$1@fred.mathworks.com>...
> "Roger Stafford"
<ellieandrogerxyzzy@mindspring.com.invalid> wrote in
> message <fob85m$ctq$1@fred.mathworks.com>...
> > Write x*f(x) = (x-m)*f(x) + m*f(x), where m is the
mean. The first one can
> be
> > directly integrated in terms of the exp function,
while the second can be
> > expressed in terms of normcdf or erf.
> >
> > Roger Stafford
> -------
> I think the Matlab Newsgroup is misbehaving again! I
clicked the "Post
> Message" button only once, I swear, but got four copies
sent anyhow. Let's see
> how it behaves this time.
>
> Roger Stafford
>
thanks, Roger. Your method is really smart! my OP got a
duplication too, don't worry about it. thanks again.
Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central. Read the complete Disclaimer prior to use.