Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: how to find the integral for a portion of a normal distribution.


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: how to find the integral for a portion of a normal distribution.
Date   Tue, 04 May 2010 12:15:29 -0400

The total area under any normal curve is always 1, so you just need
to count obs:

 drawnorm x , means(2.02) sds(1.75) n(100000) clear
 gen byte lessthan1=x<=1
 sum lessthan1

The mean value of -lessthan1- is the area under the curve
to the left of 1.

hth,
Jeph


Buzz Burhans wrote:
My weak math skills are showing up here -
For demonstration purposes, I have generated a set of 100,000 observations
with a normal distribution, mean 2.02, SD 1.74 and visualized this data and
the portion of observations above 1  with a histogram

drawnorm x , means(2.02) sds(1.75) n(100,000) clear
hist, xline(1)

I also computed the proportion of the observations <=1 from the Z score.

What I don't know how to do in Stata is find the integral for the
proportions of the distribution above and below 1.
How can I determine those two integrals in Stata?

Thanks



Buzz Burhans, Ph.D.
Dairy-Tech Group
So. Albany, VT / Twin Falls ID

Phone: 802-755-6842
Cell: 208-320-0829
Fax VT: 802-755-6842
Fax ID: 208-735-1289

Email: [email protected]


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index