Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need some assitance in doing a matlab assignment. The matrix should be in 1\'s

ID: 1716895 • Letter: I

Question

I need some assitance in doing a matlab assignment. The matrix should be in 1's and 0's. Code should have both histograms come up, may need to be two seperate codes I am not sure. Saying you don't have matlab doesn't help. I have attached the pdf

The assignment is to graph the binomial PDF, and frequency of distributions of 10,000 coin tosses (a minimum of 2500 sets of 4 each) in two ways:

For each row in all 4 columns, add the number of heads (0-4 heads) for each row, and plot that on a histogram. Contrast the actual values with the expected values based on a binomial distribution for sets of 4 coin tosses.

For your entire sequence, count the number of occurrences of the run lengths (1 heads, 2 heads in a row, 3 heads in a row, etc.) and graph that distribution histogram. See the sample emptyCoinTossForm.xls file and the example CoinTossSim4x.pdf file shows the results for a combined set of four simulated 100 coin toss experiments.

The observed Run-length PDF can be approximated by a binomial distribution, but it is actually a different probability distribution function. Identify the type of distribution and include it in your report.

Much greater than 100 tosses is required to obtain a reasonable approximation of the binomial distribution.

The sample/examples:

Explanation / Answer

The required data is all in your given example and the program for both the histograms coming up is as below: