Question: HELP! I'm not a computer person at all need help with R Write a sample command that replicates (randomly) drawing 3 balls from the urn,
HELP! I'm not a computer person at all need help with R
Write a "sample" command that replicates (randomly) drawing 3 balls from the urn, if 3. (a) Suppose that we have an urn with 5 "red" balls, 8 "green" balls, and 2 "yellow" balls. the sampling is done without replacement. Run the command and look at the output. (b) Repeat part (a) if we draw 10 balls. (c) Repeat part (a) if we draw 18 balls. 4. Repeat all parts of #3. if the sampling is done with replacement. 3, 5. Write a sample command that replicates drawing a 5-card poker hand drawn from a shuffled 52-card standard deck of cards) in order to count the number of cards of each denomination. (Don't worry about keeping track of the suits.)... (a) using the codes 2 10, A, J, Q, K (b) using the codes 2, 3, ..., 10, 11, 12, 13, 14 (the last four numbers for A,J,Q,K). Run your codes 10 separate times for each part and look at the output. 6. Write a sample command that replicates asking 5 randomly chosen people what day of the week they were born... (a) Using the string coding "Monday", "Tuesday", ..., "Sunday" (b) Using the numerical coding 1 (for Monday), 2 (for Tuesday), ... 7 (for Sunday). (c) Run this command (for either the part (a) coding or part (b)'s) 10 separate times and observe the output. were born on the same weekday? In how many of the 10 trials did it turn out that at least two people
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
