Professional Documents
Culture Documents
Statistika Two Means Different Test
Statistika Two Means Different Test
Statistika Two Means Different Test
A. Introduction
Two Mean Difference Test is a statistical test that compares the means of 2 groups of data.
Or if a researcher wants to know whether the parameters of two populations are different or not,
then the statistical test used is called the difference between two means test. Generally, the
approach taken can be a Z distribution (Z test), or a t distribution (t test). The Z test can be used
if; (1) the population standard deviation (σ) is known, and (2) the sample size is large (> 30). If
these two conditions are not met, then the type of test used is a two sample t-test.
Before we carry out statistical tests on two groups of data, we need to pay attention to
whether the two groups of data come from two independent groups or come from two
dependent groups/pairs. It is said that the two groups of data are dependent if the data of one
group is independent of the data of the second group. On the other hand, the two groups of data
are said to be dependent or paired if the data groups whose data are compared are mutually
dependent. Based on the characteristics of the data, the difference test for two means is divided
into two groups. , namely the test of the difference between two independent means and the
test of the difference in dependent means.
The principle of testing two means is to see the difference in variation between the two
groups of data. Therefore, in this test information is needed whether the variance of the two
groups being tested is the same or not. The variant form of the two data groups will influence
the standard error value which will ultimately differentiate the test formula.
Information:
𝑛1 or 𝑛2 = number of samples in group 1 or 2
𝑆1 or 𝑆2 = sample standard deviation of groups l and 2
Sp = population standard deviation
>FORMULA:
OR
Information:
𝑑 = Average deviation or difference between sample 1 and sample 2
𝑆𝐷𝑑= standard deviation of the deviation or difference between sample 1 and sample 2
D. SAMPLE QUESTIONS
1. Someone believes that the average working hours of workers in areas A and B are the
same as alternative A is greater than B. For this reason, samples were taken in both
areas of 100 and 70 respectively with a mean and standard deviation of 38 and 9 hours
respectively. per week and 35 and 7 hours per week. Test this opinion with a real level of
5%
Answer :
n1= 100 x1= 38 Sp1=9
n2= 70 x2= 35 Sp2=7
Ho The average working hours of workers in areas A and B are the same.
H₁ Average working hours of workers in area A > B.
Ho, accepted when Z count < or = Z table
Ho, rejected when Z count > Z table
So, from the calculation above, the calculated Z is greater than the Z table, so the null
hypothesis (Ho) is rejected so that the average working hours of workers in area A are
greater than in area B.
2. A Ministry of Health official was of the opinion that the average nicotine contained in
cigarette A was higher than in cigarette B. To prove his opinion, he was researched by
taking random samples of 10 cigarettes A and 8 cigarettes B. The results of data
processing reported that, the average nicotine content cigarette A is 23.1 mg with a
standard deviation of 1.5 mg. Meanwhile, cigarette B has an average nicotine content of
20.0 mg with a standard deviation of 1.7 mg. Based on this data, test the opinion of the
Ministry of Health official using an alpha of 5%.
Answer: The first step is to check the homogeneity of the variance of the two data using
the F test.
Hypothesis: Ho : 𝜎12 = 𝜎22 (variance of nicotine levels in cigarette A is the same as
variation in nicotine levels in cigarette B)
Ha: 𝜎12 ≠ 𝜎22 (variant nicotine content in cigarette A is different from the
variant in nicotine content in cigarette B)
F Test Calculation:
From the value of F and the two dfs, then look at table F, 𝑑𝑓1=7 as the numerator, and
𝑑𝑓2 = 9 as the denominator. The F distribution table is used to help test hypotheses
where the F distribution table is a help table when using F test statistics. The following
explanation will provide an explanation of how to read and use the F distribution table in
hypothesis testing. One form of F table structure available is as follows:
The table title usually contains information regarding the probability values of the F table
presented. In the example above, the probability is 0.05.
The title of each column starting from the second column (numbers in bold) of the table
is the degree of freedom (df) for the numerator, or known as 𝑑𝑓1. Also often symbolized
in table F with the symbol N1 as in the table above. Next, the title of each row is the
degree of freedom (df) for the denominator, or known as 𝑑𝑓2. Also often symbolized in
table F with the symbol N2 as in the table above.
From testing the hypothesis in the question above, it is known that 𝑑𝑓1 =7 is the
numerator, and 𝑑𝑓2 = 9 is the denominator. So in the F table below, it can be seen that
the F table values are:
In the question above, the value Fcount = 1.28 and Ftable = 3.29 is obtained so that the
decision: H0 fails to be rejected, meaning that the variance in the nicotine content of
cigarette A is the same as the variance in the nicotine content of cigarette B.
The next step is to test the difference in the means of the two groups of data using the t
test for the same variance.
With Ha as above, it means the test is one tail (one direction / one side). Calculation of
the T test:
3. A researcher wants to know the effect of Vitamin B12 on anemia. A total of 10 patients
were given vitamin B12 injections and their blood Hb levels were measured before and
after treatment. The measurement results are as follows:
Before: 12.2 11.3 14.7 11.4 11.5 12.7 11.2 12.1 13.3 10.8
After: 13.0 13.4 16.0 13.6 14.0 13.8 13.5 13.8 15.5 13.2
Try to prove whether there is a difference in Hb levels between before and after giving
an injection of Vit B12 with alpha 5%.
Answer:
Hypothesis
H0: 𝛿 ≠ 0 (there is no difference in Hb levels between before and after
administering Vit B12)
Ha: 𝛿 = 0 (there is a difference in Hb levels between before and after giving Vit
B12)
t Test Calculation:
The average deviation (d) = 18.6/10 = 1.86
Standard deviation of the deviation value (𝑆𝐷𝑑) = 0.60
From the question above, t = 9.83 and df = 10 - 1 = 9, so the value of t table = 2.26.
Determine whether there is a difference in the effectiveness of the drug on weight loss,
alpha = 5%.
Answer:
So the standard deviation obtained is 12/10= 1.2 and the standard deviation of the
deviation is 2.53 and the number of data (n) is 10. So the T count is:
From the question above, t = 1.50 and df = 10 - 1 = 9, so the value of t table = 2.26.
5. A pair of regional head candidates will conduct vision and mission maturation training for
their 10-person success team. To find out whether the training was effective or not, their
knowledge score regarding the vision and mission before being given the training and
after being given the training was recorded. The following is the score data: (numbers in
the value range 0 to 100)
With a confidence level of 95%, can it be concluded that providing training is effective in
increasing knowledge about the candidate's vision and mission?
Answer :
● Hypothesis
Ho: Providing training is not effective in increasing knowledge about vision and
mission
H1: Providing effective training increases knowledge about vision and mission
● T table with a significance level (alpha) of 5% = 0.05 and df=n-1=10-1=9, so that
the t table has a value of 1.833
● Test Statistics
E. ASSIGNMENT
1. A fish feed company recommends that with its artificial feed at the age of 3 months catfish
can have an average body weight of 500 grams / head. Furthermore, observations were made
in the rearing ponds that used the feed. From a random sample of 36 catfish in the pond, data
on the average body weight of 490 grams / head with a standard deviation of 35 grams were
obtained. Based on these observations, prove whether the feed manufacturer's statement is
true? Use a significance level of 0.05.
2. Suppose from the pond example above, 16 samples were taken and after weighing, it was
found that the average weight was 515 grams/head with a standard deviation of 32 grams.Test
with a significance level of 0.05, is the recommendation correct?
3. A brand of medicine is given to a group of Arowana fish that are suffering from disease. To
determine the effect of the drug, feed consumption was weighed before and after 7 days of
being given the drug. It is asked whether the average measurement before and after treatment
is the same or different. It is necessary to test whether the treatment given has an effect or not.