_@_______
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;
2
Name:
Anonymous
2007-09-14 9:41
ID:Heaven
learn to bbcode
_@_______
|
@ is person
3
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
4
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?
5
Name:
Anonymous
2007-09-14 10:11
ID:q+NIDKrY
>>1
Learn to gambler's ruin
6
Name:
Anonymous
2007-09-14 10:47
ID:Heaven
or you could just calculate it
7
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
8
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
9
Name:
Anonymous
2007-09-14 11:36
ID:26iR3rAD
10
Name:
Anonymous
2007-09-14 11:38
ID:XQNfXP+D
>>8
This is what happens when you post /prog/ at reddit.
11
Name:
Anonymous
2007-09-14 12:12
ID:Q0LE9lIe
OP here! Personally, I'd never use Binom(p,n), cause I'm stupid.
12
Name:
Anonymous
2007-09-16 2:44
ID:RQxQOVB2
>>11
OP here
binom does not work here
13
Name:
Anonymous
2007-09-16 4:58
ID:oUlksY0l
>>11
>>12
FUCKING FAIL FOR NOT KNOWING ABOUT ID
14
Name:
Anonymous
2007-09-16 5:55
ID:yObHAcvo
>>13
Disregard that, I suck cocks!
15
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
16
Name:
Anonymous
2007-09-16 6:59
ID:Heaven
17
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.
18
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
19
Name:
Anonymous
2007-09-16 8:27
ID:Heaven
i require mathematical deduction of the probability, in terms of p and q.
21
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!
22
Name:
Anonymous
2011-01-31 20:08
<-- check em dubz