# problem with calculation of probability

Page 1 of 1

## 3 Replies - 895 Views - Last Post: 07 December 2009 - 10:28 AM

### #1 KoenM

• New D.I.C Head

Reputation: -4
• Posts: 41
• Joined: 07-December 09

# problem with calculation of probability

Posted 07 December 2009 - 09:08 AM

Hey,

I have got a problem concerning calculation of probability.
Here it is:
I have got 6 dices.
Off course the change of throwing 1 with a single dice is 1/6, just like every number.
When I throw 6 dices, I know there are 6^6=46656 possibilities.
I know that some of these possibilities are in it more than once, but that doesn't matter.
The lowest total I can get is 6*1=6, the highest is 6*6=36.
Now what I need to know is how to calculate:
the change of throwing a total of 6 (1/46656 off course)
the change of throwing a total of 7
the change of throwing a total of 8
...
...
...
the change of throwing a total of 36 (1/46656 off course)

If someone could tell me how to calculate all of this in a simple way,
that would be highly appreciated.

Is This A Good Question/Topic? 0

## Replies To: problem with calculation of probability

### #2 Anarion

• The Persian Coder

Reputation: 387
• Posts: 1,663
• Joined: 16-May 09

## Re: problem with calculation of probability

Posted 07 December 2009 - 09:31 AM

This is math problem, not a programming problem and you have to show your code before we help, it's the policy of D.I.C.
***
the change of throwing a total of 7, just make the cases, it is like the following:
(select one dice from 6)*(1/6) -> the chance for having one dice with a value of 2
(select five dices from 5)*(1/6)^5 -> the chance for having 5 dices with value of 1
...
this was just an example for how to solve this, for the code, we cannot write it for you, you have to find the way to write it.

This post has been edited by Anarion: 07 December 2009 - 09:43 AM

### #3 KoenM

• New D.I.C Head

Reputation: -4
• Posts: 41
• Joined: 07-December 09

## Re: problem with calculation of probability

Posted 07 December 2009 - 10:21 AM

Anarion, on 7 Dec, 2009 - 08:31 AM, said:

This is math problem, not a programming problem and you have to show your code before we help, it's the policy of D.I.C.
***
the change of throwing a total of 7, just make the cases, it is like the following:
(select one dice from 6)*(1/6) -> the chance for having one dice with a value of 2
(select five dices from 5)*(1/6)^5 -> the chance for having 5 dices with value of 1
...
this was just an example for how to solve this, for the code, we cannot write it for you, you have to find the way to write it.

I am sorry for putting this question in the wrong category.
It's just that I use this site for the first time today.
I am busy doing programming on C++, but first I need to solve this.
That's why the question is put into the C/C++-category.
Also I didn't ask for a code, I don't need someone to just give me the answer.
I only need to know how to calculate such possibilities.
Thanks anyway.

• Saucy!

Reputation: 6248
• Posts: 24,014
• Joined: 23-August 08

## Re: problem with calculation of probability

Posted 07 December 2009 - 10:28 AM

Moved to Student Campus