Problem 58E

The administrators for a hospital wished to estimate the average number of days required for inpatient treatment of patients between the ages of 25 and 34. A random sample of 500 hospital patients between these ages produced a mean and standard deviation equal to 5.4 and 3.1 days, respectively. Construct a 95%confidence interval for the mean length of stay for the population of patients from which the sample was drawn.

Lecture6 - MoreBuilt-inMATLABFunctionsPractice Tuesday,September 27,212:04PM More Built-in MATLAB Functions These functions operatefirst by columnso to apply to an entire matrix the function must be applied 2x • any( ) = returns true if ANY element of the vector is true • all( ) = returns true if only ALL elements of the vector are true • min( ) and max( ) = find the smallest or largest elements of a vector ○ They return 2 things: the value & the index • sort(matrix, 'ascend' or 'descend') = sorts the vector in ascending or descending order ○ Returns 2 things: newly sorted vector & vector of indices sorted • Find( ) = it's just like indexing; it's finding where something is; specifically it converts a logical index into a regula