2 Testing Of Hypothesis

Statistics II · Unit 2 · 8 hrs

Testing of hypothesis

Exam-focused notes for Testing of hypothesis (Statistics II, STA215): what the TU syllabus asks and how it has actually been tested, with 12 solved past questions from this unit.

What this unit covers

  • Types of statistical hypotheses
  • Power of the test, concept of p-value and use of p-value in decision making
  • steps used in testing of hypothesis
  • one sample tests for mean of normal population (for known and unknown variance)
  • test for single proportion
  • test for difference between two means and two proportions
  • paired sample t-test
  • Linkage between confidence interval and testing of hypothesis
  • Problems and illustrative examples related to computer Science and IT

paired sample t-test

208110 marks

T-Test for Difference Between Two Sample Means

Paired measurements of gripping strength for 8 left-handed writers: Person 1 2 3 4 5 6 7 8 -------------------------------- Left (L) 112 131 142 90 125 130 95 90 Right (R) 104 136 135 86 132 120 86 85 - $n = 8$ - $\alpha = 0.05$ - Claim: left hand strength ...

Full solved answer →
207910 marks

Hypothesis Testing: Type I and Type II Errors

Define Type I and Type II error in testing of hypothesis. A psychologist wishes to verify that a certain drug increases the reaction time to given stimulus. The following reaction times (in tenth of seconds) were recorded before and after injection of the drug for each of four subjects. Test at 5% level of significance to determine whether the drug significantly increases the reaction time.

Reaction TimeSubject 1Subject 2Subject 3Subject 4
Before721212
After1331813

[10]

Type I Error (α): Rejecting a null hypothesis $H0$ when it is actually true. Its probability equals the level of significance, denoted $\alpha$. Type II Error (β): Failing to reject (accepting) a null hypothesis $H0$ when it is actually false. Its probabili...

Full solved answer →

one sample tests for mean of normal population

20815 marks

The mean drying time of a brand of spray paint is known to be 122 seconds. The research division of the company that produces this paint contemplates that adding a new chemical ingredient to the paint accelerate the drying process. To investigate this conjecture, the paint with the chemical additions is sprayed on 50 surfaces and the drying time is recorded. The mean and standard deviation of drying time computed from these recorded are found as 116 seconds and 16.8 seconds respectively. Does these data provide strong evidence that the mean drying time is reduced by the addition of the new chemical? Use 5% level of significance. Also find p-value. [5]

- Population (claimed) mean: $\mu0 = 122$ seconds - Sample size: $n = 50$ - Sample mean: $\bar{X} = 116$ seconds - Sample standard deviation: $s = 16.8$ seconds - Significance level: $\alpha = 0.05$ - $H0: \mu = 122$ (no reduction) - $H1: \mu < 122$ (drying...

Full solved answer →
20785 marks

Hypothesis Testing for Average Age of CSIT Students

Step 1: Set up Hypotheses

  • Null Hypothesis (H₀): $\mu = 22$ (The average age of enrolling students is 22 years)
  • Alternative Hypothesis (H₁): $\mu < 22$ (The average age is less than 22 years)

This is a left-tailed test at 5% level of significance.

Step 2: Sample Data

| 20 | 19 | 22 | 23 | 19 | 20 | 20 | 21 | 22 | 20 | 19 | 20 |

Sample size: $n = 12$

Step 3: Calculate Sample Statistics

Sample mean: $$\bar{x} = \frac{20 + 19 + 22 + 23 + 19 + 20 + 20 + 21 + 22 + 20 + 19 + 20}{12} = \frac{245}{12} = 20.417$$

Sample standard deviation: $$s = \sqrt{\frac{\sum(x_i - \bar{x})^2}{n-1}} = \sqrt{\frac{26.917}{11}} = \sqrt{2.447} = 1.564$$

Step 4: Test Statistic

Since the population is normally distributed and population standard deviation is unknown, we use the t-test:

$$t = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} = \frac{20.417 - 22}{1.564/\sqrt{12}} = \frac{-1.583}{0.451} = -3.511$$

Step 5: Critical Value

For a left-tailed test with $\alpha = 0.05$ and $df = n - 1 = 11$: $$t_{0.05, 11} = -1.796$$

Step 6: Decision

Since $t = -3.511 < -1.796$, we reject the null hypothesis.

Conclusion: At the 5% level of significance, there is sufficient evidence to support the researcher's doubt that the average age of CSIT enrolling students is less than 22 years. [5]

- Claimed population mean: $\mu0 = 22$ years - Sample data: 20, 19, 22, 23, 19, 20, 20, 21, 22, 20, 19, 20 - Sample size: $n = 12$ - Level of significance: $\alpha = 0.05$ - Population normal, population SD unknown → one-sample t-test - $H0: \mu = 22$ (aver...

Full solved answer →
20775 marks

A dealer of a DELL company located at New Road claimed that the average lifetime of a multimedia projector produced by Dell Company is greater than 60,000 hours with standard deviation of 6000 hours. In order to test his claim, sample of 100 DELL projectors are taken and the average life time was monitored and it was found to be 55,000 hours. Test the claim of the dealer at 5% level of significance. [5]

Parameter Value ------------------ Claimed population mean $\mu = 60{,}000$ hours Population standard deviation $\sigma = 6{,}000$ hours Sample size $n = 100$ Sample mean $\bar{X} = 55{,}000$ hours Level of significance $\alpha = 0.05$ Since $n = 100$ (larg...

Full solved answer →

test for single proportion

20815 marks

Discuss the concept of level of significance in hypothesis testing. A manufacturer of laptop provides a particular model in one of three colors. Of the first 100 laptops sold, it is noted that 80 were the first color. Can you conclude that more than two third of all the customers have a preference for the first color? Use 5% level of significance. [5]

The level of significance (denoted α) is the probability of rejecting the null hypothesis $H0$ when it is actually true. It is the maximum acceptable probability of committing a Type I error. - Fixed in advance of the test (typically $1\%$, $5\%$, or $10\%$...

Full solved answer →
20805 marks

Define type I and type II error in testing of hypothesis. It is claimed that Samsung and Huawei mobiles are equally popular in Kathmandu. A random sample of 600 people from Kathmandu showed 350 have Samsung mobile. Test the claim at 5% level of significance. [5]

- Sample size: $n = 600$ - Number with Samsung: $X = 350$ - Claim: equally popular, so $p0 = 0.5$ - Level of significance: $\alpha = 0.05$ --- Type I Error ($\alpha$): Rejecting the null hypothesis $H0$ when it is actually true. Its probability equals the l...

Full solved answer →
20795 marks

It is claimed that Samsung and Redmi mobiles are equally popular in Kathmandu. A random sample of 500 people from Kathmandu showed 300 have Samsung mobile. Test the claim at 5% level of significance. [5]

- Sample size: $n = 500$ - Samsung users: $X = 300$ - Level of significance: $\alpha = 0.05$ - Claimed proportion (equal popularity): $p0 = 0.5$ --- Sample proportion: $$\hat{p} = \frac{X}{n} = \frac{300}{500} = 0.60$$ - $H0: p = 0.5$ (Samsung and Redmi are...

Full solved answer →

test for difference between two means and two proportions

20785 marks

The following are the details of working hours in the classroom per week of male and female faculty working in the area of Computer Science and Information Technology at Tribhuvan University. Apply independent t-test to examine the average working hour in the classroom per week is significantly different between male and female faculty, at 1% level of significance. State also null and alternative hypotheses appropriately.

Male FacultyFemale Faculty
Sample Size6030
Average working hours per week129
The standard deviation of a working hour per week43

[5]

Male Faculty Female Faculty --------- Sample size $n1 = 60$ $n2 = 30$ Mean working hours $\bar{X}1 = 12$ $\bar{X}2 = 9$ Standard deviation $S1 = 4$ $S2 = 3$ Level of significance: $\alpha = 0.01$ (two-tailed) --- Null Hypothesis $H0: \mu1 = \mu2$ There is n...

Full solved answer →
20785 marks

In location 1, there are 250 corona-positive cases out of 460 persons, and in location 2, 250 positive cases were reported out of 650 persons. Can it be concluded that the proportion of corona-positive cases is higher in location 1 compared to location 2? Test at a 10% level of significance. [5]

Location 1 Location 2 --------- Sample size $n1 = 460$ $n2 = 650$ Positive cases $x1 = 250$ $x2 = 250$ Level of significance: $\alpha = 0.10$ --- $$\hat{p}1 = \frac{250}{460} = 0.5435$$ $$\hat{p}2 = \frac{250}{650} = 0.3846$$ --- - $H0: P1 = P2$ (proportion...

Full solved answer →
207510 marks

What do you mean by hypothesis? Describe null and alternative hypothesis. A company claims that its light bulbs are superior to those of the competitor on the basis of study which showed that a sample of 40 of its bulbs had an average life time 628 hours of continuous use with a standard deviation of 27 hours. While sample of 30 bulbs made by the competitor had an average life time 619 hours of continuous use with a standard deviation of 25 hours. Test at 5% level of significance, whether this claim is justified.[10]

A hypothesis is a tentative statement or assumption about a population parameter (mean, proportion, variance, etc.) that is subject to verification using sample data through statistical testing. The null hypothesis is a statement of "no difference" or "no e...

Full solved answer →

Linkage between confidence interval and testing of hypothesis

20775 marks

Independent t-test and Confidence Interval Analysis

Based on the following information, perform the following:

a. Test whether two means are significantly different (α = 5%) using independent t-test.

b. Compare 95% confidence interval estimation for the difference of means.

c. Show the linkage between testing of hypothesis and confidence interval estimation in this problem.

Group IGroup B
Sample mean1015
Sample Standard Deviation35
Sample Size4964

[5]

Group I Group B --------- Sample mean $\bar{X}1 = 10$ $\bar{X}2 = 15$ Sample SD $S1 = 3$ $S2 = 5$ Sample size $n1 = 49$ $n2 = 64$ - Significance level: $\alpha = 0.05$ - Confidence level: 95% Note: Both samples are large ($n1, n2 30$), so the sampling distr...

Full solved answer →