In: Statistics and Probability
CALCULATE THE MEAN value : Mean(x) = x0 = 1/N * ∑in xi and the Stardandar deviacion : σ = √ (∑in (xi-x0)2 / (N-1) BOTH USING MATLAB EMERGENCY PLEASE . THE DATA IS BELOW ....SHOW THE STEPS AND THE GRAPHS ...THERE ARE R1 AND R5 for the data
R1
1.3004560111742451e+01
1.2989489582476999e+01
1.2992918145494006e+01
1.3015926219975810e+01
1.3003113745531683e+01
1.3009060588116746e+01
1.3006255988139626e+01
1.3006525855308004e+01
1.3015986719424999e+01
1.3015607658994400e+01
R5
1.2896465697037076e+01
1.3078048708539365e+01
1.2947635768569747e+01
1.3036655293457565e+01
1.2970848809276067e+01
1.3044710696683399e+01
1.3036858101292060e+01
1.3033168310496990e+01
1.2872334019855321e+01
1.2853995527962450e+01
Solution:
By using MATLAB:
clc
clear all
close all
format short
R1=[1.3004560111742451e+01
1.2989489582476999e+01
1.2992918145494006e+01
1.3015926219975810e+01
1.3003113745531683e+01
1.3009060588116746e+01
1.3006255988139626e+01
1.3006525855308004e+01
1.3015986719424999e+01
1.3015607658994400e+01];
R5=[1.2896465697037076e+01
1.3078048708539365e+01
1.2947635768569747e+01
1.3036655293457565e+01
1.2970848809276067e+01
1.3044710696683399e+01
1.3036858101292060e+01
1.3033168310496990e+01
1.2872334019855321e+01
1.2853995527962450e+01];
disp('Mean of R1 is');
M1=sum(R1)/length(R1)
disp('Mean of R5 is');
M2=sum(R5)/length(R5)
disp('Standard deviation of R1 is');
sqrt(sum((R1-M1).^2)/(length(R1)-1))
disp('Standard deviation of R5 is');
sqrt(sum((R5-M2).^2)/(length(R5)-1))
Please give upvote.
Thank you.