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
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 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.
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a car that accelerates from rest at constant acceleration, a, are given by = a n d = 12 Determine v and d at every second for the first 10 seconds for a car with acceleration of = 15 ft/s2. Your output must have exactly the same format as the template table below. Note that dots have been added to the table below; you can...
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%    
write a Matlab function file to solve system Ax=b by using the output of the function...
write a Matlab function file to solve system Ax=b by using the output of the function lufac2a your function should have inputs f=matrix return from lufac2a, piv=array return by lufac2a and b=right hand side of your system.the only output for your system should be x guideline 1.use the column access for the matrix entries 2. do not create any other matrix in your function-get your data directly from the matrix passed into your function 3.do not use Matlab command designed...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT