subject

Solve the problem using three (numerical) techniques: 1. Using a for loop with an if() clause and accumulator (Hint: The strategy is to sample 3 fishes without replacement from sample space, sample space <- c(rep("Y",3),rep("B",7)) n <- 1000000 and count how many fishes were yellow. If only one is yellow, then this is a successful case. In this case, add 1 to the accumulator. Repeat the procedure n times. The frequentist result will be accumulator/n.
2. Using a for loop with an if else() function and accumulator.
3. Vectorial approach using sapply (no loops, no if() or ifelse(), no accumulator).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
You know the right answer?
Solve the problem using three (numerical) techniques: 1. Using a for loop with an if() clause and a...
Questions