USE R AND SHOW CODES!!
A sample of 240 graduate students were selected in random and asked them about the importance of Statistics in their field. The answers scaled from 1 to 25 and then
the sample categorized based on gender. Examine whether the opinions of females and males differ with respect to the importance of Statistics based on data given
DATA
Score (Y) | Gender (X) |
15 | Female |
13 | Male |
10 | Female |
12 | Female |
14 | Male |
14 | Female |
6 | Male |
17 | Male |
13 | Male |
1 | Female |
10 | Male |
10 | Male |
20 | Male |
15 | Male |
5 | Female |
5 | Male |
(a) the variation of score for male and female are same.
(b) the variation of score for male and female are not same.
The R - code is given as follows-
##### Enter the data as the data-name "DATA"
#######Or simply import the data from the EXCEL or other file.
##### T-TEST for two- sample test
t1 = t.test(Score~ Gender, paired = FALSE, data = DATA) ; t1
The result is
Since the p-value is too high, we do not have enough evidence to reject the null hypothesis and conclude that
(a) the variation of score for male and female are same.
Get Answers For Free
Most questions answered within 1 hours.