Probability Distributions in R - Assignment - 12
Lab Problems: Probability Distributions in R
Problem 1 — Binomial Distribution: Quality Control
A manufacturing company produces electronic components. Based on previous quality-control records, the probability that a randomly selected component is defective is 0.08.
A quality-control engineer randomly selects 15 components from the production line.
Let represent the number of defective components among the 15 selected components.
Tasks
Using the Binomial distribution:
- Identify the parameters , , and .
- Calculate the probability of getting exactly 2 defective components.
- Calculate the probability of getting at most 2 defective components.
- Calculate the probability of getting at least 2 defective components.
- Generate the complete probability distribution for .
- Calculate the mean, variance, and standard deviation.
- Plot the probability distribution using a suitable graph.
- Write a brief interpretation of the results.
Expected distribution: Binomial
Useful R functions for verification: dbinom(), pbinom()
Problem 2 — Normal Distribution: Student Examination Marks
The marks obtained by students in a university examination are approximately normally distributed with a mean of 65 marks and a standard deviation of 10 marks.
Let represent the mark obtained by a randomly selected student.
Tasks
Using the Normal distribution:
- Identify the mean and standard deviation .
- Calculate the z-score of a student who obtains 80 marks.
- Find the probability that a randomly selected student scores less than 80.
- Find the probability that a student scores more than 80.
- Find the probability that a student scores between 55 and 75.
- Find the probability that a student scores between 60 and 80.
- Find the mark corresponding to the 90th percentile.
- Generate 1000 random observations from the given Normal distribution.
- Plot the Normal probability density curve.
- Plot a histogram of the generated marks and compare it with the theoretical Normal distribution.
- Interpret the results.
Expected distribution: Normal
Useful R functions for verification: dnorm(), pnorm(), qnorm(), rnorm()
Problem 3 — Poisson Distribution: Help-Desk Requests
A university's computer help desk receives an average of 6 service requests per hour. Assume that requests occur independently and that the average arrival rate remains approximately constant.
Let represent the number of requests received by the help desk in one hour.
Tasks
Using the Poisson distribution:
- Identify the parameter .
- Calculate the probability of receiving exactly 4 requests in one hour.
- Calculate the probability of receiving at most 4 requests.
- Calculate the probability of receiving at least 4 requests.
- Calculate the probability of receiving more than 6 requests.
- Generate the probability distribution for .
- Calculate the mean, variance, and standard deviation.
- Generate 1000 random observations from the Poisson distribution.
- Plot the probability distribution.
- Plot a histogram of the generated observations.
- Interpret the results.
Expected distribution: Poisson
Useful R functions for verification: dpois(), ppois(), qpois(), rpois()
Suggested progression for the three experiments
| Experiment | Distribution | Main concept students explore |
|---|---|---|
| 1 | Binomial | Fixed number of independent trials and number of successes |
| 2 | Normal | Continuous measurements, z-scores and areas under the curve |
| 3 | Poisson | Number of events occurring in a fixed interval |
Comments
Post a Comment