A Maths lesson please!

Technology, computers, sciences, mysteries and phenomena of all kinds, etc., etc. all here at The Loresraat!!

Moderator: Vraith

Post Reply
User avatar
peter
The Gap Into Spam
Posts: 12210
Joined: Tue Aug 25, 2009 10:08 am
Location: Another time. Another place.
Has thanked: 1 time
Been thanked: 10 times

A Maths lesson please!

Post by peter »

Where am I going wrong here.

If we asign a value of 1 to an event that will happen and 0 to an event that will not happen, then the probability of any event happening or not will be somewhere between 1 and 0.

If good six sided dice is thrown once, the probability of throwing a six is 1/6.

Thrown twice, the probability of getting a six in one of the throws is 2/6 ie. 1/6 + 1/6.

Thrown six times, the probability of throwing a six in one of the throws is 6/6 which equals 1.

1 is the probability of an event that will happen, so if I throw a good dice six times I will throw a six in one of the throws

What has gone wrong here (I bet I'm going to look stupid here :oops: )


Also, can anybody tell me if there is a set way of working out the probabilities of random events - say getting knocked over by a bus or looking out of the window and seeing a parrot fly past etc. (You do see these odd sorts of probabilities in the press sometimes so it must be possible, but I'm guessing it's really hard to do.)
President of Peace? You fucking idiots!

"I know what America is. America is a thing that you can move very easily. Move it in the right direction. They won't get in the way." (Benjamin Netenyahu 2001.)

....and the glory of the world becomes less than it was....
'Have we not served you well'
'Of course - you know you have.'
'Then let it end.'

We are the Bloodguard
User avatar
Menolly
A Lowly Harper
Posts: 24184
Joined: Thu May 19, 2005 12:29 am
Location: Harper Hall, Fort Hold, Northern Continent, Pern...
Has thanked: 1 time
Been thanked: 15 times
Contact:

Re: A Maths lesson please!

Post by Menolly »

peter wrote:Thrown twice, the probability of getting a six in one of the throws is 2/6 ie. 1/6 + 1/6.
A quick answer from hyperception:

Each throw is considered an independent event.

The probability of a six coming up once is 1/6. The probability of it not coming up is 5/6. After two throws, the probability of getting both sixes is (1/6)^2, but the probability of neither throw being a six is (5/6)^2 or 25/36.

As far as random events are concerned, one would have to know, for example, how many people were looking out windows for what fraction of time versus how many parrots were flying in the vicinity. The numbers that you see in the press are opaque and generally not verifiable. You can ignore them.
Image
User avatar
I'm Murrin
Are you?
Posts: 15840
Joined: Tue Apr 08, 2003 1:09 pm
Location: North East, UK
Contact:

Post by I'm Murrin »

Indeed, your working should be thinking of it as P = 1 - NP, where NP = (5/6^n), n being the number of throws.

When you just want the chance of at least one roll being a six, it's the inverse of the chance of none of them being a six.

Each potential combination of rolls is defined by multiplying the chances on each roll, and you sum together all the probabilities for all the combinations you want (i.e., the chance of only one six (not 0, 2, or 3) in three rolls would be 1/6*5/6*5/6 + 5/6*1/6*5/6 + 5/6*5/6*1/6). In this case you want the chance of any sixes at all, which is all possible combinations (the sum of which is 1) minus the one combination where you get no sixes.
User avatar
wayfriend
.
Posts: 20957
Joined: Wed Apr 21, 2004 12:34 am
Has thanked: 2 times
Been thanked: 6 times

Post by wayfriend »

Yep. You multiply probabilities, not add them.

Otherwise, rolling the dice 7 times would have a 1.167 probability of getting a six. Which is plainly invalid.

As for the probabilities of "random events" (busses, parrots, etc.) no one can tell you the probability unless they have some data and some assumptions, even if they are estimates.

For example, if we know the number of parrots per square mile, the percentage of time a parrot spends flying, assume a uniform distribution of flying parrots, and measure the area in which a flying parrot is visible from the window, you could come up with a probability of seeing a flying parrot out ones window.

And then you might discover other factors come into play - do parrots avoid windows? Would you notice a light blue parrot flying in the sky? Does approaching a window scare parrots into flight?

As you can see, that's a lot of data to gather.
.
User avatar
High Lord Tolkien
Excommunicated Member of THOOLAH
Posts: 7393
Joined: Tue Oct 19, 2004 2:40 am
Location: Cape Cod, Mass
Been thanked: 3 times
Contact:

Re: A Maths lesson please!

Post by High Lord Tolkien »

Menolly wrote:
peter wrote:Thrown twice, the probability of getting a six in one of the throws is 2/6 ie. 1/6 + 1/6.
A quick answer from hyperception:

Each throw is considered an independent event.
Yep.
Took me a while to figure this one out too.
I was told once that the chances of something (skipping the details here) bad happening during my wife's pregnancy was 1 in 5,000 and I was freaking out because at this hospital they do around 5000 pregnancies a year. I was thinking that it was definitely going to happen to one mother that year....
https://thoolah.blogspot.com/

[Defeated by a gizmo from Batman's utility belt]
Joker: I swear by all that's funny never to be taken in by that unconstitutional device again!


Image Image Image Image
User avatar
DukkhaWaynhim
The Gap Into Spam
Posts: 9195
Joined: Thu Nov 13, 2003 8:35 pm
Location: Deep in thought

Post by DukkhaWaynhim »

Murrin's equation is correct.

Probability is not certainty. It is a measurement of likelihood, so no numerical representation of a die throw, or any random event, should ever be 0 or 1, unless you are foxing the randomness somehow.

Each time you throw the die, you have a 1/6 chance of rolling a 6. Rolling a certain large # of times increases the calculated overall probability that at least one of those throws will be a six, but you can never be 100% certain that X throws will result in a six. This is true no matter how many times you throw the die.

dw
"God is real, unless declared integer." - Unknown
Image
User avatar
Fist and Faith
Magister Vitae
Posts: 25476
Joined: Sun Dec 01, 2002 8:14 pm
Has thanked: 9 times
Been thanked: 57 times

Post by Fist and Faith »

Peter, there's a very nice, visual explanation here:
www.edcollins.com/backgammon/diceprob.htm
The odds of rolling a 1 on either either of the throws is 11 out of 36, or 30.5%.

The chance of getting a 1 if you rolled it six times is 31,031 out of 46,656, or 66.51%.

It's an odd thing, eh? You can roll a thousand dice at once, and you might not get a 1 on any of them. Unlikely, but the possibility is not 0.

And the chances of two people in a random group of 8 having the same birthday is based on the fact that there are 28 different pairings.

And an infinite number of monkeys typing on an infinite number of computers forever might NOT ever type the complete works of Shakespeare. Heck, it's possible they'd all type "e" forever. Or maybe they'd never type "e".
All lies and jest
Still a man hears what he wants to hear
And disregards the rest
-Paul Simon

Image
User avatar
Orlion
The Gap Into Spam
Posts: 6666
Joined: Sun Aug 26, 2007 12:30 am
Location: Getting there...
Been thanked: 1 time

Post by Orlion »

Odd, I thought if you managed to throw the dice an infinite number of times, you would get a six, guaranteed (provided certain assumptions about the dice... like it having a six). You now, kinda a limit thing. As x approaches infinity, f(x) [in this case 1/x] approaches zero.

I say this because I read in a Scientific American once that the idea about multiple universes is that with random infinite number of universes, you'd get all the possibilities. For example, life developing on Earth may have had a 1/10^100000000000000...... chance, but if there's an infinite number of universes, it will happen. Hell, it'll happen an infinite amount of times! It'll just be infinitely smaller than the infinite amount of times life didn't develop on Earth.

I was hoping to fit more infinites in there...
'Tis dream to think that Reason can
Govern the reasoning creature, man.
- Herman Melville

I am Lazarus, come from the dead,
Come back to tell you all, I shall tell you all!

"All creation is a huge, ornate, imaginary, and unintended fiction; if it could be deciphered it would yield a single shocking word."
-John Crowley
User avatar
Vraith
The Gap Into Spam
Posts: 10623
Joined: Fri Nov 21, 2008 8:03 pm
Location: everywhere, all the time
Been thanked: 3 times

Post by Vraith »

Orlion wrote:Odd, I thought if you managed to throw the dice an infinite number of times, you would get a six, guaranteed (provided certain assumptions about the dice... like it having a six). You now, kinda a limit thing. As x approaches infinity, f(x) [in this case 1/x] approaches zero.

I say this because I read in a Scientific American once that the idea about multiple universes is that with random infinite number of universes, you'd get all the possibilities. For example, life developing on Earth may have had a 1/10^100000000000000...... chance, but if there's an infinite number of universes, it will happen. Hell, it'll happen an infinite amount of times! It'll just be infinitely smaller than the infinite amount of times life didn't develop on Earth.

I was hoping to fit more infinites in there...
heh...the odds approach zero, but I believe they never actually reach zero...and it goes in both directions, I think...there is also a non-zero chance that every toss would be a 6.

The thing is, though, as a practical matter I doubt either can ever really happen. Because the math is pure and assumes "All other things being equal." In the real world all other things are not equal.

On the universes, the Odds are that will happen a smaller infinity times...but a non-zero chance it will never happen [actually USED to be a non-zero...now it's happened, we rolled a 6!], and a non-zero it will happen every single time...but unlike dice, we don't actually know the odds of life in a universe. Maybe it is 1/1, every universe evolves it. Hell, maybe it's a billion over 1, every universe evolves life at least once, but a billion different times, on average.
[spoiler]Sig-man, Libtard, Stupid piece of shit. change your text color to brown. Mr. Reliable, bullshit-slinging liarFucker-user.[/spoiler]
the difference between evidence and sources: whether they come from the horse's mouth or a horse's ass.
"Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation."
the hyperbole is a beauty...for we are then allowed to say a little more than the truth...and language is more efficient when it goes beyond reality than when it stops short of it.
User avatar
Obi-Wan Nihilo
Pathetic
Posts: 6503
Joined: Thu Feb 04, 2010 3:37 pm
Has thanked: 6 times
Been thanked: 4 times

Post by Obi-Wan Nihilo »

I think a lot of these apparently probabilistic scenarios like throwing dice ad infinitum are actually more deterministic than a simplistic abstraction would suggest. In fact it is difficult to imagine purely probabilistic events apart from, say, quantum physics.
Image

The catholic church is the largest pro-pedophillia group in the world, and every member of it is guilty of supporting the rape of children, the ensuing protection of the rapists, and the continuing suffering of the victims.
User avatar
peter
The Gap Into Spam
Posts: 12210
Joined: Tue Aug 25, 2009 10:08 am
Location: Another time. Another place.
Has thanked: 1 time
Been thanked: 10 times

Post by peter »

Thanks guys. I think I'm getting where I was going wrong (not absolutely sure since I did read somewhere that all events could be placed on a probability gradient of 1 (ie they happen) to 0 (ie they don't). Clearly from fist's post the probability of getting the 6 at one throw is going to be 66.whatever up toward the 1 end if the scale (.66ish? - I would have thought it would have been more, but there you have it). My mistake is clearly that the probabilities of individual events are not additive in the way I supposed. Oh well - back to the drawing board I guess :lol:

Tell me is probability a branch of statistics though. I heard the following funny little story on the misleading nature of stats the other day (hope I can get it right!) and if probability sits inside this discipline I doubt I'll ever get a handle on it.

There is a fatal genetic condition that affects one in a thousand people and a test is developed that is 99% accurate in diagnosing it. A guy goes for the test and gets a positive result and naturally is down in the dumps. The doctor reassures him and the guy remonstrates "But I'm going to die! A 99% accurate test has shown me to have the condition".
"Well" says the Doc, "Lets have a look at that". "If I test 1000 people, one of which is likely to have this condition, the 99% accuracy of the test means that I will get ten false positives plus the one true positive ie one false for each 100 people tested. Therefor even with a 99% accurate test your chances of developing the condition are actually only 1 in 11. I'd gamble on those odds."

The moral of this story is 'Never forget the base line - thats where the real import lies'.

This seems on the face to be a trivial little story, but on one occasion a good friend of mine was told on the basis of an early blood test that there was a forty% chance the baby she was carrying was Down's syndrome. She was offered an immediate termination or the choice to wait untill the definative test for Down's, an amniocentesis, could be carried out in a few weeks time. It was not my place to influence her and she elected for the early termination, but she clearly had no understanding of what the forty% result might or might not have meant and I often wonder to this day what might have been the result if she had chosen to wait for the second, definative test.
President of Peace? You fucking idiots!

"I know what America is. America is a thing that you can move very easily. Move it in the right direction. They won't get in the way." (Benjamin Netenyahu 2001.)

....and the glory of the world becomes less than it was....
'Have we not served you well'
'Of course - you know you have.'
'Then let it end.'

We are the Bloodguard
User avatar
DukkhaWaynhim
The Gap Into Spam
Posts: 9195
Joined: Thu Nov 13, 2003 8:35 pm
Location: Deep in thought

Post by DukkhaWaynhim »

By its denotation, I believe that probability calculations are part of statistics as a course of study, but I personally think of probability as being derived from statistics, since probability is really being used to attempt to predict future statistics.
Statistics are measurements of actuals. Probability is a prediction of possibles to make statments of likelihood.

I am completely thrown by your doctor/genetic disease example, because as soon as I hear that the test is 99% accurate, I want to ask more about the test itself - when it fails, does it result in false positives, false negatives, or both? Plus, the statement that 1 in a 1000 develop the condition is a general statement of rarity, but until you are accurately diagnosed with the condition, you don't know whether you belong in the 999 or the 1. A statistic is a mathematical tool -- people in the world aren't walking around in discrete packs of 1000, where 1 in that crowd is always bearing that condition. You don't get to set your population, so a randomly chosen population *could* be 1000 people with that rare condition -- while that is highly unlikely, it is still possible.

dw
"God is real, unless declared integer." - Unknown
Image
User avatar
aTOMiC
Lord
Posts: 24972
Joined: Wed Sep 10, 2003 6:48 am
Location: Tampa, Florida
Has thanked: 19 times
Been thanked: 13 times
Contact:

Post by aTOMiC »

One thing to consider in these calculations it the "luck" factor which increases proportionally with the urgency of the situation.
For example if you roll a dice to decide which of six different locations you are considering for dinner the odds of you rolling the corresponding number that represents your favorite is fairly even.
In an example where the stakes are higher (a roll of a dice to determine whether you will receive a billion dollar tax free check delivered personally by the president) you have a one in one hundred billion chance of rolling the hoped for number.

I'm just sayin'.
"If you can't tell the difference, what difference does it make?"
Image

"There is tic and toc in atomic" - Neil Peart
User avatar
Avatar
Immanentizing The Eschaton
Posts: 62038
Joined: Mon Aug 02, 2004 9:17 am
Location: Johannesburg, South Africa
Has thanked: 25 times
Been thanked: 32 times
Contact:

Post by Avatar »

Yeah, it's part of statistics. At least, I studied it as part of the mandatory Statistical Methods class I had to take at uni.

(Man, did I hate that class. It was a requirement because I had to study research methodology for doing a case study for one of my majors.)

(I can't remember much about it any more though. One thing I've definitely never used. :lol: )

--A
Post Reply

Return to “The Loresraat”