TA7-1
Inference for the Mean of a Population
Confidence Interval for Mean
Confidence intervals are available only with the Analysis Toolpak add-in, and only with raw data.
Test for Population Mean
Excel does not provide a dedicated statistical routine for testing the mean of a population.
Matched Pairs Test
For more help and examples, see the Excel Video Technology Manuals on One-Sample Mean Inference: t - summarized data, One-Sample Mean Inference: t - with data, and Paired Samples Inference.
Confidence Interval for Mean
Test for Population Mean
TA7-2
Matched Pairs Test
For more help and examples, see the JMP Video Technology Manuals on One Mean Test - t Test - summarized data, One Mean Test - t Test - with data, One-Sample Mean Inference: t - with data, One-Sample Mean Inference: t - summarized data, and Paired Samples Inference.
Confidence Interval and Tests for One-Sample Mean
Confidence intervals and tests are done from the same dialog box regardless of whether you have raw data (in a column) or only summary statistics.
Matched Pairs Test and Confidence Interval
Output here includes the test statistic for Group 1 – Group 2, as well as the confidence interval for the mean difference. Paired data must be in two separate columns.
For summary statistics, enter the sample size (n), sample mean (), and standard deviation ().
For more help and examples, see the Minitab Video Technology Manuals on One-Sample Mean Inference: t - with data, One-Sample Mean Inference: t - summarized data, and Paired Samples Inference.
TA7-3
Confidence Interval for Mean
Test for Population Mean
Matched Pairs Test and Confidence Interval
Output here includes the test statistic for Group 1 – Group 2, as well as the confidence interval for the mean difference. Paired data must be in two separate columns.
For more help and examples, see the SPSS Video Technology Manuals on One-Sample Mean Inference: t - with data and Paired Samples Inference.
Both confidence intervals and hypothesis tests are done through the Statistics ➔ t ➔ One-Sample dialog,
Matched Pairs
For more help and examples, see the CrunchIt! Help Videos on Confidence Intervals Using t, One Mean Test Using t, and Paired Samples Inference.
TA7-4
Confidence Interval for Mean
Test for Population Mean
Matched Pairs Test
For more help and examples, see the TI Video Technology Manuals on One-Sample Mean Inference: t - with data, One-Sample Mean Inference: t - summarized data, and Paired Samples Inference.
Inference for One Mean
Both confidence intervals and hypothesis tests are done through the t.test command
> t.test(var, alternative= ‘two.sided’, mu=15, conf.level=.95,data=dataframe)
where “var” is the name of the variable that is part of the “dataframe” data set; possible alternatives are “two.sided,” “less,” or “greater,” If the “mu = ” portion is omitted, a test against a mean of 0 is computed by default, but this allows computation of just the confidence interval.
TA7-5
Matched Pairs Test
Both confidence intervals and hypothesis tests are done through the t.test command—note the addition of “Paired-T” in the command
> t.test(x,y,alternative=“two.sided”,paired=T,conf.level=
0.95,data=mydat)
For more help and examples, see the R Video Technology Manuals on Inference for a Population Mean Based on t Using Raw Data, Significance Test for a Population Mean Based on t Using Summarized Data, and Paired Samples Inference.
Comparing Two Means
Excel does not automatically calculate the confidence interval for the difference in means.
For more help and examples, see the Excel Video Technology Manuals for Two-Sample Mean Inference : t - summarized data and Two-Sample Mean Inference: t - with data.
This procedure requires that all response variables values be in one column and a “sample identifier” (factor) in a second column.
JMP does not calculate and display the confidence interval for the difference in means, but it does give the standard error of the difference and degrees of freedom in its results.
For more help and examples, see the JMP Video Technology Manual for One-Sample Mean Inference: t - with data.
TA7-6
Stat ➔ Basic Statistics ➔ Two-Sample t
There are three ways to enter the data:
The default is not to assume equal population variances. If you wish to assume equal population variances, select “Options,” and then check the box for “Assume equal variances.”
If you wish to change the level of confidence (from the default of 95%) or the form of the alternate hypothesis (the default is “not equal”), click “Options” and input your desired values.
Minitab displays a confidence interval that corresponds to the alternate hypothesis with the test results.
For more help and examples, see the Minitab Video Technology Manuals on Two Sample Mean Inference: t - with data and Two Sample Mean Inference: t - summarized data, and Paired Samples Inference.
Comparing Two Means—with Data
Comparing Two Means—with Summary Statistics (requires Python Plug-in)
For more help and examples, see the SPSS Video Technology Manuals for Two-Sample Mean Inference: t - with data.
TA7-7
For more help and examples, see the CrunchIt Help Video on Two Sample Mean Inference.
For more help and examples, see the TI-83/-84 Video Technology Manuals for Two-Sample Mean Inference: t - with data and Two-Sample Mean Inference: t - summarized data.
The R command for a test and confidence interval is the same as for the paired test, but omitting the “paired=T” part.
> t.test(x,y,alternative=“two.sided”,conf.level=
0.95,data=mydat)
For more help and examples, see the R Video Technology Manuals on Two-Sample Mean Inference with Raw Data and Two-Sample Mean Inference with Summarized Data.
Additional Topics on Inference
Power (One-Sample )
Automated power calculations are not available in Excel. The Normal distribution can be used to compute the approximate power. Accordingly, you can use Excel’s NORMSDIST function to compute probabilities from the Normal distribution.
Sign Test
The sign test is not available in Excel.
Power (Two-Sample )
Automated power calculations are not available in Excel.
TA7-8
Power (One-Sample )
Sign Test
Power (Two-Sample )
Power (One-Sample )
Stat ➔ Power and Sample Size ➔ One-Sample t
This is nearly identical to finding the power of a one-sample test discussed in Chapter 6. The only difference is that, in the Standard deviation box, you need to enter an estimate of the population standard deviation (). For a matched pairs study, enter the estimated standard deviation of the differences between the pairs.
Sign Test
Power (Two-Sample )
Stat ➔ Power and Sample Size ➔ Two-Sample t
Note: This routine is essentially identical to the routine for finding the power of a one-sample test. This routine assumes:
TA7-9
Power (One-Sample )
SPSS does not have dedicated routines for calculating power.
Sign Test
Power (One-Sample )
To determine power:
To determine sample size:
Sign Test
Power (Two-Sample )
Power for two-sample tests is not available in CrunchIt.
Power (Two-Sample )
There is no dedicated routine for calculating power on the TI-83.
TA7-10
Power (One-Sample )
Enter any three of the four parameters (sample size (n), difference to detect (d), significance level, or power) and the fourth (initially set to NULL) is calculated. The example shown below computes power. Type is the type of analysis you want to do (here, a choice of one-sample or paired)
>power.t.test(n=20,d=5,sig.level=0.05,power=NULL,
type=“one.sample”,sd=5)
Sign Test
There is no dedicated routine for calculating the sign test in R.
Power (Two-Sample )
Replace “one.sample” with “two.sample” in the power command given above.