Professional Documents
Culture Documents
HYPOTHESIS TEST
1. Students know and understand the differences in univariate and bivariate analysis.
2. Students know how to test and understand parametric statistics.
3. Students know and understand the tests used in parametric statistics.
4. Students capable of resolving a case related to parametric statistics.
1. Laptop / PC.
2. SIPO Lab work Module 2021.
3. Software Ms Excel.
4. Software R.
5. Software IBM SPSS Statistics.
UNIVARIATE ANALYSIS
A. Normality Test
Case study
1 11 16 20
2 12 17 15
3 6 18 19
4 16 19 13
5 15 20 5
6 19 21 6
7 11 22 16
8 20 23 5
9 12 24 13
10 17 25 7
11 10 26 7
12 18 27 8
13 15 28 9
14 12 29 12
15 11 30 20
From the data table, is the defect stirling engine data normally distributed? Use the
95% confidence level!
Solution Step
4. After that, import data into the Software R with the following steps: File → Import
dataset → From Excel
Figure 8. 3 Import Files from Ms. Excel
5. Then click the Browse and find file Ms. Excel DATA MODULE 6A
8. To see the data that has been input in Software R can create syntax as shown below.
Figure 8. 7 Syntax to view Excel data
Where :
Where :
1. Hypothesis
𝐻1 : The defect stirling engine for 30 days has not normal distribution
𝑋−𝜇
2. Test Statistic :𝑍 =
𝜎
3. α : 0.05
4. Criteria Test : Reject H0 if the p-value ≤ α
5. Decision : Do not reject H0, because the p-value (0.9705) > 0.05
6. Conclusion : Interpret the results
Case study
1 51 16 71
2 64 17 42
3 75 18 62
4 59 19 60
5 47 20 72
6 80 21 49
7 78 22 59
8 70 23 70
9 78 24 51
10 71 25 61
11 51 26 72
12 42 27 59
13 42 28 60
14 77 29 75
15 46 30 54
The marketing department said that the average sales of Stirling Beta machines for
30 days were 60 engine products. Perform a hypothesis test to test the correctness
of the statement from the marketing department of DOTS Company, and use a 95%
confidence level!
Solution Step
4. After that import data into the Software R with the following steps: File → Import
dataset → From Excel
Figure 8. 11 File Import from Excel
5. Then click the Browse and find file Ms. Excel DATA MODULE 6A
6. In the Import Option, change Sheet from Default to One Sample T Test
Figure 8. 13 Choose Excel Sheet
8. To see the data that has been input in Software R can create the following syntax.
Figure 8. 15 Syntax for the Excel Data View
9. To determine the value of t on Total Sales column can use the following syntax.
Where :
10. To determine the value of alpha (α) on the One Sample T-Test can use the following
syntax.
1. Hypothesis
𝐻0 : The average sales data of stirling engine for 30 days is equal to 60 units
𝐻1 : The average sales data of stirling engine for 30 days is not equal to 60 units
/ – 1
2. Test Statistic : 𝑡 =
23
3. α : 0.05
4. Criteria Test : Reject H0 if t count is not at | t table | or p-value ≤ α
Case study
60 67
40 52
84 96
66 75
98 64
87 48
85 53
30 78
68 83
75 60
115 89
67 85
55 99
94 71
77 54
88 100
91 76
55 93
73 48
29 41
Perform a hypothesis test to see if there is a difference in the average sales of Beta
Stirling products using Youtube Ads and the average sales of Gamma Stirling
products using Facebook Ads! Use the 95% confidence level and normally
distributed data!
Solution Step
4. After that import data into the Software R with the following steps: File →
Import dataset → From Excel
Figure 8. 20 Import Files from Ms. Excel
5. Then click the Browse and find file Ms. Excel DATA MODULE 6A
8. To see the data that has been input in Software R can create the following
syntax.
Figure 8. 24 Syntax for the Excel Data View
9. Then define the column beta and gama stirling for simplicity can use the
following syntax.
10. After the column has been defined, to determine the value of the data variance
can follow the syntax below.
1. Hypothesis
𝐻0 : There is no difference in the average sales of stirling beta and gamma stirling
𝐻1 : There is a difference in the average sales of stirling beta and gamma stirling
45 6 47
2. Test Statistics : 𝑡 =
97 7
9
8 5 ; 7
:5 :7
3. α : 0.05
4. Criteria Test : Reject H0 if t count is not at | t table | or p-value ≤ α
Do not reject H0 if t count is at | t table | or p-value > α
5. Decision : Do not reject H0, because the value of t count = 0.03825 is in
the interval -2.024394 <t <2.024394 and p-value (0.9697) > 0.05
6. Conclusion : Interpret the results
D. Paired Sample T-Test
Case study
The increase in fuel prices caused a number of raw materials for making stirling
engines to also increase. To respond to these conditions, Barutama Company was
forced to increase the selling price of the Sirling Engine by 3% from the previous
selling price. The table on the side is data on demand for Stirling Engine products
before the increase and after the selling price increase.
Table 8. 4 Case study Paired Sample T-Test
39 71
62 70
38 40
46 52
69 60
57 62
55 44
62 59
76 36
49 58
52 52
42 64
73 35
81 48
79 63
By testing the hypothesis, is the average of the Stirling Engine demand data before
the selling price increase the same as the average of the Stirling Engine demand
data after the selling price increase? Use the 95% confidence level if the data is
known to be normally distributed!
Solution Step
4. After that import data into the Software R with the following steps: File → Import
dataset → From Excel
5. Then click the Browse and find file Ms. Excel DATA MODULE 6A
Figure 8. 31 Import Excel Display
6. In the Import Option, change Sheet from Default to Paired Sample T Test.
8. To see the data that has been input in Software R can create the following syntax.
9. Then define Demand Before Selling Price Increase and Demand After Selling
Price Increase to become more simple use the following syntax.
1. Hypothesis
𝐻0 : The average of the demand data before the selling price increase and
after the selling price increase is the same
𝐻1 : The mean of the data before the selling price increase and after the
selling price increase is not the same
45 6 47
2. Test Statistic : 𝑡 =
9 7 97
8 5 ; 7 6=>? 95 @? 97 @
<5 <7 <5 <7
3. α :0.05
A. Pearson correlation
Case study
A test was carried out by the quality control department at ABC Company to
determine the relationship between the intensity of sunlight and the rotational speed
of the stirling engine. The following is the data of sunlight intensity with rotational
speed.
Table 8. 5 Case Study of Pearson Correlation
755 117
800 129
834 126
851 139
940 144
775 120
834 127
865 138
920 142
960 149
Perform hypothesis testing with a 95% confidence level if the data is known to have
been normally distributed!
Solution Step
3. Click the Variable View and change the name of each variable into Intensity and
Rotating Speed, as well as change the Measure in two columns into Scale. Then
change Decimals on Rotating Speed to 5 as follows.
4. Then click Analyze → Correlate → Bivariate, After that, the dialog box will
appear Bivariate Correlation. Input Intensity and Rotating Speed into Variables
column as below. Then checklist Pearson in Correlation Coefficients choice and
click on the Two-tailed in Test of Significance and checklist at Flag Significant
Correlations.
Figure 8. 39 Dialog Box: Bivariate Correlation
5. Click Options, and then select Exclude cases listwise in Missing Values. Then
click Continue → OK.
1. Hypothesis
𝐻0 : There is no relationship between sunlight intensity and
rotational speed
𝐻1 : There is a relationship between sunlight intensity and
rotational speed
B∑ 4DED6(∑ 4D)(ED)
2. Test Statistic : 𝑟 = ; − 1 ≤ 𝑟 ≤ 1
H[B ∑ 4D 7 6(∑ 4D)7][B ∑ ED 7 6(∑ ED)7 ]
3. α : 0.05
4. Criteria Test : Reject H0 if the p-value ≤ α
B. Partial Correlation
Case study
SIPO STEEL wants to conduct research on the steel plate coating process. The
research was conducted to see the relationship between the hardness of the steel
layer, the duration of the coating process, and the temperature treatment. The
researcher made questions based on two variables, namely the hardness of the steel
layer, the duration of the coating process, and the temperature treatment control
variables.
182 24 49
234 34 47,9
153 16 43,4
185 26 49,5
392 37 48,4
173 18 45,7
147 14 43,1
197 30 51,2
179 19 46,6
Solution Step
4. Click Analyze → Correlate → Partial, and then the dialog box will appear Partial
Correlation. Input Hardness_Steel_Layer and Duration_Coating into Variables
column. Then enter the Temperature_ Treatment of Controlling for the following
column.
5. Click Options, then select Zero-Order Correlation and select Exclude cases
listwise. Then click Continue → OK.
Figure 8. 45 Dialog Box Partial Correlation: Option
1. Hyptothesis
3. α : 0.05
4. Criteria Test : Reject H0 if the p-value ≤ α
C. Linear regression
Case study
157,41 885
142,28 796
141,99 810
158,85 808
142,94 773
149,42 825
158,56 863
128,29 784
178,95 884
156,04 806
196,98 898
138,69 835
146,78 821
166,50 850
128,35 775
Solution Step
4. Click Analyze → Regression → Linear, Then will come the Linear Regression
dialog box. Enter Reservoir_Temperature to Independent variables, while
Rotating_Speed into the Dependent as shown below.
5. Then click Statistics, select Estimates and Model fit on Regression Coefficients.
Then click Continue.
Figure 8. 50 Dialog Box Linear Regression: Statistics
6. Then click Plots, and enter SDRESID into column Y, then enter ZPRED into
column X. Then check the Histogram and Normal probability plot on
Standardized Residual Plots. Then click Continue.
7. Click Save, and then select the box Standardized Residuals. Then click Continue.
In the picture above, the Stepping Method Criteria option is used the F Test with an
Entry of 0.05. Then checklist Include constant in the equation, and the Missing
Values select Exclude cases listwise. Click Continue then Ok.
9. IBM SPSS output.
a. Outlier test
Outlier Test can be seen from the value of the minimum and maximum of Std. Residual.
b. Normality test
In the histogram curve approaching the normal curve for a perfect bell-shaped seta
based p-residual plots, scattered data obtained diagonal line approach. It shows the data
passed the test of normality or can be used to more accurately test K-S.
c. Heterocedasity Test
Based on the scatterplot, the data does not form a certain pattern and spreads along the
positive Y and negative Y axes, it can be concluded that heteroscedasticity does not
occur.
d. Correlation
Based on the results of SPSS output table summary models obtained correlation value
(R) is 0,819. It showed a strong correlation between temperature and rotational speed
difference stirling.
e. F test
1. Hypothesis
3. α : 0.05
4. Criteria Test : Reject H0 if the p-value ≤ α
1. Hypothesis
3. α : 0.05
4. Criteria Test : Reject H0 if the p-value ≤ α