Question

In: Computer Science

Make a histogram of each random variable using the Matlab “hist” function. Normalize the histogram before...

Make a histogram of each random variable using the Matlab “hist” function. Normalize the histogram before plotting to yield a pdf (probability density function). On top of the histogram superimpose the theoretical pdf of the appropriate distribution

Solutions

Expert Solution

`Hey,

Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

clc

clear all

close all

S=2*randn(1,100000)+1;

histogram(S,'Normalization','probability');

hold on;

x=-10:0.01:10;

y=1/(2*sqrt(2*pi))*exp(-(x-1).^2/8);

plot(x,y);

Kindly revert for any queries

Thanks.


Related Solutions

The language is MATLAB Write a function that will generate three random integers, each in the...
The language is MATLAB Write a function that will generate three random integers, each in the inclusive range from 10 to 80. It will then return a string consisting of the three integers joined together, and also a character vector consisting of the three integers joined together. For example, if the random integers are 11, 29, and 76, the string that is returned will be "112976" and the character vector that is returned will be '112976'. I'm really confused on...
q1) using Matlab make a code that allows a user to enter a function like fractional...
q1) using Matlab make a code that allows a user to enter a function like fractional function and cubic liner function then the Matlab send a domain, range, continuity
q1) using Matlab make a code that allows a user to enter a function like fractional...
q1) using Matlab make a code that allows a user to enter a function like fractional function and cubic liner function then the Matlab send a domain, range, continuity
Using Python: Normalize a 5x5 random matrix hints: use numpy create a random matrix X apply...
Using Python: Normalize a 5x5 random matrix hints: use numpy create a random matrix X apply Normalization: (X - Mean) / Deviation
(Using Matlab) Write a function to "smooth" a black-and-white image by replacing each pixel by the...
(Using Matlab) Write a function to "smooth" a black-and-white image by replacing each pixel by the average of itself and its neighbors. In MATLAB a black-and-white image is just a matrix of 1s and 0s - 1 represents white, and 0 represents black. To keep the algorithm simple, ignore the edges of the image - that is, do not change the first and last rows and columns. function name = smooth_image() input argument = input matrix output argument = output...
Identify the set of possible values for each random variable. (Make a reasonable estimate based on...
Identify the set of possible values for each random variable. (Make a reasonable estimate based on experience, where necessary, it's not the numbers but the concept that is important.) a. The number of heads in two tosses of a coin. b. The average weight of newborn babies born in a particular county one month. c. The amount of liquid in a 12-ounce can of soft drink. d. The number of games in the next World Series (best of up to...
Variable 1: Income Find median and standard deviation: Graph using histogram: Description of Findings: Variable 2:...
Variable 1: Income Find median and standard deviation: Graph using histogram: Description of Findings: Variable 2: Marital Status Find mode: Graph using pie chart: Description of Findings: Variable 3: Family Size Find mean and variance: Graph using histogram: Description of Findings: Variable 4: Housing Find mean and variance (in relation to marital status or single and married): Graph using histogram: Description of Findings: Variable 5: Food Find mean and variance (in relation to marital status or single and married): Graph...
MATLAB Create a 2 × 3 matrix variable mat. Pass this matrix variable to each of...
MATLAB Create a 2 × 3 matrix variable mat. Pass this matrix variable to each of the following functions and make sure you understand the result: flip, fliplr, flipud, and rot90. In how many different ways can you reshape it? Note: (in addition to the functions listed, rotate the matrix 180 degrees clockwise)
Make a histogram using the data below What type of probability do these represent ? THUMBS...
Make a histogram using the data below What type of probability do these represent ? THUMBS UP! Colors    RED 17 GREEN 19    BLUE 28     YELLOW 22 ORANGE 21    BROWN 7   TOTALS 114 RED 15% GREEN       17% BLUE 25% YELLOW 19% ORANGE 18% BROWN 6%   TOTAL 100%    
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50....
Matlab Design a FIR filter directly using fir1 function in matlab with parameter M = 50. Design FIR filters with different M = 5, 10, 50, 100, 500 and plot their frequency responses H(e j?) on the same figure.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT