Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

_@_______

Name: Anonymous 2007-09-14 9:38 ID:26iR3rAD

we have a drunk person, who is standing one step away from falling from the cliff


       _@_______
      |

@ is person


probability of him making a step left (towards cliff) is p; right - q=1-p. He's one step away, so one step left and he dies.

for any p find the probability of him dying after n steps

This is not homework, I already did this with perl
#!/usr/bin/perl
use strict;
my $steps=eval shift or die;

sub step($$){
    my($loc,$left)=@_;
    return
        step(($loc or return 1)-1,($left or return 0)-1)*$_+
        step($loc+1,$left-1)*(1-$_);
}

printf "%.2f\t%s\n",$_,step 1,$steps foreach map{$_/100}0..100;

Name: Anonymous 2007-09-14 9:41 ID:Heaven

learn to bbcode

_
@_______
|

@ is person

Name: Anonymous 2007-09-14 9:48 ID:26iR3rAD

who the fuck cares about bbcode, this man is going to die, and only your SICP can save him

Name: Anonymous 2007-09-14 9:50 ID:Heaven

Okay, wait.

`p' is what?

q = 1 - p
right = right - q
?
wtf.

Nope, i don't know perl.

better explanazionz?

Name: Anonymous 2007-09-14 10:11 ID:q+NIDKrY

>>1
Learn to gambler's ruin

Name: Anonymous 2007-09-14 10:47 ID:Heaven

or you could just calculate it

Name: Anonymous 2007-09-14 11:01 ID:26iR3rAD

p is probability
he either goes left, or goes right
p*100% left, (1-p)*100% right

Name: Anonymous 2007-09-14 11:05 ID:Heaven

>>7
p is WHAT
WHAT THE FUCK IS PROBABILITY
isnt it 50-50
suppose p = 50

50 * 100% = 50
(1 - p) * 100% = -49
ugh. what hte fuck

Name: Anonymous 2007-09-14 11:36 ID:26iR3rAD

>>8
Do you like dicks?

Name: Anonymous 2007-09-14 11:38 ID:XQNfXP+D

>>8
This is what happens when you post /prog/ at reddit.

Name: Anonymous 2007-09-14 12:12 ID:Q0LE9lIe

OP here! Personally, I'd never use Binom(p,n), cause I'm stupid.

Name: Anonymous 2007-09-16 2:44 ID:RQxQOVB2

>>11
OP here
binom does not work here

Name: Anonymous 2007-09-16 4:58 ID:oUlksY0l

>>11
>>12
FUCKING FAIL FOR NOT KNOWING ABOUT ID

Name: Anonymous 2007-09-16 5:55 ID:yObHAcvo

>>13
Disregard that, I suck cocks!

Name: Anonymous 2007-09-16 6:43 ID:igxit8FB

>>13
Fail for not realizing that:
1) OP could be on a different machine in which >>12 posted
2) Dynamic IPs can cause different post IDs
3) faggot
4) other

Name: Anonymous 2007-09-16 6:59 ID:Heaven

>>11-15
Same person.

Name: Anonymous 2007-09-16 7:07 ID:4dyxLz58

p + qpp + qqpppp + qqqpppppp + ...

if he moves left, he dies. for every move right, he has to move left twice to die. what am i missing here? i did consider the case where he moves right twice, then left then right again, but i figured that the sequence would have every combination within the terms. no idea.

Name: Anonymous 2007-09-16 8:17 ID:RQxQOVB2

>>17
>but i figured that the sequence would have every combination within the terms

You you have to multiply every qqppp by some value

Name: Anonymous 2007-09-16 8:27 ID:Heaven

i require mathematical deduction of the probability, in terms of p and q.

Name: Anonymous 2010-12-17 1:18

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2011-01-31 20:08

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List