Question: A sample of 10 items is drawn from a lot of 50 items. It is known that the average fraction defective per lot is 0.2.

A sample of 10 items is drawn from a lot of 50 items. It is known that the average fraction defective per lot is 0.2. Simulate the inspection procedure of drawing a sample of 10 items and generate an experimental probability mass function for the number of defectives using a random sampling algorithm (in R it is a single command, else, your own algorithms may be used). Verify if the results match with hypergeometric distribution (theoretical probability mass function).

Provide code, output screenshots Further, generate a table showing the theoretical probabilities, experimental probabilities, and the percentage of the difference between them.

Use R programming

Step by Step Solution

3.51 Rating (175 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To take a sample of 10 items with ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!