logo

Statistical Practice: One-sample t-test, Two-sample t-test in R

Complete Assignment 4 for Statistical Practice 1, showing all working, including probability notation, and providing R output and plots where necessary. Ensure all numbers are given to 3 decimal places and all plots and tables have captions. Submit a single word document or PDF file. Penalties apply for late submission or multiple documents.

9 Pages1412 Words85 Views
   

Added on  2023-01-11

About This Document

This document provides a comprehensive guide on statistical practice, focusing on one-sample t-test and two-sample t-test in R. It includes step-by-step instructions, output, and interpretation of the tests. The document also covers the assumptions of normality and provides appropriate plots to test them. Study material and solved assignments on statistical practice are available at Desklib.

Statistical Practice: One-sample t-test, Two-sample t-test in R

Complete Assignment 4 for Statistical Practice 1, showing all working, including probability notation, and providing R output and plots where necessary. Ensure all numbers are given to 3 decimal places and all plots and tables have captions. Submit a single word document or PDF file. Penalties apply for late submission or multiple documents.

   Added on 2023-01-11

ShareRelated Documents
STATISTICAL
PRACTICE
Statistical Practice: One-sample t-test, Two-sample t-test in R_1
1. One-sample t-test in R
(a) First examine the distribution of the total seconds by doing the following:
i. Produce a histogram of the variable seconds in R and include in your assignment.
100
300
500
700
900
1100
1300
1500
1700
1900
0
2
4
6
8
10
12
14
16
18
Histogram
Frequency
Bin
Frequency
ii. Describe the distribution of total seconds
Total seconds in the histogram is positively skewed distributed; which indicates more frequency
of less seconds compare to more seconds taken by song to finish.
(b) Perform a one-sample t-test of the null and alternative hypotheses
H0: μ = 240;
Ha: μ 6= 240;
Where μ is the true population mean duration of songs in seconds on
Spotify. To do this, complete the following steps:
Statistical Practice: One-sample t-test, Two-sample t-test in R_2
i. Perform a one-sample t-test in R and include the output in your assignment
Hypothesized mean
(h):
Sample mean (x):
Sample size:
Sample standard
deviation:
t-statistic: 2.61996
Degrees of freedom: 49
Critical t-value (one-
tailed):
1.67655
1
Critical t-value (two-
tailed): +/- 2.00957524
One-tailed
probability P(h < x):
0.00583
8
One-tailed
probability P(h > x):
0.99416
2
Two-tailed
probability P(h = x):
0.01167
5
Two-tailed
probability P(h ≠ x):
0.98832
5
ii. State the value of the test statistic
Value of test statistic = 2.61996
iii. State the P-value
P-value = 0.011675
iv. State the distribution of the test statistic if the null hypothesis is true
The distribution of the test statistic if the null hypothesis is true is 2.61996 at 49 degree of
freedom and 95% significance value.
v. State whether reject or retain the null hypothesis at the 5% significance level?
Justify your decision.
Null hypothesis will be rejected; as p value is lesser than 0.05 (significance level).
3 0 7 . 9 4 7
5 0
3 5 4 . 1 0 0
2 4 0
Statistical Practice: One-sample t-test, Two-sample t-test in R_3

End of preview

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

Related Documents
STAT 2040 DE Data Analysis Assignment
|11
|1067
|96

Confidence Interval and Hypothesis Testing for Population Mean
|5
|725
|430

Hypothesis Testing Problems and Solutions
|4
|680
|195

Statistical Problems: One Sample t-test, Two Sample t-test, Two Sample Proportion z-test, One-way ANOVA
|8
|1638
|262

Linear Predictability Through A Linear Relationship
|9
|1890
|24

Statistics Assignment - Desklib
|8
|1038
|465