Data Science tutorials, Data Science eBooks, Data Science data sets,Data Science codes, Data Science programming languages, and Data Science reports.
Contents of the blog.
- Artificial Intelligence (2)
- big data analytics (2)
- Case studies (2)
- chisquare (3)
- Correlation (2)
- Data Preparation (5)
- Data Reduction (1)
- Data Reports (1)
- Data Visualization (5)
- Data Wrangling (5)
- Descriptive Statistics (15)
- face analysis (1)
- Hypothesis Testing (4)
- Image analysis. (2)
- Inferential Statistics (6)
- Learn SPSS (10)
- Linear regression (1)
- Machine learning (5)
- Maths for MBA's (2)
- Mean (4)
- Measures of Central tendency (5)
- Measures of Dispersion (3)
- Median. (2)
- multivariate analysis (2)
- Non parametric tests (3)
- One sample t test (1)
- paired sample t test (1)
- Parametric tests. (2)
- Primary data (2)
- Python for MBA's (9)
- quartiles (1)
- R for MBA's (11)
- Range (1)
- Research Methodology (6)
- Secondary data (2)
- Sentiment analysis (1)
- Spreadsheets using sheets and excel. (3)
- Standard Deviation (1)
- Support vector Machines. (1)
- T-test (2)
- Text analytics (1)
- validity tests (1)
- Variance (1)
Showing posts with label T-test. Show all posts
Showing posts with label T-test. Show all posts
Wednesday, June 3, 2020
Wednesday, May 27, 2020
R for MBA's- Hypothesis testing - T test
R for MBA's- Hypothesis testing - 't' test
one sample
Problem 1:
The prices of stockof M/S Nanjund Agri industries in last nine days given below
71,74,82,67,35,79,48,57,62
Test the hypothesis whether stock prices of M/S Nanjund Agri differ significantly.
Coding:
> x<-c(71,74,82,67,35,79,48,57,62)
> t.test(x)
Output
One Sample t-test
data: x
t = 12.581, df = 8, p-value = 1.495e-06
data: x
t = 12.581, df = 8, p-value = 1.495e-06
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
52.17808 75.59970
sample estimates:
mean of x
63.88889
52.17808 75.59970
sample estimates:
mean of x
63.88889
Two samples
Problem 2:
Test the hypothesis to ascertain the
significance of sales on the profit. The sales of Ajay enterprises are given
below for previous seven years.
135,132,234,213,245,267,156
Similarly, the profit of the firm for the
corresponding period is as follows.
21,20,34,32,36,38,19
Solution:
Coding:
> Sales<-c(135,132,234,213,245,267,156)
> Profit<-c(21,20,34,32,36,38,19)
> t.test(Sales,Profit)
Output:
Welch Two Sample t-test
Data: Sales and Profit
t = 7.9421, df = 6.2632, p-value
= 0.0001705
Alternative hypothesis: true difference
in means is not equal to 0
95 percent confidence interval:
117.3586
220.3557
Sample estimates:
Mean of Sales mean of Profit
197.42857 28.57143
Subscribe to:
Posts (Atom)