Implement the following problems in MATLAB and document your work using the report guidelines on the next page.
Use the subplot function to place the relevant graphical results in a single figure. Generate 100 realizations of the Poisson random process N(t) with arrival rate = 1 customer per second in the time interval (0, 10]. Generate the pair (Ni(t), Nz(t)) by assigning arrivals in N(t) to Ni(t) with probability p = 0.25 and to Nz(t) with probability 0.75. Plot the two processes using a scatter plot.
Find the histograms for N(10) and Nz(10) and compare them to the theoretical pmf by performing a chi-square goodness-of-fit test at a 5% significance level.