Basic Statistical Test
Basic Statistical Test
Learning Competency:
1. Differentiate descriptive from
inferential statistics
2. Determine the appropriate
statistical tool for organizing and
describing the
numerical data gathered
Objectives:
1. Differentiate descriptive from inferential statistics
2. Determine the appropriate statistical tool for
organizing and describing the numerical data
gathered.
3.Calculate the mean, median, mode, and range from
the numerical data gathered.
Students will use the KWL chart as a Think-Pair-Share. Each group must fill in on
what they have learned on basic statistics. ( 5 mins only!)
Measures of average are also called measures of central tendency and include the mean,
median, mode, and midrange.
Comparison of Ungrouped and Grouped of Data
𝑓 = 𝑓x =
Solve for the mean, median, and mode of the data below.
Inferential statistics arise out of the fact that sampling naturally incurs
sampling error and thus a sample is not expected to perfectly represent the
population. The methods of inferential statistics are (1) the estimation of
parameter(s) and (2) testing of statistical hypotheses.
Example:
Types of Statistical Tests
1. Ttests
• One sample ttest
• Measures: Mean of a single variable
• When to use: Comparing a known mean against a hypothetical value
• Assumptions: Variable should be normally distributed
• Interpretation: If the pvalue is less than .05, the results are significant
• What to use if assumptions are not met:
• Normality violated, use the Mann-Whitney or Wilcoxon Rank Sum
• Independent ttest
• Measures:
•Dependent variable (continuous)
•Independent variable (binary)
•When to use: Compare the means of 2 independent groups
• Assumptions:
• Dependent variable should be normally distributed
• Homogeneity of variance (Levene’s Test)
•Interpretation: If the pvalue is less than.05, the results are significant
• What to use if assumptions are not met:
•Normality violated, use the Mann-Whitney or Wilcoxon Rank Sum
•Homogeneity violated, use the second row of results on the ttest table
Ex. Students life satisfaction that undergo counseling.
X1 X2
7
8
10
8
7
6
4
7
8
9
One Sample t- Test
Problem 1: In the population, the average IQ is 100. A team of scientist wants to
test a new medication to see if it has either a positive or negative effect on
intelligence or no effect at all. A sample of 30 participants who have taken the
medication has a mean of 140 with a standard deviation of 20. Did the medication
affect the intelligence? Alpha = 0.05
1. Define Null and Alternative Hypotheses
2. State the Alpha
3. Calculate the degrees of Freedom
4. State the Decision Rule
5. Calculate Test Statistics
6. State Conclusion
Problem 2: Hospital Infections
A medical investigation claims that the average number of infections per week at a
hospital in southwestern Pennsylvania is 16.3. A random sample of 10 weeks had a
mean number of 17.7 infections. The sample standard deviation is 1.8. Is there
enough evidence to reject the investigator’s claim at a 0.05? Assume the variable is
normally distributed.
Source: Based on information obtained from Pennsylvania Health Care Cost Containment Council.
Problem #3: The manager of an rental agency claims the average mileage
of cars rented is less than 8000. A sample of five automobiles has an
average mileage of 7723, with a standard deviation of 500 miles. At Alpha
of 0.01, is there enough evidence to reject the menager’s claim?
Problem 4: Sample of Newborn Birth Weights in Kilogram
X
2.6 kg
2.7 kg
3.2 kg
2.9 kg
3.0 kg
3.3 kg
5. 2 kg
2.3 kg
4.1 kg
3.7 kg
Problem 5: Does the statistics ability of KSU graduates differ from
national average? The average on the national statistics exam is µ= 5.8
KSU scores
10
15
13
5
8
7
9
9
10
13
Problem #:
Test the claim that µ = 100 against µ> 100 given a sample of n= 81 for
which x= 100. 8. Assume that sigma/SD=5, and at the alpha =0. 05
significant level.
Problem #:
Test claim that µ= 15.5 against < 15.5 given a sample of n= 45 for which
the x =14.3. Assume that sigma/ SD= 5.5 and test at the alpha = 0.05
significance level.
• Paired sample ttest
• Measures:
• Dependent variable (continuous)
• Independent variable (2 points in time or 2 conditions with same group)
• When to use: Compare the means of a single group at 2 points in time
(pretest/post test)
• Assumptions:
• Paired differences should be normally distributed (check with histogram)
• Interpretation: If the pvalue is less than.05, the results are significant
• What to use if assumptions are not met: Wilcoxon Signed Rank Test
What is the paired t-test?
The paired t-test is a method used to test whether the mean difference
between pairs of measurements is zero or not
You can use the test when your data values are paired measurements. For
example, you might have before-and-after measurements for a group of
people. Also, the distribution of differences between the paired
measurements should be normally distributed.
What are some other names for the paired t-test?
5 7
6 6
7 9
4 7
3 5
5 9
6 8
4 6
M1= M2= 𝐷 = 𝐷2 =
1. State the hypotheses:
2. Compute the difference score.
σ𝐷
ഥ=
𝐷 =
𝑁
𝐷2
𝑆𝑆𝐷 = 𝐷2 −
𝑁
4. Compute the t-statistics
ഥ
𝐷−𝜇
𝑡 = 𝑠𝑠 𝐷
𝐷
𝑁(𝑁−1)
5. Compute the critical value:
d.f= N-1