In: Advanced Math
Please Use Matlab to do this problem:
The cross-sectional area measurements (??2) from 7 cells are as follows:
? = [153.3 91.2 99.3 115.0 101.7 135.8 102.4 ]
Assuming the cross-sectional areas of the cells are normally
distributed, construct a two-sided 95% confidence interval for the
mean cross-sectional area of the entire batch.
Then, generate one figure:
Plot all 7 data points on x-axis, mark them with red circles;
Plot the mean value, which is going to be the center of your interval, mark it with
blue x;
Plot the upper and lower limit of the interval, mark them with black squares;
Have your x-axis range from 70 to 180;
Have your y-axis range from -1 to +1. (So, your x-axis will be in the middle of
your figure)
You can play with the line width and font to make your figure more reader friendly.
ANSWER:-
BY USING MATLAB
OUTPUT SCREENSHOTS
COPY CODE
MATLAB CODE
clear
clc
x=[153.3 91.2 99.3 115 101.7 135.8 102.4];
n=length(x);
s=std(x);
xbar=mean(x);
Z=1.96;
lowerLimit=xbar+Z*s/sqrt(n);
upperLimit=xbar-Z*s/sqrt(n);
plot(x,zeros(1,n),'ro')
hold on
plot(xbar,0,'bx','markersize',15)
plot(lowerLimit,0,'ks','markersize',12)
plot(upperLimit,0,'ks','markersize',12)
axis([70 180 -1 1])
SAMPLE OUTPUT