Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

Login

Username

Password

Not registered yet?

#1 2013-04-13 23:00:46

Agnishom
Real Member
Award: Wink Sherlock

Offline

xpected value

A school is running a raffle for two prizes. 59 tickets were sold for the raffle, numbered 1,…,59. All the tickets are put into a hat and a teacher picks out two tickets which have numbers i and j from the hat. What is the expected value of |i−j|?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#2 2013-04-13 23:23:45

bobbym
Administrator

Offline

Re: xpected value

Hi;


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#3 2013-04-13 23:28:26

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: xpected value

I am getting 20


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#4 2013-04-13 23:31:22

bobbym
Administrator

Offline

Re: xpected value

There is no replacement?


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#5 2013-04-13 23:40:55

anonimnystefy
Real Member

Offline

Re: xpected value

I am getting 20 as well.


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#6 2013-04-13 23:43:49

bobbym
Administrator

Offline

Re: xpected value

If there picking without replacement then the answer is 20. If not the answer in post #2 holds.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#7 2013-04-13 23:46:10

anonimnystefy
Real Member

Offline

Re: xpected value

"The teacher picks out two tickets"


The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

#8 2013-04-13 23:50:13

bobbym
Administrator

Offline

Re: xpected value

That does suggest without replacement. The answer is (59 + 1 ) / 3 = 20.


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#9 2013-04-13 23:52:17

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: xpected value

Explain in simple words please hmm


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#10 2013-04-13 23:56:48

bobbym
Administrator

Offline

Re: xpected value

Hi;

This is the answer from my notes.

There are n(n-1) ways to pick two numbers from the unit interval 1 ... n.

If they are ordered high and low then there are:



ways.

The standard way now to do this is to look at the ordered pairs. There is 1 way for 2 to be the maximum and 2 ways for 3 to be the maximum and there are generally m-1 ways for m to be the maximum. Using the formula for expected value or expected number:



For the second part, you do it in the same way. There are
still n (n-1)/2 ways to arrange n numbers with high and low.

Now you go through the numbers in the same way. 1 is the lowest n-1 times. 2 is the lowest n - 2 times. n can never be the lowest. n-1 is the lowest one time so generally m is lowest n - m times. We use the same formula for expected value:



Now for the difference.

Just subtract the expected value of the lowest from the highest.



The absolute value is implied in there.


When you have time please sign up over here:

https://brilliant.org/


In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#11 2013-04-15 23:31:27

gAr
Star Member

Offline

Re: xpected value

Explain in simple words please hmm

Hi,

Let's begin with the list of |i - j| possibilities :
1, 2, 3, 4, ... , 58
1, 2, 3, 4 ..  57
1, 2, 3, .. 56
.
.
.
1, 2
1

Each number from every row is equiprobable
Hence, the expectation:



and for any n


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

#12 2013-04-15 23:46:16

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: xpected value

Hmm, and the rows are obtained how?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

#13 2013-04-15 23:53:04

gAr
Star Member

Offline

Re: xpected value

Start with the first two numbers and end with the last two, listing each combination.

(2-1), (3-1), ... (59-1)
(3-2), (4-2) ... (59-2)
.
.
(58-57), (59-57)
(59-58)


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

#14 2013-04-16 00:07:50

Agnishom
Real Member
Award: Wink Sherlock

Offline

Re: xpected value

gOt it
Thanks smile

Last edited by Agnishom (2013-04-16 00:08:24)


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'Who are you to judge everything?' -Alokananda

Board footer

Powered by FluxBB