Question

Using R, If you have 5 red marble, 4 green marble, and 8 yellow marble. If...

Using R, If you have 5 red marble, 4 green marble, and 8 yellow marble. If two marbles are selected randomly what is the probability that they match? What is the probability that a red pair is chosen?

Homework Answers

Answer #1

We can use choose function to calculate ncr.

#proability that two marbles match
# 5 red 4 green 8 yellow
#5C2
ans1 <- choose(5,2)
#4C2
ans2 <- choose(4,2)
#8C2
ans3 <- choose(8,2)
ans4= ans1+ans2+ans3
#total probability 5+4+8= 17C2
ans5 <- choose(17,2)
print(ans4/ans5)


#proability that two red marbles match
#5C2/17C2
print(ans1/ans5)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
A bag contains 3 red marbles, 5 blue marbles, 8 yellow marbles, and 7 green marbles....
A bag contains 3 red marbles, 5 blue marbles, 8 yellow marbles, and 7 green marbles. What is the probability of choosing a yellow or green marble when one marble is drawn?
A bag contains 3 red marbles, 5 blue marbles, 8 yellow marbles, and 7 green marbles....
A bag contains 3 red marbles, 5 blue marbles, 8 yellow marbles, and 7 green marbles. What is the probability of choosing a yellow or green marble when one marble is drawn?
A bag contains three red marbles, one yellow marble, and six green marbles. Two marbles are...
A bag contains three red marbles, one yellow marble, and six green marbles. Two marbles are drawn from the bag with replacement. One marble is drawn, the color is recorded, and the marble is returned to the bag. A second marble is drawn from the bag and the color is recorded. a. What is the probability that both marbles are yellow? b. What is the probability that both marbles are red? c. What is the probability of drawing one green...
1. A bag contains one green marble, two yellow marbles, four blue marbles, and five red...
1. A bag contains one green marble, two yellow marbles, four blue marbles, and five red marbles. a. What is the theoretical probability of randomly drawing a blue marble from the bag? b. If you triple the number of green, yellow, blue, and red marbles in the bag, what will be the theoretical probability of drawing a blue marble? C. Compare your answers for part (a) and (b). Are they the same or different? Explain. d. How many blue marbles...
urn A contains 5 red marbles and 1 yellow marble. Urn b contains of 3 red...
urn A contains 5 red marbles and 1 yellow marble. Urn b contains of 3 red marbles and 7 yellow marbles. A marble is selected at random from urn A and put aside. If the marble is res, the. two marbles are selecred at random from Urn B (no replacements). If the marble is yellow, then three marbles are selected at random from Urn b (no replacement) (a) what is the probability if selecting exaclty one yellow marble from urn...
A jar of marbles has 8 yellow, 3 red, and 9 green marbles. You select 1...
A jar of marbles has 8 yellow, 3 red, and 9 green marbles. You select 1 marble, put it back, and then select another. What is the probability that you choose 2 red marbles? Express the probability as a fraction in simplest terms. Show your work. What is the probability that you choose 2 red marbles?
1. A bag contains 10 black marbles, 8 red marbles, 7 yellow marbles. If one marble...
1. A bag contains 10 black marbles, 8 red marbles, 7 yellow marbles. If one marble is drawn from the bag then replaced, what is the probability of drawing a black marble then a yellow marble? 2. In a number guess game you ask a person to guess a number from 1 to 10. If the person makes a random guess, what is the probability their guess will be less than 4? 3. A bag contains 8 blue marbles, 7...
A bag contains 8 blue marbles, 3 red marbles, 7 yellow marbles. If one marble is...
A bag contains 8 blue marbles, 3 red marbles, 7 yellow marbles. If one marble is drawn from the bag then replaced, what is the probability of drawing a blue marble then a yellow marble? In a number guessing game. You ask a person to guess a number from one 1 to 10. If the person makes a random guess, what is the probability their guess will be less than 3? A bag contains 3 white marbles, 7 yellow marbles,...
**ASAP** A bag contains 7yellow marbles, 10 red marbles, 6 green marbles. If one marble is...
**ASAP** A bag contains 7yellow marbles, 10 red marbles, 6 green marbles. If one marble is drawn from the bag then replaced, what is the probability of drawing a yellow marble then a green marble?    In a number guessing game. You ask a person to guess a number from one 1 to 10. If the person makes a random guess, what is the probability their guess will be less than 8?    A bag contains 10 blue marbles, 6...
A jar contains 8 marbles 5 of which are purple and 3 that are yellow. a....
A jar contains 8 marbles 5 of which are purple and 3 that are yellow. a. What is the probability that you pick a yellow marble, put it back and pick a purple marble? b. Without replacement what is the probability that you pick two yellow marbles? c. without replacement what is the probability that you pick a green marble followed by a purple marble?