Professional Documents
Culture Documents
Probability and Statistics: Vietnam National University - HCMC
Probability and Statistics: Vietnam National University - HCMC
Class: CC01
Lecturer: Phan Thị Khánh Vân
No. Name of students ID
.
1.The Theory
1.1 Statistical Hypothesis Testing
Hypothesis testing is an act in statistics whereby an analyst test an
assumption regarding a population parameter. The methodology
employed by the analyst depends on the nature of the data used and
the reason for the analysis.
The Code:
Step4 : Conclusion
We have: p-value = 0.002189, α = 0.05
=> p-value < α => reject H0 => There is a difference in the use of
means of transport to work in the two groups of sex
2.2 Question 2:
Method used: Chi-squared test
The Code:
H0: the level of life satisfaction is equally distributed
H1: the level of life satisfaction is not equally distributed
The Process:
Step1: Input
=> p-value<α => reject H0 => the level of life satisfaction is not equally
distributed
2.3 Question 3:
Solving method: ANOVA test
The Process:
Step1: Input data and number of columns
Step3:
- Compare p-value of var1 (days of week) with the given significant
level and giving conclusion p-value=0.0181; α=0.02
Conclusion: P-value < α => reject H1=> The amount of newspapers
sold is affected by days of week
- Compare p-value of var2 (districts) with the given significant level
and giving conclusion p-value=0.0773; α=0.02
Conclusion: P-value > α => fail to reject H0=> There are no differences
in the amount of newspapers sold in the 5 districts
2.4 Problem 4:
Solving method: ANOVA test
The Code:
The Process:
Step 1: Input data and number of columns
Step 2: Combine the input data and count the repetition of each groups
3.References:
+ https://en.wikipedia.org/wiki/Chi-squared_test?fbclid=IwAR0-
jmspdYM65IKhE1XxFPljKLRI07mLM6xu0VtNSQzyuJzk5Z4gbWiQJl8
+ https://www.investopedia.com/terms/h/hypothesistesting.asp
+ https://sphweb.bumc.bu.edu/otlt/mph-
modules/bs/bs704_hypothesistesting-anova/bs704_hypothesistesting-
anova_print.html?fbclid=IwAR0cvB2EJieNwpgKBmgVtqJxbt97FuvVXJaw
pYrwPrEpA60_XUqM37LNm0w