Lab 6 (Discrete Distributions)
Simulation and Modeling (CSCI 3010U)
Faisal Z. Qureshi
Faculty of Science, Ontario Tech University
http://vclab.science.ontariotechu.ca
Check course Canvas for due date
Task 1
Sample numbers between and from the distribution described
below:
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
- Probability of getting a is
Now complete the following tasks:
- Plot the normalized histogram
- Use Chi-square test to see if the null hypothesis stands.
Assume a significance level of . Figure 1 contains the Chi-square
table.

Task 2
Now repeat task 1 with a sample size of .
Submission
Via Canvas.
- Python file that includes your code for sampling and numbers and plotting the
normalized histogram.
- A pdf file that shows the work supporting your assertion whether or
not the null hypothesis holds for tasks 1 and 2.