Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


This is awesome!
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Sun Jan 20, 2008 7:34 am    Post subject: Reply with quote

Wait, how can 5/23 and 11/23 be right? Since it doesn't matter WHAT unknown stone you pick, the probability of picking one is 12/23 EVERY SINGLE TIME. And the probability of picking a diamond and a ruby right after each other are their probabilities multiplied together. So as blland stated, the probability for C is 30/529 Smile
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Jan 20, 2008 7:44 am    Post subject: Reply with quote

vegito616 wrote:
Wait, how can 5/23 and 11/23 be right? Since it doesn't matter WHAT unknown stone you pick, the probability of picking one is 12/23 EVERY SINGLE TIME. And the probability of picking a diamond and a ruby right after each other are their probabilities multiplied together. So as blland stated, the probability for C is 30/529 Smile

PICK ONE STONE AND THEN PUT IT BACK BEFORE U TAKE THE NEXT ONE.
DO U NEED A FUCKING MANUAL OR SOMETHING?

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Jan 20, 2008 7:49 am    Post subject: Reply with quote

Umm isn't the probability always 1? You didn't say how much times they can pick it up, so they just keep picking one, putting it back and so on unless you forgot to say how much they were allowed to take.
_________________
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Jan 20, 2008 7:59 am    Post subject: Reply with quote

Blader wrote:
Umm isn't the probability always 1? You didn't say how much times they can pick it up, so they just keep picking one, putting it back and so on unless you forgot to say how much they were allowed to take.

Oh.. well .)
I kind of missed that :]

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Jan 20, 2008 8:00 am    Post subject: Reply with quote

So I win? Laughing
Btw, why is this in general programming? o.o

_________________
Back to top
View user's profile Send private message
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Sun Jan 20, 2008 8:20 am    Post subject: Reply with quote

Use your fucking brain, its simple probability. The chance of drawing A single unknown stone is not 1/23 because there are 12 unknown stones in there. So the chance of drawing an unknown stone is 12/23. Its as if you have a spinner, with two red sections, two green sections, and two yellow sections. If you spin the spinner you have a 2/6 or 1/3 chance of landing on the red. And since I am assuming each of these events are independent of each other(since you never said choosing the unknown stones consecutively) each chance of drawing an unknown stone is 12/23. And since I am assuming you meant to choose the diamond and ruby consecutively, you multiply the chances of drawing each, resulting in 30/529
Back to top
View user's profile Send private message
Blader
I post too much
Reputation: 2

Joined: 19 Jan 2007
Posts: 2049

PostPosted: Sun Jan 20, 2008 8:26 am    Post subject: Reply with quote

Oh wait, I just read it again, I forgot something
The probability for all of them is 0, because you can't draw more than 1 stone at a time Rolling Eyes
You should really edit it, since there are many flaws...

_________________
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Sun Jan 20, 2008 8:35 am    Post subject: Reply with quote

the answer is always 42

*ducks*

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Jan 20, 2008 8:36 am    Post subject: Reply with quote

vegito616 wrote:
Use your fucking brain, its simple probability. The chance of drawing A single unknown stone is not 1/23 because there are 12 unknown stones in there. So the chance of drawing an unknown stone is 12/23. Its as if you have a spinner, with two red sections, two green sections, and two yellow sections. If you spin the spinner you have a 2/6 or 1/3 chance of landing on the red. And since I am assuming each of these events are independent of each other(since you never said choosing the unknown stones consecutively) each chance of drawing an unknown stone is 12/23. And since I am assuming you meant to choose the diamond and ruby consecutively, you multiply the chances of drawing each, resulting in 30/529

No i failed.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Jan 20, 2008 9:41 am    Post subject: Reply with quote

You haven't fully specified the parameters for your question so it's not solvable. You could be describing a random variables, let's call it X, Y and Z that are of a binomial distribution:

ie. X = Number of diamonds picked
Y = Number of rubies picked
Z = Number of unknown stones picked

Therefore since these would be of a binomial distribution:

X ~ B(n,5/23)
Y ~ B(n,6/23)
Z ~ B(n,12/23)

But you haven't told us what n is (ie. number of trials).

If you were trying to find a solution for something like P(X=3), then you would go about it like this:

nC3 * (5/23)^3 * (1 - 5/23)^20

The reason being that finding the probability of a certain outcome in a binomial distribution is of this form:

X ~ B(n,p)
P(X=x) = nCx * p^x * (1-p)^(n-x)

However you could very well be badly describing a Poisson distribution too..

k, I'll stop but you should get the idea.
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sun Jan 20, 2008 9:50 am    Post subject: Reply with quote

Could you stop posting sometime?
I made a mistake, ok?.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Sun Jan 20, 2008 9:53 am    Post subject: Reply with quote

but thread starter says that it's easy level and implies the message "nobody needs a manual"... so I think n for your number of trials is "as many times as he implies".

k, I'll stop but you should get the idea.

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Jan 20, 2008 10:32 am    Post subject: Reply with quote

n must be a finite number, furthermore if it is 'large', you shouldn't be using a binomial distribution, but rather approximating it to something like a normal or poisson distribution.
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Mon Jan 21, 2008 10:02 pm    Post subject: Reply with quote

He make a mistake, but 2nd one answer is 100%.

You have stolen a sack of rare stones from santa.
Question :
B]
2 rare ones

If the sack is of rare stones, the posibility of get rare ones is 100%, since alls are rare ones.

O yeah, Blader is right, he did'nt say the amount of time to pick up, so each answer would be 0/23 / 0/46.

_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites