From Wikipedia, the free encyclopedia
Q: Draw random numbers from distribution, using its definition.
A: By definition, , where .
According to CLT, and some simulation, we see that:
if are from uniform distribution,
then approximately .
So, we can draw observations from by
What is Simpson's paradox?
The thing is, that
- or
is not equivalent to:
Where is the test statistic, and is critical region, and is the obtained value of test statistic.
I guess, the right definition is in german wikipedia:
In case of right-sided test:
In left-sided test:
In case of two-sided test: