## Question 520:

1## Answer:

No answer provided yet.The mean is calculated by adding up all values and dividing by the total.

- Old: Sum is 356 divided by 10 = a mean of 35.6
- New: Sum is 268 divided by 10 = a mean of 26.8

The median is value at which half are above this point and half are below it. It is usually obtained by ordering the data from lowest to highest then picking the middle value. For even numbers we pick the mid-point or average between the two middle values.

- Old: We pick the average of the middle values 35 and 38 getting us a median of 36.5
- New: We pick the average of the middle values 27 and 28 getting us a median of 27.5.

The mode is the most frequently occurring value in a set. If all values are equally occurring, then there is no mode.

- Old: All values appear only once so the mode is undefined.
- New: This dataset actually has two modes at 26 and 31.

The variance and standard deviation are closely related. The standard deviation is the square root of the variance, so once we calculate it, we take the square root and get the standard deviation. To find the variance, we do the following:

- Square the Sum of each values
- Old: 356^2 = 126736
- New: 268^2 = 71824

- Divide the squared sum by the total number (10) (Avg Sum Squared)
- Old: 12673.6
- New: 7182.4

- Square each individual value, then add up all these squared values (Sum of Squares)
- Old: 13080
- New: 7330

- Subtract the Avg Sum Squared (from part 2) from the Sum of Squares from part 3
- Old:13080-12673.6 = 406.4
- New: 7330-7182.4 = 147.6

- Divide this result by the total number minus 1 to get the
**sample variance**- Old: 406.4/9 = 45.156
- New: 147.6/9 = 16.4

- The sample
**standard deviation**is then the square root of the sample variance- Old: 6.719
- New: 4.049

To calculate the 95% confidence intervals around the mean, we need to calculate the margin of error using the following steps:

- Find the standard error of the mean (SEM) which is just the standard deviation divided by the square root of the sample size. We'll use the values from above.
- Old: 6.719/SQRT(10) = 2.214
- New: 4.049/SQRT(10) = 1.28

- The margin of error is the SEM times a critical value from the t-distribution (since the sample size is small). To find the critical value we can look up the value in a t-table or use the excel function =TINV(.05,9) where the parameters are 1- confidence level (called alpha) and the degrees of freedom (sample size-1). It will be the same for both groups. We get the value 2.26. The margin of error for both groups are:
- Old: 2.214*2.26 = 4.807
- New: 1.28*2.26 = 2.89

- The
**95% confidence intervals**are then the margin of error added and subtracted from the mean:- Old: ( 30.79 to 40.40 )
- New: ( 23.9 to 29.69 )