Question: Create a MATLAB script that performs a Two Proportion Z Test and a Two Proportion Z Confidence Interval (Calculator calls it 2-PropZTest and 2-PropZInt) Include

Create a MATLAB script that performs a Two Proportion Z Test and a Two Proportion Z Confidence Interval (Calculator calls it 2-PropZTest and 2-PropZInt) Include the following: Request that the user enter the following items: Alpha (significance level). User should be able to enter any level, not just 0.01, 0.05, or 0.10. Number of items with a particular characteristic from sample 1, called X1, and number of items with the particular characteristic from sample 2, called X2. Sizes of both samples, n1 and n2 Ask the user if they want a two-sided or one-sided confidence interval. They will need to specify right tail or left tail if they enter one-sided and the correct corresponding CI should be calculated. Display results of the hypotheses, test statistic, p-value, decision and confidence interval. Display descriptive statistics: p _1, n_1, p _2, n_2, and p Run your script for the following situations.

Paste results for a two tailed test and corresponding CI with alpha=0.01, x1=27, n1=100, x2=19, and n2= 100.

Paste results for a right tailed test and corresponding CI with alpha=0.05, x1=32, n1=100, x2=15, and n2=100.

Paste results for a left tailed test and corresponding CI with alpha = 0.025, x1=18, n1=100, x2= 25 and n2=100.

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!