Math Is Fun Forum

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

You are not logged in.

#1476 2012-07-12 00:47:41

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?


"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

#1477 2012-07-12 00:52:29

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi;


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1478 2012-07-12 00:54:14

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

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

#1479 2012-07-12 00:59:46

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1480 2012-07-12 01:09:41

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

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

#1481 2012-07-12 01:22:19

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

Take a look at this:


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1482 2012-07-12 01:38:29

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,


"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

#1483 2012-07-12 01:40:56

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1484 2012-07-12 01:55:09

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Is this cool with you?

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
The knowledge of some things as a function of age is a delta function.

Offline

#1485 2012-07-12 02:01:53

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi,

Hi gAr;

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


"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

#1486 2012-07-12 02:07:15

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

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?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1487 2012-07-12 02:13:38

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Is this cool with you?

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
The knowledge of some things as a function of age is a delta function.

Offline

#1488 2012-07-12 02:15:37

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

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.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1489 2012-07-12 02:17:54

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

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


"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

#1490 2012-07-12 02:18:48

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

Wouldn't that be 0?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1491 2012-07-12 02:18:56

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Is this cool with you?

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
The knowledge of some things as a function of age is a delta function.

Offline

#1492 2012-07-12 02:20:49

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

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.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1493 2012-07-12 02:24:42

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Is this cool with you?

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


“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
The knowledge of some things as a function of age is a delta function.

Offline

#1494 2012-07-12 02:28:56

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

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?


"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

#1495 2012-07-12 02:31:24

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

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.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#1496 2012-07-12 02:32:49

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Is this cool with you?

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.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#1497 2012-07-12 02:39:40

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

Okay, see you...

Hi anonimnystefy,

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


"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

#1498 2012-07-12 02:40:41

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Is this cool with you?

That is the expected value of the difference?


“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
The knowledge of some things as a function of age is a delta function.

Offline

#1499 2012-07-12 02:47:24

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Yes.


"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

#1500 2012-07-12 02:57:06

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: Is this cool with you?

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.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

Board footer

Powered by FluxBB