| 
April 8th, 2008, 01:02 PM
| | Member | | Join Date: Feb 2008
Posts: 181
Country: Thanks: 49
Thanked 41 Times in 40 Posts
| | Please help with basic issues Hi, all.
I took single-variable calc in high school, and will be moving on to multi-variable calc (calc 3) this summer at the community college. However, it surprises me that in all of this we have not yet nor will we discuss probability theory. The only probability I learned was very basic stuff from grade school algebra. About the only thing I remember is that the probability of  events happening given  instances, with each event having an individual probability of  , is  . That's pretty much all I have to go on.
That said, I came across a random problem which I think I've solved, but which I'd like someone to explain to me in more proper, formal language...
Suppose you have a die with  sides, and you roll it again and again, until you roll a certain single-number result (e.g. roll a six-sided die until you get a 4). Then you repeat the experiment ad nauseum. Out of the multiple experiments, what is the average number of rolls it will take for you to get that certain result?
My solution is as follows:
Step one: The probability  of rolling an undesired result  times in a row is  .
Step two (*this is the step with which I need the most help*): To get an average number of throws, we must let  . I know this intuitively, but how do I show it on paper?
Remaining steps:
Thus,  is the average number of throws.
First, is my conclusion correct? If so, can someone please help me understand the steps?
Thanks! | 
April 8th, 2008, 08:16 PM
|  | Flow Master | | Join Date: Dec 2007 Location: Zeitgeist
Posts: 12,237
Country: Thanks: 2,574
Thanked 4,761 Times in 4,193 Posts
| | Quote:
Originally Posted by hatsoff Hi, all.
I took single-variable calc in high school, and will be moving on to multi-variable calc (calc 3) this summer at the community college. However, it surprises me that in all of this we have not yet nor will we discuss probability theory. The only probability I learned was very basic stuff from grade school algebra. About the only thing I remember is that the probability of  events happening given  instances, with each event having an individual probability of  , is  . That's pretty much all I have to go on.
That said, I came across a random problem which I think I've solved, but which I'd like someone to explain to me in more proper, formal language...
Suppose you have a die with  sides, and you roll it again and again, until you roll a certain single-number result (e.g. roll a six-sided die until you get a 4). Then you repeat the experiment ad nauseum. Out of the multiple experiments, what is the average number of rolls it will take for you to get that certain result?
My solution is as follows:
Step one: The probability  of rolling an undesired result  times in a row is  .
Step two (*this is the step with which I need the most help*): To get an average number of throws, we must let  . I know this intuitively, but how do I show it on paper?
Remaining steps:
Thus,  is the average number of throws.
First, is my conclusion correct? If so, can someone please help me understand the steps?
Thanks! | You want the expected value of a random varibale that follows a geometric distribution: Geometric distribution - Wikipedia, the free encyclopedia
__________________ There are two things you should never try to prove: the impossible and the obvious. The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low and achieving our mark. (Michelangelo Buonarroti) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
| | The following users thank mr fantastic for this useful post: | |  | 
April 14th, 2008, 06:36 AM
| | Member | | Join Date: Feb 2008
Posts: 181
Country: Thanks: 49
Thanked 41 Times in 40 Posts
| | Quote:
Originally Posted by mr fantastic | That's helpful, but still perplexing. Wikipedia gives this formula:
Yet my answer is:
IE, the numerator and denominators are reversed in mine and wikipedia's. I'm not sure what the problem is, here, and I still don't know how to prove step #2 in my OP. | 
April 14th, 2008, 07:59 AM
|  | Grand Panjandrum | | Join Date: Nov 2005 Location: South of England
Posts: 11,379
Country: Thanks: 667
Thanked 3,619 Times in 2,916 Posts
| | Quote:
Originally Posted by hatsoff Hi, all.
I took single-variable calc in high school, and will be moving on to multi-variable calc (calc 3) this summer at the community college. However, it surprises me that in all of this we have not yet nor will we discuss probability theory. The only probability I learned was very basic stuff from grade school algebra. About the only thing I remember is that the probability of  events happening given  instances, with each event having an individual probability of  , is  . That's pretty much all I have to go on.
That said, I came across a random problem which I think I've solved, but which I'd like someone to explain to me in more proper, formal language...
Suppose you have a die with  sides, and you roll it again and again, until you roll a certain single-number result (e.g. roll a six-sided die until you get a 4). Then you repeat the experiment ad nauseum. Out of the multiple experiments, what is the average number of rolls it will take for you to get that certain result?
My solution is as follows:
Step one: The probability  of rolling an undesired result  times in a row is  .
Step two (*this is the step with which I need the most help*): To get an average number of throws, we must let  . I know this intuitively, but how do I show it on paper?
Remaining steps:
Thus,  is the average number of throws.
First, is my conclusion correct? If so, can someone please help me understand the steps?
Thanks! | The average number of rolls to get a specified result is:
where  is the probability of getting the desired result for the forst time on the  'th roll, and  the probability of getting the desired result on a single roll.
That your result is not right can be seen by evaluating it for some value of  .
RonL
__________________ Truth does not change because it is, or is not, believed by a majority of the people.
Giordano Bruno | | The following users thank CaptainBlack for this useful post: | |  | 
April 14th, 2008, 08:02 AM
|  | Grand Panjandrum | | Join Date: Nov 2005 Location: South of England
Posts: 11,379
Country: Thanks: 667
Thanked 3,619 Times in 2,916 Posts
| | Quote:
Originally Posted by hatsoff That's helpful, but still perplexing. Wikipedia gives this formula:
Yet my answer is:
IE, the numerator and denominators are reversed in mine and wikipedia's. I'm not sure what the problem is, here, and I still don't know how to prove step #2 in my OP. | Because step 2 in your post is pulled out of the air, and is not relevant.
You might know it intuitivly, but its still wrong.
RonL
__________________ Truth does not change because it is, or is not, believed by a majority of the people.
Giordano Bruno | 
April 14th, 2008, 08:19 AM
| | Member | | Join Date: Feb 2008
Posts: 181
Country: Thanks: 49
Thanked 41 Times in 40 Posts
| | Quote:
Originally Posted by CaptainBlack The average number of rolls to get a specified result is:
where  is the probability of getting the desired result for the forst time on the  'th roll, and  the probability of getting the desired result on a single roll.
That your result is not right can be seen by evaluating it for some value of  .
RonL | So, let's say we use a six-sided die as an example, such that
Then:
So:
That's as far as I can go at my current level. Would you mind finishing the solution, so I can compare it to my natural log equation? | 
April 14th, 2008, 09:34 AM
| | Member | | Join Date: Feb 2008
Posts: 181
Country: Thanks: 49
Thanked 41 Times in 40 Posts
| | Quote:
Originally Posted by CaptainBlack Because step 2 in your post is pulled out of the air, and is not relevant.
You might know it intuitivly, but its still wrong.
RonL | This isn't rigorous, I know, but here is my thinking...
If  throws of a die with  sides does not yield the target result, then the probability  of that happening is  . Now, if we only throw the die  times such that  , then we should not expect to have thrown the target result. However, if  , then we should expect to throw the target result, because we have less than a 50% chance of not doing so. If we repeat this an infinite number of times, it seems to me that the average value of  throws to reach the desired result should reflect the expected values for each complete trial.
Or so I have been thinking. | 
April 14th, 2008, 11:06 AM
|  | Grand Panjandrum | | Join Date: Nov 2005 Location: South of England
Posts: 11,379
Country: Thanks: 667
Thanked 3,619 Times in 2,916 Posts
| | Quote:
Originally Posted by CaptainBlack The average number of rolls to get a specified result is:
where  is the probability of getting the desired result for the forst time on the  'th roll, and  the probability of getting the desired result on a single roll.
That your result is not right can be seen by evaluating it for some value of  .
RonL | And of course we have:
Which we could deduce from more general principles but its nice to see the series summed anyway.
RonL
__________________ Truth does not change because it is, or is not, believed by a majority of the people.
Giordano Bruno | | The following users thank CaptainBlack for this useful post: | |  | 
April 14th, 2008, 11:41 AM
| | Member | | Join Date: Feb 2008
Posts: 181
Country: Thanks: 49
Thanked 41 Times in 40 Posts
| | Quote:
Originally Posted by CaptainBlack And of course we have:
Which we could deduce from more general principles but its nice to see the series summed anyway.
RonL | Thank you. This helps a great deal. I see clearly now that I was mistaken, and I see where and why. However, though I do not doubt your conclusion, neither do I understand how you reached it. I therefore have a couple more questions...
Firstly, how did you get from here:
to here:
? Also, would you be able to explain in newbie terms how you got this initial formula:
?
Thanks for all your help so far! | 
April 14th, 2008, 05:27 PM
| | Member | | Join Date: Feb 2008
Posts: 181
Country: Thanks: 49
Thanked 41 Times in 40 Posts
| | | 
April 14th, 2008, 05:34 PM
|  | Flow Master | | Join Date: Dec 2007 Location: Zeitgeist
Posts: 12,237
Country: Thanks: 2,574
Thanked 4,761 Times in 4,193 Posts
| | Quote:
Originally Posted by hatsoff Thank you. This helps a great deal. I see clearly now that I was mistaken, and I see where and why. However, though I do not doubt your conclusion, neither do I understand how you reached it. I therefore have a couple more questions...
Firstly, how did you get from here:
to here: 
[snip] |
where u = 1 - p. Note that |u| < 1.
----------------------------------------------------------------------
Interlude:
A standard result (the sum of an infinite geometric series):  .
If you differentiate both sides of this result with respect to u:  .
End interlude.
-----------------------------------------------------------------------
Therefore  . Quote:
Originally Posted by hatsoff [snip]
Also, would you be able to explain in newbie terms how you got this initial formula: 
[snip] | By definition, the expected value of a function f(r) is  . You're interested in the expected value of r, the number of rolls. Therefore ......
__________________ There are two things you should never try to prove: the impossible and the obvious. The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low and achieving our mark. (Michelangelo Buonarroti) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
| | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 09:58 PM. | | |