Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(COMPUTER SCIENCE) Please show codes and screenshots, using MATLAB ONLY.. Below

ID: 3176791 • Letter: #

Question

(COMPUTER SCIENCE) Please show codes and screenshots, using MATLAB ONLY..

Below are service times for two different cashiers. Cashier 1: 4.1, 1.6, 2.9, 4.0, 3.7, 1.8, 2.6, 2.4, 2.8, 3.1, 1.9, 4.6, 3.3, 1.9, 3.1, 4.8, 3.9, 3.5, 2.7, 2.2 Cashier 2: 3.9, 2.9, 3.2, 5.1, 4.9, 4.6, 5.1, 2.6, 3.8, 4.1, 5.1, 4.2, 3.4, 4.4, 4.6, 4.0, 2.1, 5.1, 1.9, 3.8 Perform a two-sample KS-test in MATLAB to determine if the service times of the cashiers come from the same distribution (use the default value of 5% significance).

Explanation / Answer

Solution:

Cashier 1

20 data points were entered

Mean = 3.045

95% confidence interval for actual Mean: 2.606 thru 3.484

Standard Deviation = 0.939

High = 4.80 Low = 1.60

Third Quartile = 3.85 First Quartile = 2.25

Median = 3.000

Cashier 2

20 data points were entered

Mean = 3.940

95% confidence interval for actual Mean: 3.475 thru 4.405

Standard Deviation = 0.994

High = 5.10 Low = 1.90

Third Quartile = 4.83 First Quartile = 3.25

Median = 4.050

Null Hypotheiss, H0: The two populations come form same distribution.

Alternate hypotheiss, Ha: Two populations come from different distributions.

Significance level = 0.05

The maximum difference between the cumulative distributions, D, is: 0.4500

Test statistics = 0.45

p value = 0.034845

Since p value(0.034845) is less than the significance level so we have to reject the null hypothesis.

From the above test we conclude that the two populations come from different distributions.