logo

Hypothesis Testing Assignment

Perform hypothesis tests to identify significant differences in wages for different groups in the data set.

9 Pages2166 Words306 Views
   

Added on  2022-08-28

Hypothesis Testing Assignment

Perform hypothesis tests to identify significant differences in wages for different groups in the data set.

   Added on 2022-08-28

ShareRelated Documents
Hypothesis Testing
Student Name:
Instructor Name:
Course Number:
23rd March 2020
Hypothesis Testing Assignment_1
1. Analysis techniques such as t-test or one-way ANOVA assume that the data being compared
comes from normal distributions. Assess the normality of the wage variable in the Wage data set.
Is a normal assumption appropriate? If not, what normal transformation can be applied? In the
comparisons to assess significant differences, you should use the transformed values.
Answer
We assess the normality of the wage variable in the Wage data set using a histogram as shown
below;
From the above histogram, it is evident that the wage variable is not normally distributed but is
rather skewed to the right (longer tail to the right).
We confirm this using Shapiro-Wilk test where the results are presented below;
> shapiro.test(Wage$wage)
Shapiro-Wilk normality test
data: Wage$wage
W = 0.87957, p-value < 2.2e-16
The above results further confirm that the variable wage is does not follow a normal distribution
(p < 0.05).
2. Use an independent t-test to determine whether or not there is a significant difference in wages
for the information and industrial sectors using the variable jobclass.
Answer
Hypothesis Testing Assignment_2
Null and alternative hypotheses
In this section we sought to test the following hypothesis;
Null hypothesis (H0): There is no significant difference in the wages for the information and
industrial sectors.
Alternative hypothesis (HA): There is significant difference in the wages for the information and
industrial sectors.
Significance level alpha and corresponding critical t-value
The significance level used is 5% level (α = 0.05) and the corresponding critical t-value is given
as 1.961.
Calculated t-value and corresponding p-value
An independent t-test was computed and the results are presented below;
> t.test(logwage~jobclass)
Welch Two Sample t-test
data: logwage by jobclass
t = -11.468, df = 2948.3, p-value < 2.2e-16
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.1692574 -0.1198298
sample estimates:
mean in group 1. Industrial mean in group 2. Information
4.583753 4.728297
From the t-test results, the calculated t-value is t = -11.468 and the corresponding p-value is
0.000 (Fay & Proschan, 2014).
Hypothesis test decisions
We reject the null hypothesis if the p-value is less than 5% level of significance and from the
results we will have to reject the null hypothesis (p < 0.05).
Statement as to whether that alternative hypothesis is true
Rejecting the null hypothesis implies that the alternative hypothesis is true.
Description of what the hypothesis means
Hypothesis Testing Assignment_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Analysis of Film Thickness Variables
|9
|1545
|75

Statistics: ANOVA, Regression Analysis and Hypothesis Testing
|9
|832
|317

Statistical Tests - Assignment
|6
|985
|128

Statistics: ANOVA, Regression Analysis and Hypothesis Testing
|10
|1103
|376

Assignment On Statistics
|10
|481
|54

Assignment of Descriptive Statistics
|12
|1620
|76