Professional Documents
Culture Documents
Assessment-4 (Harsh Agarwal)
Assessment-4 (Harsh Agarwal)
LAB
Lab Assessment - 4
NAME :- HARSH
AGARWAL REG NO :-
21BCI0110 COURSE
SLOT :- L11+L12
Question 1:
Can it be said that two samples come from same normal population? ( Do both t-test and Ftest)
AIM:
To check if the samples are from the same population.
MATHEMATICAL FORMULA:
CODE AND OUTPUT FOR t test:
> a = c(24,27,26,21,25)
> b = c(27,30,28,31,22,36)
> t.test(a,b,var.equal=FALSE,paired = FALSE)
CONCLUSION:
P-value is greater than 0.05.
Hence we conclude that Sample A and B are from the same population.
Question 2:
AIM:
To check if the training is effective or not.
MATHEMATICAL FORMULA:
AIM:
Test whether there is any change in IQ after the training Programme.
MATHEMATICAL FORMULA:
AIM:
Check if there is any association between gender and preference for
ice cream flavor.
MATHEMATICAL FORMULA:
CONCLUSION:
As p value is greater than 0.05 we do not reject the null hypothesis. Hence
there is no relationship between gender and ice cream choice.
Question 2:
AIM:
Check if binomial distribution is a good fit.
MATHEMATICAL FORMULA:
CONCLUSION:
The calculated value is greater than the table value at 5% significance at 4
degrees of freedom. Hence null hypothesis is accepted and binomial
distribution is a good fit for the given data.