Professional Documents
Culture Documents
Laboratory Exercise-III
BPS651 Research Methodology
R.S.Rajput, Assistant Professor (Computer Science)
Laboratory Instructor
BPS651
Regression
Analysis of Variance
BPS651
Correlation
Correlation is used to test for a relationship between two
BPS651
Pearson correlation
Kendall rank correlation
Spearman correlation
Pearson Correlation
Pearson r correlation: Pearson r correlation is widely used in
Where:
r = Pearson r correlation coefficient
N = number of value in each data
xy = sum of the products of paired scores
x = sum of x scores
y = sum of y scores
x2= sum of squared x scores
y2= sum of squared y scores
BPS651
BPS651
Spearman Correlation
Spearman rank correlation is a non-parametric test that is used to
Where:
P= Spearman rank correlation
di= the difference between the ranks of corresponding values Xi and Yi
n= number of value in each data set
BPS651
where
BPS651
are
will
and
are
Visualizing Correlations
plot(), abline(), lowess() ,line(), pairs()
plot(): The basic function is plot(), denoting the (x,y) points to plot
>plot(x, y)
pairs() to create scatterplot matrices
>pairs(y~ x)
lines() use to point match
> lines(x, y, col="black")
abline() use to print regression line (y~ x)
>abline(lm(x~ y), h=0,v=0,col="red")
lowess line function
> lines(lowess(x, y), col="blue")
BPS651
Exercise 10
Protein intake X and fat intake Y (in gm) for ten old
women given as
X 56,47,33,39,42,38,46,47,38,32
Y 56,83,49,52,65,52,56,48,59,70
Calculate correlation Coefficient (Pearson)
Draw scatter plot matrix, scatter plot
BPS651
Exercise 11
Find correlation coefficient (Pearson) between the
BPS651
10
Coefficient of Determination
Significance Test for Linear Regression
Confidence Interval for Linear Regression
Prediction Interval for Linear Regression
Residual Plot
Standardized Residual
Normal Probability Plot of Residuals
BPS651
11
>W=lm(y~x)
Where
X
Y
w
BPS651
12
BPS651
13
Logistic Regression
Estimated Logistic Regression Equation
BPS651
14
Exercise 11
Geographical area x and area under paddy
15
Exercise 12
Calculate correlation coefficient between
BPS651
16
Exercise 10
Protein intake X and fat intake Y (in gm) for
intake is 38 gm.
BPS651
17
Exercise 13
Twelve students for the following percentage
18
Exercise 14
BPS651
19
Exercise 15
BPS651
20
Exercise 16
BPS651
21
Exercise 17
BPS651
22
Exercise 18
BPS651
23
Exercise 19
BPS651
24
Exercise 20
BPS651
25
Analysis of Variance
BPS651
26
BPS651
27
BPS651
28
Factorial Design
BPS651
29
BPS651
30