Red Blue Marbles Jar R Programming
You would try different combinations such as 25 of each colored marble in a jar or putting all red marbles in one jar and all the blue in the other.
Red blue marbles jar r programming. The jar can have strings as objects with some of the strings being red and some of the strings being blue 5. Seems tricky at first right. R code for the following. You would try different combinations such as 25 of each colored marble in a jar or putting all red marbles in one jar and all the blue in the other.
Confirm there are 50 reds by summing the samples that are red 6. P b 0 5 25 50 0 5 25 50 p b 0 5. P r 1 2 1 1 1 2 49 99 0 747474. Next most people try something like 25 red and 25 blue in jar a and 25 red and 25 blue in jar b.
You can arrange the marbles however you like but each marble must be in. What if we keep the red split evenly and put all the blue marbles on one side. You would still end up with a chance of 50. Creating samples in a jar.
Given that the number of red and blue marbles are the same you would tend to think that the odds are 50 50. When picking you ll first randomly pick a jar and then randomly pick a marble out of that jar. Therefore let us take 49 red marbles from b1 to b2 then there will be 1 red ball in b1 and 99 balls in b2 out of which 49 are red and 50 of them are blue in the second jar. 1 2 chance we pick jar a 50 50 chance we pick a red marble 1 2 chance we pick jar b 0 50 chance we pick a red marble.
Create a variable jar that has 50 red and 50 blue marbles hint. R 1 red marbles in jar 1 r 2 red marbles in jar 2. You have two jars 50 red marbles and 50 blue marbles. We would do no better than random.
What happens if we just split the marbles evenly 25 of each in both jars. P b 0 5 50 75 0 5 0 25 p b 0 33. The p red is 0 50 you must pick jar a p 0 50 and then get a red marble p 1 0. All 100 marbles should be placed in the jars.