Hypothesis Testing Solved Examples(Questions and Solutions)

Here is a list hypothesis testing exercises and solutions. Try to solve a question by yourself first before you look at the solution.

Question 3
In a packaging plant, a machine packs cartons with jars. It is supposed that a new machine would pack faster on the average than the machine currently used. To test the hypothesis, the time it takes each machine to pack ten cartons are recorded. The result in seconds is as follows.

New MachineOld Machine
42.1 42.7
41 43.6
41.3 43.8
41.8 43.3
42.4 42.5
42.8 43.5
43.2 43.1
42.3 41.7
41.8 44
42.744.1

Question 5
A clinic provides a program to help their clients lose weight and asks a consumer agency to investigate the effectiveness of the program. The agency takes a sample of 15 people, weighing each person in the sample before the program begins and 3 months later.
The results a tabulated below

Question 6
A sample of 20 students were selected and given a diagnostic module prior to studying for a test. And then they were given the test again after completing the module. .
The result of the students scores in the test before and after the test is tabulated below.

Question 7
A study was performed to test wether cars get better mileage on premium gas than on regular gas. Each of 10 cars was first filled with regular or premium gas, decided by a coin toss, and the mileage for the tank was recorded. The mileage was recorded again for the same cars using other kind of gasoline.
Determine wether cars get significantly better mileage with premium gas.

How to Conduct Wilcoxon Signed Rank Test

Question 9
Blood pressure reading of ten patients before and after medication for reducing the blood pressure are as follows

Patient: 1,2,3,4,5,6,7,8,9,10
Before treatment: 86,84,78,90,92,77,89,90,90,86
After treatment: 80,80,92,79,92,82,88,89,92,83

Question on ANOVA
Sussan Sound predicts that students will learn most effectively with a constant background sound, as opposed to an unpredictable sound or no sound at all. She randomly divides 24 students into three groups of 8 each. All students study a passage of text for 30 minutes. Those in group 1 study with background sound at a constant volume in the background. Those in group 2 study with nose that changes volume periodically. Those in group 3 study with no sound at all. After studying, all students take a 10 point multiple choice test over the material. Their scores are tabulated below.

Question 11
Using the following three groups of data, perform a one-way analysis of variance using α = 0.05.

Group 1Group 2Group 3
512356
454376
332374
454387
674556

Question 12
In a packaging plant, a machine packs cartons with jars. It is supposed that a new machine would pack faster on the average than the machine currently used. To test the hypothesis, the time it takes each machine to pack ten cartons are recorded. The result in seconds is as follows.

New Machine: 42,41,41.3,41.8,42.4,42.8,43.2,42.3,41.8,42.7
Old Machine: 42.7,43.6,43.8,43.3,42.5,43.5,43.1,41.7,44,44.1

Question 13
A random sample 500 U.S adults are questioned about their political affiliation and opinion on a tax reform bill. We need to test if the political affiliation and their opinon on a tax reform bill are dependent, at 5% level of significance. The observed contingency table is given below.

favorindifferentopposedtotal
democrat1388364285
republican646784215
total202150148500

Question 14
Can a dice be considered regular which is showing the following frequency distribution during 1000 throws?

Thrown Value123456
Frequency182154162175151176

Solution to Question 15

Question 16
A newly developed muesli contains five types of seeds (A, B, C, D and E). The percentage of which is 35%, 25%, 20%, 10% and 10% according to the product information. In a randomly selected muesli, the following volume distribution was found.

ComponentABCDE
Number of Pieces1841451006363

Question 17
A research team investigated whether there was any significant correlation between the severity of a certain disease runoff and the age of the patients. During the study, data for n = 200 patients were collected and grouped according to the severity of the disease and the age of the patient. The table below shows the result

Age
below 4040 – 60above 60
runoffslight41349
average252512
serious63315

Question 18
A publisher is interested in determine which of three book cover is most attractive. He interviews 400 people in each of the three states (California, Illinois and New York), and asks each person which of the cover he or she prefers. The number of preference for each cover is as follows:

CaliforniaIllinoisNew YorkTotal
First Cover8160182323
Second Cover789395266
Third Cover241247123611
Total4004004001200

Question 19
Trees planted along the road were checked for which ones are healthy(H) or diseased (D) and the following arrangement of the trees were obtained:

H H H H D D D H H H H H H H D D H H D D D

Test at the = 0.05 significance wether this arrangement may be regarded as random

Question 20
Suppose we flip a coin n = 15 times and come up with the following arrangements

H T T T H H T T T T H H T H H

(H = head, T = tail)

Test at the alpha = 0.05 significance level whether this arrangement may be regarded as random.