The Math Forum

Search All of the Math Forum:

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

Math Forum » Discussions » sci.math.* » sci.math

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

Topic: simple statistics question
Replies: 2   Last Post: Mar 20, 2013 3:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Herman Rubin

Posts: 399
Registered: 2/4/10
Re: simple statistics question
Posted: Mar 20, 2013 1:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2013-03-20, Thomas Plehn <> wrote:
> while(1) %Matlab code

> rr = rand(1,50); %sequence of 50 U(0,1) Values

> des = rand(1,50); %sequence of 50 U(0,1) Values

> diff = rr - des;

> %This are both decide statistics, a, b
> a = mean(rr);
> b = min(diff);

> disp(a-b); %their difference is nearly constant
> %but how is it distributed (mu,sigma)

> %and how does that depend on sequence length (n=50)

> %i think we can chose U(0,1) insted of U(a,b) without los of generality
> %(linear transformation of coordinates)

One observation in rr or des has mean 1/2 and variance 1/12.
Therefore the mean of 50 of them has mean 1/2 and variance 1/600.
The difference of two such has mean 0 and variance 1/300.

> end

This address is for information only. I do not claim that these views
are those of the Statistics Department or of Purdue University.
Herman Rubin, Department of Statistics, Purdue University Phone: (765)494-6054 FAX: (765)494-0558

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.