100% found this document useful (1 vote)
493 views3 pages

MAT 2001 Experiment 6

- The document describes an experiment comparing the effects of two treatments (0.2% and 0.4%) of NMU on weight (grams) using a t-test. A t-test showed the means were not identical and the treatments did not have the same effects. - A second experiment tested the means of drug and no drug data using a t-test. The t-test results showed the p-value was less than the significance level, allowing the rejection of the null hypothesis that the true difference in means is equal to 0 in favor of the alternative that it is greater than 0. - Both experiments used t-tests to analyze the data and test hypotheses about differences in means between groups.

Uploaded by

Rohith Gamini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
493 views3 pages

MAT 2001 Experiment 6

- The document describes an experiment comparing the effects of two treatments (0.2% and 0.4%) of NMU on weight (grams) using a t-test. A t-test showed the means were not identical and the treatments did not have the same effects. - A second experiment tested the means of drug and no drug data using a t-test. The t-test results showed the p-value was less than the significance level, allowing the rejection of the null hypothesis that the true difference in means is equal to 0 in favor of the alternative that it is greater than 0. - Both experiments used t-tests to analyze the data and test hypotheses about differences in means between groups.

Uploaded by

Rohith Gamini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DEPARTMENT OF MATHEMATICS

SCHOOL OF ADVANCED SCIENCES


VELLORE INSTITUTE TECHNOLOGY
VELLORE-632 014
TAMILNADU
INDIA
Date: 24/10/19

MAT2001 - Statistics for Engineers


Embedded Lab-R Software
Fall Semester 2019~20
Slot: B2+Tb2
E-Record

EXPERIMENT NO: 6
Submitted by
Name of the Student: Rohith Sai Gamini
Reg. no.: 18BCE0451

ROHITH SAI GAMINI 18BCE0451


Problem statement:
Data on weight (grams) of two treatments of NMU (nistroso- methyl urea) are
recorded. Find out whether these two treatments have identical effects by using t
test for sample means at 5% level of significance.

Sample 1 2 3 4 5 6 7 8 9 10 11 12
Treatments 2.0 2.7 2.9 1.9 2.1 2.6 2.7 2.9 3.0 2.6 2.6 2.7
0.2%
0.4% 3.2 3.6 3.7 3.5 2.9 2.6 2.5 2.7

INPUT IN R:
> x=c(2.0,2.7,2.9,1.9,2.1,2.6,2.7,2.9,3.0,2.6,2.6,2.7)
> y=c(3.2,3.6,3.7,3.5,2.9,2.6,2.5,2.7)
> t.test(x,y,var.equal=FALSE)

OUTPUT IN R:
Welch Two Sample t-test

data: x and y
t = -2.6676, df = 12.294, p-value = 0.02014
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.96022459 -0.09810875
sample estimates:
mean of x mean of y
2.558333 3.087500

INTERPRETATION:
The p-value is less than significance level, we conclude that the means of the two groups are
not identical and thus we say they don’t have identical effects.

ROHITH SAI GAMINI 18BCE0451


Problem statement:
Hypothesis Tests for Two Means :Independent Data: Here we test for a
difference in means for the following data

No 237 289 257 228 303 275 262 304 244 233
Drug(x1)
Drug(x2) 194 240 230 186 265 222 242 281 240 212

Null Hypothesis:
Mu1-Mu2=0

Alternative Hypothesis:
Mu1-Mu2≠0

INPUT IN R:
> no_drug<-c(237,289,257,228,303,275,262,304,244,233)
> drug<-c(194,240,230,186,265,222,242,281,240,212)
> t.test(no_drug,drug,alternative="greater",mu=0)

OUTPUT IN R:
Welch Two Sample t-test

data: no_drug and drug


t = 2.4725, df = 17.982, p-value = 0.01181
alternative hypothesis: true difference in means is greater than 0
95 percent confidence interval:
9.556077 Inf
sample estimates:
mean of x mean of y
263.2 231.2

INTERPRETATION:
We can reject the null hypothesis and support the claim because the P-value (≈ .0118) is less
than the significance level.

ROHITH SAI GAMINI 18BCE0451

You might also like