Question: Test the function with x = [19.1, 22.2, 16.9, 19.4, 20.2, 18.0, 21.1]; Write a Matlab function with an input being a vector of data

![18.0, 21.1]; Write a Matlab function with an input being a vector](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2f6f37dfe5_96266f2f6f2d9362.jpg)
Test the function with x = [19.1, 22.2, 16.9, 19.4, 20.2, 18.0, 21.1];
Write a Matlab function with an input being a vector of data points (independent measurements) and the outputs being the mean value along with the upper and lower 95% confidence limits. Please use equations in the Solution of Example" slide. The first line of your code defines the function syntax and should look like: function [mv, uc, lc] = confid(x) mv - mean value; uc - upper confidence limit; lc - lower confidence limit Calculate Mean: ZWT / s i Standard Deviation: S f(x:--)2 VN -li=1 Find the t-score: If it is 95% confidence limit (a=0.05), you can use the above Table For any other a values, use the online t-score calculator (http://stattrek.com/online-calculator/t-distribution.aspx). Input Degrees of Freedom v=N-1 and Cumulative Probability=1-(a/2), you obtain t-scores: t1-a/2. Lower (1- a) Confidence Limit: * (l-a/2.v) Upper (1- a) Confidence Limit: F +(t1-a/2.v)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
