MTB > cdf 1.34; SUBC> t 6. 1.3400 0.8856the semicolon after the cdf command will get you to the "subcommand" prompt. Don't forget the period. cdf stands for cumulative distribution function and it is the same as the area under the density curve to the left of a given point.
MTB > invcdf .975; SUBC> t 6. 0.9750 2.4469invcdf stands for the inverse of the cumulative distribution function and it is the same as a quantile. 2.4469 is the appropriate t-perc for a 95% confidence interval, when you have 6 degrees of freedom.
Inference on single mean m: estimate of h is sample standard deviation s
Inferece on difference of means mA-mB: estimate of h's are sample standard deviations sA and sB in the two samples. The standard deviation for the difference (which goes at the denominator at the t-score) is given by: square root( sA^2/nA + sB^2/nB )
Inferece on regression coefficient b: estimate of h is: sum of the squares of th residuals divided by n-2.
Inference on single mean m: df=n-1
Inferece on difference of means mA-mB: df = nA+nB-2. (this is only approximately correct. most computer packages use a slightly more elaborate approximation, but you don't need to worry about that).
Inference on regression coefficient b: df = n-2.
Data
A: 4 5 7 8 B: 3 7 9 0 6
Summary statistics
mean variance A: 6 ( (-2)^2 + (-1)^2 + 1^2 + 2^2 ) / 3 = 3.33 B: 5 ( (-2)^2 + 2^2 + 4^2 + (-5)^2 + 1^2 ) / 4 = 12.5The posterior distribution on mA-mB is well approximated by a student-t with mean 6-5=1, standard deviation
sqrt( 3.33 / 4 + 12.5 / 5 ) = 1.82and degrees of freedom 4 + 5 - 2 = 7.
To compute the probability that the difference is positive (negative), first determine the t-score (0-1)/1.82 = -0.549. Then determine the probability that a standard t with 9 degrees of freedom is greater (smaller) than the t score. Using minitab:
MTB > cdf -0.549; SUBC> t 9. -0.5490 0.30so the probability that the difference is greater than 0 is 1-0.30=0.70.
To compute the 95% probability interval first determine t-perc. In minitab, evaluate the inverse cdf at .975.
MTB > invcdf .975; SUBC> t 9. 0.9750 2.3646The interval is
(1 - 2.3646 * 1.82, 1 + 2.3646 * 1.82 ) = ( -3.306, 5.306)