


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The practical experiment conducted by vikash (uid: 17bcs1035) in the modelling and simulation lab (csp-443) to test the standard normal distribution using matlab. The aim of the experiment, the code for implementing the experiment, and the resulting output and summary.
Typology: Essays (university)
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Experiment- Student Name: Vikash UID: 17BCS Branch: CSE Section/Group: CI-1/B Semester: 7th Date of Performance: 08/12/ Subject Name: Modelling and Simulation lab Subject Code: CSP-
Write a program to implement Testing for Standard Normal Distribution.
In this experiment we need to find the normal distribution with the help of mean , variance and standard deviation.
%x=mean+sqrt(var)randn(r,c) %for standard normal deviation mean is zero and variance is 1 n=10000; norm_mean=1; norm_var=2; x=norm_mean+sqrt(norm_var)randn(1,n); % sqrt(norm_var) is standard deviation nob=10; a=min(x); b=max(x); aa=linspace(a,b,nob);% linspace is linearly spaced vector count(size(aa))=0; y(size(aa-1))=0; for i=1:length(aa)- for j=1:length(x) if x(j)>=aa(i) && x(j)<aa(i+1) count(i)=count(i)+1; end end y(i)=((aa(i)+aa(i+1))/2); end
%plotting o=y; p=count(1:end)\n; plot(o,p)
Summary: X=norm_mean+sqrt(norm_var)*randn(1,n); Norm_mean= variable for mean. Norm_var= variable for variance. R= row C= column. This formula is used to find the standard deviation. Learning outcomes (What I have learnt):