E7_Lab11_Solutions_Fall_2010

# Stdnorm meannorm part d figure pdf

• Notes
• cfudalz
• 12
• 100% (1) 1 out of 1 people found this document helpful

This preview shows pages 9–12. Sign up to view the full content.

std(norm) mean(norm) %part d figure; pdf = hdat/(length(norm)*Width); plot(Lower + Width/2:Width:Upper - Width/2, pdf(1:end - 1)) xlabel( 'Random varriable' ); ylabel( 'Probability' ); type makehist ans = 19.8941 ans = 0.1552 function hout = makehist(lwr, upr, spcng, data, xlbl, ylbl) edges = lwr:spcng:upr; hout = histc(data,edges); bar(edges, hout,'histc'); xlim([min(edges-spcng),max(edges+spcng)]); xlabel(xlbl); ylabel(ylbl);

This preview has intentionally blurred sections. Sign up to view the full version.

problem 7 dat=load( 'ran_n2.txt' ); %part a s=std(dat) %part b m=mean(dat) %part c v=var(dat) %part d md=median(dat) %part e dat2= mean(dat) + std(dat).*randn(length(dat),1); %alternative to part e dat2= 3 + 2.*randn(100,1); s = 1.9701 m =

This preview has intentionally blurred sections. Sign up to view the full version.

3.2272 v = 3.8812 md = 3.4902 Published with MATLAB® 7.10
This is the end of the preview. Sign up to access the rest of the document.
• Spring '09
• probability density function, @, Hout, 1.9701 m, convert row vector

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern