Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

#326 2014-01-15 03:28:39

bobbym
Administrator

Offline

Re: Probability problem.

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.
 

#327 2014-01-15 03:43:07

gAr
Star Member

Online

Re: Probability problem.

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

#328 2014-01-15 03:48:13

bobbym
Administrator

Offline

Re: Probability problem.

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.
 

#329 2014-01-15 04:00:46

gAr
Star Member

Online

Re: Probability problem.


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

#330 2014-01-15 04:05:38

bobbym
Administrator

Offline

Re: Probability problem.


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.
 

#331 2014-01-15 04:16:02

gAr
Star Member

Online

Re: Probability problem.


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

#332 2014-01-15 04:18:05

bobbym
Administrator

Offline

Re: Probability problem.


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.
 

#333 2014-01-15 04:24:38

gAr
Star Member

Online

Re: Probability problem.


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

#334 2014-01-15 04:29:38

bobbym
Administrator

Offline

Re: Probability problem.


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.
 

#335 2014-01-15 04:39:11

gAr
Star Member

Online

Re: Probability problem.


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

#336 2014-01-15 04:41:36

bobbym
Administrator

Offline

Re: Probability problem.

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.
 

#337 2014-01-15 04:46:52

gAr
Star Member

Online

Re: Probability problem.


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

#338 2014-01-15 04:50:37

bobbym
Administrator

Offline

Re: Probability problem.


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.
 

#339 2014-01-15 04:53:21

gAr
Star Member

Online

Re: Probability problem.


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

#340 2014-01-15 04:57:34

bobbym
Administrator

Offline

Re: Probability problem.


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.
 

#341 2014-01-15 05:03:26

gAr
Star Member

Online

Re: Probability problem.


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

#342 2014-01-15 05:10:40

bobbym
Administrator

Offline

Re: Probability problem.


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.
 

#343 2014-01-15 05:15:07

gAr
Star Member

Online

Re: Probability problem.

Last edited by gAr (2014-01-15 05:20:24)


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

#344 2014-01-15 05:21:18

bobbym
Administrator

Offline

Re: Probability problem.


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.
 

#345 2014-01-17 17:07:32

gAr
Star Member

Online

Re: Probability problem.

New problem:


i. What is the expected value of the variable c in the following snippet of code?

Code:

c=0
a=0
while (a!=0xffffffff)   # loop until all 32 bits in 'a' are 1
    i=random(0,32)      # get a random number between 0 and 31
    a=a|(1<<i)          # set the i'th bit from right in a 32 bit integer 'a'
    c=c+1               # increment c


ii. If 'a' is a n bit integer, what is the expected value of c till all n bits are set?


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

#346 2014-01-17 19:57:44

bobbym
Administrator

Offline

Re: Probability problem.

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.
 

#347 2014-01-17 20:01:01

gAr
Star Member

Online

Re: Probability problem.

Hi bobbym,

Okay.


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

#348 2014-01-17 20:10:21

bobbym
Administrator

Offline

Re: Probability problem.

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.
 

#349 2014-01-17 20:39:43

gAr
Star Member

Online

Re: Probability problem.

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

#350 2014-01-17 22:30:18

gAr
Star Member

Online

Re: Probability problem.

A modified version of the previous problem:


iii. What is the expected value of the variable c in the following snippet of code?

Code:

c=0
a=0
while (a!=0xffffffff)   # loop until all 32 bits in 'a' are 1
    i=random(0,32)      # get a random number between 0 and 31
    a=a^(1<<i)          # toggle the i'th bit from right in a 32 bit integer 'a'
    c=c+1               # increment c


iv. If 'a' is a n bit integer, what is the expected value of c till all n bits are set?


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

Board footer

Powered by FluxBB