GolfHos
 
*
April 23, 2024, 05:41:07 AM
Username: Password: Duration:

[sm_scratch]

 
Pages: 1 2 [3] 4 5   Go Down
  Print  
Author Topic: [sm_scratch]  (Read 6478 times)
0 Members and 1 Lurker/Spider are viewing this topic.
Clive
Full Metal Jacket

Karma: 77
Posts: 4358
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #30 on: February 11, 2008, 10:48:47 AM »

Golfhos: sucking the fun out of everyday events since, I don't know, September-ish 2006.
Logged Return to Top
twoiron
Full Metal Jacket
From: The Drawing Room

Karma: 41
Posts: 4571
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #31 on: February 11, 2008, 12:48:18 PM »

Women, can't live 'em..... pass the beer nuts..
Logged Return to Top

"Nothing says sorry like a warm plate of bacon... or so I'm told"
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #32 on: February 11, 2008, 02:01:46 PM »

so I had a brief lull in work and sat down working on a program.  i'll post some stats in a minute.  I have no idea how good they are yet (didn't use a great random # generator, etc)  Shocked Shocked

just as an interesting effect from a debugging Wink run.....

if you run 100,000 300-pc bags, with the 1st 10 fixed (in order),  it only seems to happen additionally {beyond the fixed 1st 10 chain) in 12 bags on average (based on 5 runs) using the 6th-10th m+ms as seeds.  that's 12/100,000 with the 5pc seed to start the chain!  (in a 300 m+m bag!!!) , and not at all past that seeding.


this seems like it should be a staggeringly unlikely event in a small size bag  with a truly random distribution of pieces.
(as random intuition would seem to dictate)


Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #33 on: February 11, 2008, 02:12:17 PM »

so, main experiment:

initial conditions:
individual bag samples of 300 pieces each (theoretically averaging 50pcs/color) over many many bags with random distributions allowed

2,500,000 bags sampled in total

4b,1g,4b,1g  in that order... 
almost never happens-   6 instances counted out of the  2.5 M bags  (next step, write a flag to see if it ever happens more than 1x/bag.. too lazy this time around)    that is 0.00024%  or of course about 1/416,667 bags
 
blue avg/bag observed : 50.005
green avg/bag observed : 50.002



if you increase the bag size to 1000pcs it seems to happen a bit more frequently
(more detailed stats tomorrow, this is considerably slower to run)





interesting average probabilities of just getting a 4b1g  chain anywhere in a bag of 300 pieces: 0.0382988



 
Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #34 on: February 11, 2008, 02:25:41 PM »

with 500,000 1200-pc bags:
(3 run average)

green/bag:  200.0012
blue/bag:  199.9879


4b1g4b1g  chains: 4   (1/125,000 bags)
4x the pieces/bag, and only 3.33 times more likely the occurrence ?  i think i need a better random # generator, or more runs.
meh.


4b1g  chains:  0.153566   (4.04 times the # in the 300pc bag)

Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
Clive
Full Metal Jacket

Karma: 77
Posts: 4358
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #35 on: February 11, 2008, 02:31:05 PM »

Thanks for that.

Now Blader can die.
Logged Return to Top
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #36 on: February 11, 2008, 02:36:48 PM »

LOL.

cranking out 1 last big run for the day out of curiosity while I write a paper draft ...

2.5M bags of 1800 pieces each.
 Shocked
Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
Uisce Beatha
Amazing Technicolor Dreamcoat
From: In the Jar

Karma: 116
Posts: 7357
Offline Offline

Get me the tank!

View ProfileIgnore this user
Re: [sm_scratch]
« Reply #37 on: February 11, 2008, 02:58:24 PM »


Now Blader can die.

I'll pray for his immortal soul.
Logged Return to Top

"If you're darker than a caramel, Reverend Al speaks for you." - Aasif Mandvi
"Well, you can tell by the way I use my walk, I'm a woman's man: no time to talk." - stroh
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #38 on: February 11, 2008, 03:13:11 PM »

2.5M bags of 1800 pcs each.
(1 run only)


greens: 300.0040
blues:  300.0108


4b1g4b1g  chains/bag: .0000276   (or 1 per ever 36230  bags)
4b1g  chains/bag: 0.230666  (almost 1 per 4 bags ! )




Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
Uisce Beatha
Amazing Technicolor Dreamcoat
From: In the Jar

Karma: 116
Posts: 7357
Offline Offline

Get me the tank!

View ProfileIgnore this user
Re: [sm_scratch]
« Reply #39 on: February 11, 2008, 03:41:10 PM »

Unpossible.  We haven't consumed remotely close to 36230 bags.
Logged Return to Top

"If you're darker than a caramel, Reverend Al speaks for you." - Aasif Mandvi
"Well, you can tell by the way I use my walk, I'm a woman's man: no time to talk." - stroh
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #40 on: February 11, 2008, 03:45:20 PM »

decreasing the bag size to 50 pieces with 10,000,000 bags generates results of  1 occurrence per 1.25M bags of the 4b1g4b1g  chain.  Shocked
Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #41 on: February 11, 2008, 03:46:36 PM »

Unpossible.  We haven't consumed remotely close to 36230 bags.

Is it possible the color distribution in the bag is weighted towards  b+g ?
Is it possible my random # generator being used sucks ?
Is it possible you're very lucky?
 Smiley

Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
Uisce Beatha
Amazing Technicolor Dreamcoat
From: In the Jar

Karma: 116
Posts: 7357
Offline Offline

Get me the tank!

View ProfileIgnore this user
Re: [sm_scratch]
« Reply #42 on: February 11, 2008, 03:50:10 PM »

Logged Return to Top

"If you're darker than a caramel, Reverend Al speaks for you." - Aasif Mandvi
"Well, you can tell by the way I use my walk, I'm a woman's man: no time to talk." - stroh
Aske
Lederhosen

Karma: 120
Posts: 31405
Offline Offline


View ProfileIgnore this user
Re: [sm_scratch]
« Reply #43 on: February 11, 2008, 03:50:49 PM »

Unpossible.  We haven't consumed remotely close to 36230 bags.

further, it doesn't mean you need to eat 36320 to get 1 occurrence.  it means if you want to get say 100 occurences , on average, over time,  you'd need to eat 100* 36230  bags  (+/-  some variance)
Logged Return to Top

Quote
Russia has invaded a sovereign neighboring state and threatens a democratic government elected by its people. Such an action is unacceptable in the 21st century.
--  Chimpy McFlightsuit, CEO of Bu$hco Industries of 'Merka
tdcoly
Tartan Jacket
From: The home of misfits, renegades, blowhards, idiots and fools.

Karma: 10
Posts: 1279
Offline Offline

Us Dags

View ProfileIgnore this user
Re: [sm_scratch]
« Reply #44 on: February 11, 2008, 03:51:21 PM »

Unpossible.  We haven't consumed remotely close to 36230 bags.

Is it possible the color distribution in the bag is weighted towards  b+g ?
Is it possible my random # generator being used sucks ?
Is it possible you're very lucky?
 Smiley



Looks like somebody has way too much time on his hands. Grin
Logged Return to Top

"I'm only speeding 'cause I really have to poop"-as seen on a bumper sticker
Pages: 1 2 [3] 4 5   Return to Top
  Print  
 
Jump to:  

Related Posts
Nick Faldo....
[sm_scratch] [sm_scratch] [sm_scratch] [sm_scratch]
by stroh

What song are you listening to at this minute?
I just wanna know, what's wrong with Glenn Miller? [sm_scratch] [sm_scratch
by Seamus

Hey TFT.....

by stroh

Why come you got no tattoo?
[sm_scratch] [sm_scratch]
by MFAWG

 


 
  Powered by SMF | SMF © 2001-2009, Lewis Media

Dilber MC Theme by HarzeM