Question #9306

Write a program in MATLAB using either function or input statement to test the hypothesis for
one mean vector including the confidence interval calculation using simultaneous T2
intervals and
Bonferroni. You can use any data in the text book in order to make sure that your output is correct.
**Notes:
For using function or input statement, only three parameters that need to be entered
by users which are the data, hypothesize value and level of significance.
Please explore and include the following command in your program, size and fprintf.
For input statement, your output MUST look like this:
Enter data matrix: bankloan
Enter hypothesized values in vector 1xn: [7 50 9]
Enter level of significant: 0.05
The test statistics is : 146.16
The critical value is : 7.86
The decision is to reject null hypothesis
The simultaneous confidence interval is: ( 7.91, 9.22)
The simultaneous confidence interval is: ( 42.97, 50.38)
The simultaneous confidence interval is: ( 9.53, 10.82)
The Bonferroni confidence interval is: ( 8.01, 8.33)
The Bonferroni confidence interval is: ( 43.50, 45.35)
The Bonferroni confidence interval is: ( 9.62, 9.94)
For function statement, your output MUST look like this:
MV1f(bankloan, [7 50 9], 0.05)
The test statistics is : 146.16
The critical value is : 7.86
The decision is to reject null hypothesis
The simultaneous confidence interval is: ( 7.91, 9.22)
The simultaneous confidence interval is: ( 42.97, 50.38)
The simultaneous confidence interval is: ( 9.53, 10.82)
The Bonferroni confidence interval is: ( 8.01, 8.33)
The Bonferroni confidence interval is: ( 43.50, 45.35)
The Bonferroni confidence interval is: ( 9.62, 9.94)

Expert's answer

Unfortunately, your question requires a lot of work and cannot be done for free.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

## Comments

## Leave a comment