Section 2.1 Lecture: Hypothesis Testing & Statistical Inference
Overview
Brad Hall explains how hypothesis testing uses sample data to assess claims about population means and proportions, with conclusions framed as rejecting or not rejecting the null hypothesis rather than proving a claim. He demonstrates the P-value method with Excel, including t tests for means and z tests for proportions, and works through four examples using significance levels, sample statistics, and raw data.
Key takeaways
- The alternative hypothesis determines the test direction: > is right-tailed, < is left-tailed, and ≠ is two-tailed, which in turn determines the P-value calculation.
- For a mean with unknown population standard deviation, use t = (x̄ − μ0) / (S / √n) and n − 1 degrees of freedom; the startup example produced t ≈ 2.618 and P ≈ 0.006.
- For a population proportion, use z = (p̂ − p0) / √[p0(1 − p0) / n]; the employee survey produced z ≈ −2.58 and P ≈ 0.005.
- The decision rule is to reject H0 when P ≤ alpha and fail to reject it when P > alpha; failure to reject is not proof that the null hypothesis is true.
- A statistically significant result supports the alternative claim but does not prove it; conclusions should be phrased in terms of evidence from the sample.
- Raw observations can be converted into test inputs with Excel: AVERAGE and a sample standard deviation function for mean tests, and counts or ratios for sample proportions.
Chapters
- Module 2 reviews ISDS 2000 material on hypothesis tests, comparisons of two population parameters, and chi-squared tests.
- Section 2.1 moves from descriptive statistics to inference about population means and proportions.
- The null hypothesis, H0, represents no change, effect, or difference; the alternative, HA, challenges that status quo.
- An alternative hypothesis with > defines a right-tailed test, < defines a left-tailed test, and ≠ defines a two-tailed test.
- Test outcomes are to reject H0 or fail to reject H0; failing to reject does not establish that H0 is true.
- A Type I error occurs when a true H0 is rejected; its controlled rate is alpha, often set at 0.01, 0.05, or 0.10.
- The workflow is to state H0 and HA, identify the claim, choose alpha, calculate the test statistic, and find the P value.
- Compare the P value with alpha: a P value less than or equal to alpha leads to rejecting H0.
- The direction of HA determines the test tail and therefore which Excel calculation to use.
- When the population standard deviation is unknown, the mean test uses the sample standard deviation S and a Student t distribution.
- The test statistic is t = (x̄ − μ0) / (S / √n), where μ0 is the hypothesized mean and n is the sample size.
- The t distribution uses n − 1 degrees of freedom; Excel commands depend on whether the test is left-, right-, or two-tailed.
- A sample proportion test uses z = (p̂ − p0) / √[p0(1 − p0) / n].
- Percentages and ratios, such as 150 out of 200, indicate a population proportion; convert percentages to decimals before calculating.
- Proportion tests use the standard normal distribution, with Excel's NORM.S.DIST function selected according to the tail.
- A startup claims its phone lasts more than twice as long as a leading phone with a 12-hour battery life, setting the benchmark at 24 hours.
- Because the question concerns an average and supplies a sample standard deviation, the parameter is the population mean, μ.
- The hypotheses are H0: μ ≤ 24 and HA: μ > 24, making this a right-tailed test.
- The sample contains 45 phones, with mean battery life 25.6 hours and sample standard deviation 4.1 hours.
- Substituting x̄ = 25.6, μ0 = 24, S = 4.1, and n = 45 gives t ≈ 2.618.
- Brad Hall demonstrates entering the numerator and denominator as separate parenthesized parts in Excel to avoid errors with a complex fraction.
- For the right-tailed mean test, Excel's T.DIST.RT uses t ≈ 2.618 and 44 degrees of freedom to produce a P value of about 0.006.
- With alpha = 0.05, the P value is smaller than alpha, so the null hypothesis is rejected.
- The data support the startup's claim that average battery life exceeds 24 hours, but do not prove the claim.
- A prior estimate says 82% of employees may quit because of limited progression; a manager tests whether the percentage has decreased.
- The claim is a population-proportion decrease, so H0: p ≥ 0.82 and HA: p < 0.82 define a left-tailed test.
- The survey has 150 likely quitters among 200 employees, giving p̂ = 0.75 and n = 200.
- Using p̂ = 0.75, p0 = 0.82, and n = 200 in the proportion test formula gives z ≈ −2.58.
- For the left tail, Excel's NORM.S.DIST with the cumulative argument set to TRUE returns a P value of about 0.005.
- The negative z statistic reflects a sample proportion below the hypothesized 0.82.
- Comparing P ≈ 0.005 with alpha = 0.05 leads to rejecting H0.
- The data support the manager's claim that the proportion of employees likely to quit because of limited progression has decreased.
- The written conclusion should address the alternative claim, not say that the alternative has been proven.
- A portfolio analyst tests whether average Dow Jones trading volume has decreased from a hypothesized mean of 4,000.
- The 30 observations require a population-mean test; Excel's AVERAGE and sample-standard-deviation function provide x̄ ≈ 3,959.53 and S ≈ 406.548.
- Substituting those values and n = 30 into the t formula gives a test statistic of approximately −0.545.
- The claim of a decrease makes this a left-tailed test; Excel's T.DIST function with t ≈ −0.545 and 29 degrees of freedom gives P ≈ 0.2949.
- Because 0.2949 exceeds alpha = 0.05, the test fails to reject H0.
- The data do not provide sufficient evidence for the decrease claim; that result does not prove the hypothesized mean is correct.
- The final example tests whether the proportion of adult non-smokers is greater than 50%, using H0: p ≤ 0.50 and HA: p > 0.50.
- A sample of 40 adults contains 26 non-smokers, so p̂ = 0.65 and the right-tailed proportion-test statistic is z ≈ 1.90.
- Excel's right-tail calculation, 1 − NORM.S.DIST(1.90, TRUE), gives P ≈ 0.0289; since this is below 0.05, the data support a non-smoker proportion above 50%.
Transcript excerpt
0:01 Hey everyone. This is the start of module two, where we start going over the remaining concepts from ISDS 2000. In particular, this module covers hypothesis testing, inferences involving two population parameters, and various chi-squared tests. And so, we'll go ahead and start off with the section 2.1 on hypothesis testing. So, again, these next three sections are going to be all review-based from ISDS 2000, and any prerequisite understanding you need from any of these remaining sections will be taught in order to help you with the remaining material.
0:50 So, to start to get an idea of hypothesis testing, something to keep in mind is that hypothesis testing is a very important idea in statistics. On one uh one hand, hypothesis testing is really helpful because this is now our transition from descriptive statistics to now inferential statistics. So, now this is where we start to try to infer information about a population parameter. And in this case, as far as this section goes, we'll look primarily at doing this for the mean or the proport- uh proportion. So, that's the
1:37 population mean or the population proportion. And the way in which we set up hypothesis testing, if you recall from ISDS 2000, it's very similar to how in a court proceeding, you find someone as guilty or not guilty. So, this sort of analogy lines up with the idea of a null versus alternative hypothesis. So, the null hypothesis, which we will denote H the H0, sometimes it's referred to mathematically as H naught. So, if you hear me say that, it's just H
2:24 with a subscript of a zero. That's the statement that we ultimately want to test. This is ultimately the statement of no change, no effect, or no difference. It's It's assumed true until evidence
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Brad Hall.