Statistics EXP-5
Statistics EXP-5
MAT-2001
SLOT: L7+L8
EXPERIMENT NO. -5
Submitted By:-
ABHISHEK KUMAR
REG. NO: 20BCE0210
Faculty:
DR. EASWARAMOORTHY
Sample Techniques – II
Problem Statement:
1. A random sample of 10 boys with the following IQs: 70, 120, 110, 101, 88,
83, 95, 98, 107, and 100. Write down the R programming code to test
whether the data support the assumption of a population mean IQ of 100 at 5
% level of significance.
Input in R-Console:
Output in R-Console:
data: x
86.98934 107.41066
sample estimates:
mean of x
97.2
OUTPUT SCREENSHOT
Problem Statement:
2. The mean height and the standard deviation height of 8 randomly chosen
soldiers are 166.9 cm and 8.29 cm respectively. The corresponding values of
6 randomly chosen sailors are 170.3 cm and 8.50 cm respectively. Write
down the R programming code to test whether the soldiers are shorter than
the sailors on the basis of average height.
Input in R-Console:
> alpha=0.01
> n1=8
> n2=6
> x1=166.9
> x2=170.3
> s1=8.29
> s2=8.50
Output in R-Console:
> tTab
[1] 2.680998
> tCal
[1] -0.6954801
OUTPUT SCREENSHOT
Problem Statement:
3. The following data related to the marks obtained by 11 students in two
sets, one held at the beginning of a year and the other at the end of the
year after intensive coaching. Write down the R programming code to test
whether the data indicate that the students have benefited by coaching at 5
% level of significance?
Input in R-Console:
Output in R-Console:
> tTab
[1] 1.812461
> tCal
[1] -1.313064
OUTPUT SCREENSHOT
Problem Statement:
4. Two random samples drawn from two normal populations with the following
observations.
Write down the R programming code to test whether the two populations have
the same variance at 5 % level of significance.
Input in R-Console:
Output in R-Console:
> FTab
[1] 5.192168
> FCal
[1] 3.912453
data: S1 and S2
0.03321253 2.29776367
sample estimates:
ratio of variances
0.2453704
OUTPUT SCREENSHOT
THANK YOU!!!
************************
ABHISHEK KUMAR; 20BCE0210 Page 10