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

You are not logged in.

- Topics: Active | Unanswered

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

"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."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

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.**

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Hi,

"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."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi gAr;

**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.**

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Hi,

Thanks!

Try the problem I was attempting, |sum( a ) - sum( b )| instead of sum( |a - b| ), I think that's more difficult.

"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."

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi gAr;

Take a look at this:

**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.**

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Hi bobbym,

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

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi gAr;

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.

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,376

bobbym wrote:

Hi gAr;

Hi bobbym

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Hi,

Hi gAr;

Yes, he is considering (i,j) and (j,i) to be identical, so he's done the summation like that.

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

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi gAr;

Does that cover your question in post #1481?

Hi anonimnystefy;

The example of how to some the die that I gave. Do you want the correct example?

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.

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,376

Hi bobbym

I don't understand you. I used a GF to sum the die.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi;

This is what the problem requires you to do in pseudo code:

1)Pick two random integers in the interval [1,6].

2)Subtract them and take the absolute value.

3)Take the average of all of those values.

4) Print the answer.

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.

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Hi bobbym,

No, see the code I posted in #1461 to understand what I mean.

I'm considering 2 six faced dice, thrown n times, and we need to calculate the expected value of

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

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi gAr;

Wouldn't that be 0?

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.

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,376

But why do that. I took each possible outcome, multiplied each of them with its pribability of happening and summed over.

Here lies the reader who will never open this book. He is forever dead.

Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi;

Because as I was explaining to gAr, I made a mistake in showing that example in the original post. You sum the die pairwise.

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.

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,376

So, what should I get for (1,5),(5,1)?

Here lies the reader who will never open this book. He is forever dead.

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Hi,

Hi gAr;

Wouldn't that be 0?

No, just like in the example, we may get for four throws |(1+2+3+4) - (2+3+4+5)| = 4. We will get different values for each trial, and 0 is one among them. So what's the expected value?

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

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 84,516

Hi gAr;

Okay, I will work on it because I do not have a quick answer. I am being called away from my computer, see you later.

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.

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,376

Hi gAr

What are you getting as the answer?

Hi bobbym

See you later.

*Last edited by anonimnystefy (2012-07-12 02:33:10)*

Here lies the reader who will never open this book. He is forever dead.

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Hi bobbym,

Okay, see you...

Hi anonimnystefy,

I have already answered it, 35 / 18 for 6 faced dice.

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

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,376

That is the expected value of the difference?

Here lies the reader who will never open this book. He is forever dead.

Offline

**gAr****Member**- Registered: 2011-01-09
- Posts: 3,478

Yes.

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

Offline

**anonimnystefy****Real Member**- From: The Foundation
- Registered: 2011-05-23
- Posts: 15,376

Hi gAr

I tthink I might have been doing the other problem you mentioned. The absolute difference of the sums. What do you get for that one?

Here lies the reader who will never open this book. He is forever dead.

Offline