Professional Documents
Culture Documents
There are 10 different colors that can be used for creating paintings. Each
painting is made on a square canvas which is divided into two halves, “left” and
“right”, with each half filled with a color, as shown in the figure. There should be
two colors used for each painting.
Let us say there are x number of paintings that are to be made using these 10 colors.
Any two paintings need not be unique.
1) Scenario 1: The 10 colors are equally distributed in all the x paintings. Example, if x
= 1000, that is, there are 1000 paintings, then each of the 10 colors are used equally
and therefore each color is present in 200 paintings.
A painting is chosen at random and a person guesses which two colors were
used on the “left” and “right” side of the painting.
User Input:
Left color =
Right color =
a) What is the probability that both the colors are chosen correctly and their order
(left, right) is also correct.
b) What is the probability that both the colors are chosen correctly but their order
(left, right) is incorrect. (“left” color is chosen for “right” and “right” color is chosen
for “left”)
c) What is the probability that both the colors are chosen incorrectly
d) What is the probability that the “left” color is chosen correctly and in correct order
(“left” color is chosen for “left”) and the right color is incorrect
e) What is the probability that the “left” color is chosen correctly but in incorrect
order (“left” color is chosen for “right”) and the right color is incorrect
f) What is the probability that the “right” color is chosen correctly and in correct
order (“right” color is chosen for “right”) and the left color is incorrect
g) What is the probability that the “right” color is chosen correctly but in incorrect
order (“right” color is chosen for “left”) and the left color is incorrect
The solution for the probability should have all the 10 parameters and they should be
adjustable. Example, as I set the “% of color 1” to 20% and “% of color 2” to 30%, my
solutions should change.
All 10 colors must be used for the paintings, so each color should be present in
at least 1 painting.
a) What is the probability that both the colors are chosen correctly and their order
(left, right) is also correct.
b) What is the probability that both the colors are chosen correctly but their order
(left, right) is incorrect. (“left” color is chosen for “right” and “right” color is chosen
for “left”)
c) What is the probability that both the colors are chosen incorrectly
d) What is the probability that the “left” color is chosen correctly and in correct order
(“left” color is chosen for “left”) and the right color is incorrect
e) What is the probability that the “left” color is chosen correctly but in incorrect
order (“left” color is chosen for “right”) and the right color is incorrect
f) What is the probability that the “right” color is chosen correctly and in correct
order (“right” color is chosen for “right”) and the left color is incorrect
g) What is the probability that the “right” color is chosen correctly but in incorrect
order (“right” color is chosen for “left”) and the left color is incorrect