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

 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!