Stat2100 Exer9 de Gracia Milbert R
Stat2100 Exer9 de Gracia Milbert R
Stat2100 Exer9 de Gracia Milbert R
BSAC 2-2
Excersie #9
1. Determine whether there is significant difference in the selling price among diesel and petrol type
of cars.
Statistic df p
Claims: There is significant difference in the selling price among diesel and petrol type of
cars. (Mean1 =/ Mean2 )
Step 1
Ho: Mean1 = Mean2
Ha: Mean1 =/ Mean2 ( claim)
Step 2
The test to use is independent-samples t-test since the assumptions such
as homogeneity test (Levene’s test = 0.489)
Since the alternative hypothesis is μ1 ≠ μ2, therefore the tail of the
distribution is two-tailed test
Level of significance: α = 0.05
2. Determine whether there is significant difference in the km driven among diesel and petrol type of cars.
Independent Samples T-Test
Independent Samples T-Test
Statistic df p
ᵃ Levene's test is significant (p < .05), suggesting a violation of the assumption of equal variances
Claims: There is significant difference in the selling price among diesel and petrol type of
cars. (Mean1 =/ Mean2 )
Step 1
Ho: Mean1 = Mean2
Ha: Mean1 =/ Mean2 ( claim)
Step 2
The test to use is independent-samples t-test since the assumptions such
as homogeneity test (Levene’s test = 0.028)
Since the alternative hypothesis is μ1 ≠ μ2, therefore the tail of the
distribution is two-tailed test
Level of significance: α = 0.05
3. Determine whether there is significant linear relationship between selling price and km driven.
Correlation Matrix
Correlation Matrix
selling_price km_driven
selling_price Pearson's r —
p-value —
Step 1
Ho: There is no significance linear relationship between Selling price and KM driven
Ha: There is significance linear relationship between Selling price and KM driven
Step 2
The Test to use is Pearson correlation since both of the variables are continuous
Level of significance: α = 0.05
Step 4
Based on the result of jamovi, the value of the Pearson correlation is -0.275 and the P value is 0.034
Step 5
Since the P value is less than a=0.05, reject Ho
Step 6
At 5% level of significance, there is enough evidence to conclude that there is a significant linear relationship between
selling price and km driven.
4. Create regression equation to predict the selling price using km driven as explanatory variable.
Interpret the slope, intercept and
Linear Regression
Model Fit Measures
Model R R²
1 0.275 0.0755
Predictor Estimate SE t p
Contingency Tables
Contingency Tables
transmission
Diesel 17 13 30
Petrol 9 21 30
Total 26 34 60
χ² Tests
Value df p
χ² 4.34 1 0.037
N 60
Plots
Step 1
Ho: Fuel and transmission are not related
Ha: Fuel and transmission are related
Step 2
The test to use is Chi-Square test of association since the goal is to find the relationship among qualitative variables
levek of significance : a=0.05
Step 3
Reject Ho if P-value < a=0.05
Step 4
Based on the result of jamovi, the P-value for chi-square test of association is 0.037
Step 5
Since P value is less than a=0.05, reject Ho
Step 6
At 5% level of significance, there is enough evidence to conclude that fuel and transmission are related.