Skip to content
Learn Plant Science

Learn Plant Science

Explore the the green world with us

  • Home
  • Uncategorized
  • Pearson’s correlation (r)

Pearson’s correlation (r)

Posted on January 27, 2023May 3, 2023 By Janith Piumal No Comments on Pearson’s correlation (r)
Uncategorized

Pearson’s correlation (r) check the relationships between two or more variables; there are three types of correlations: simple correlations, multiple correlations, and partial correlations.

  • The correlation between two variables is known as simple correlation.
  • Multiple correlation is the correlation between three or more variables.
  • Partial correlation – Two or more variables are involved, check the correlation between two variables other variables are control/ constant.

A linear and a non-linear correlations exist.

Assumption of the linear correlation

  • Random sampling
  • Independent measurements or observations
  • All variables should be normally distributed.
  • Measurements are continuous scale
  • The first steps of the correlation analysis is make a scatter plot diagram.
  • Dependency of the variables – Measure the strength of a linear relationship. There are two measures for the dependency; covariance and Pearson’s correlation coefficient.

correlation VS covariance –

Correlation Covariance
Measure the strength of the relationship of two variables. shows how two variables are dependent on each other
value lie between +1 to – 1, values are standardizedvalue lie between +infinity to – infinity, values are not standardized
independent on unitdependent on unit
indicate the direction and strength of the relationship of two variables indicate the direction of the relationship of two variables
Table 1:correlation vs covariance.

Equations

Decision point  (critical region)

Decision point is determined by the size of the sample, Tables are available to find the decision points (critical region).

  • If r is lies within the critical Accepted the H0
  • If r is lies outside the critical region rejected the H0

Pearson’s correlation in R

#Loading the data file to R console
my_data = read.csv("DATA.csv", header = TRUE)

#Test for normality
shapiro.test(my_data$X)

#Calculating covariance
cov (my_data$X, my_data$Y)

#Conducting the correlation analysis
cor.test (my_data$X, my_data$Y, alternative, method, conf.level)

#my_data$X X variable
#my_data$Y Y variable
#alternative = c("two.sided", "less", "greater")
#method Method of correlation calculation
#c("pearson", "kendall", "spearman")
#conf.level=Confidence level

Post navigation

❮ Previous Post: Statistical Errors.
Next Post: Linear Regression Analysis Using R ❯

You may also like

Uncategorized
Statistical Errors.
January 27, 2023
Uncategorized
Protected: Microorganisms in N2 cycle.
March 1, 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Blog
  • Environment science
  • Horticulture
  • Microbiology
  • Molecular Biology
  • Phylogenetic
  • Plant Breeding
  • Statistics – Experimental Design & Data Analysis Using R
  • Uncategorized

Recent Posts

  • R for Phylogenetic
  • Character based approach of phylogenetic analysis
  • Distance based approach of phylogenetic analysis
  • Phylogenetic Analysis data
  • Applications of the phylogenetic Analysis.

Services

  • Study nature
  • Nature is a gift
  • A second spring
  • Smiles of nature
  • Just let it rain

Contact

Proin gravida nibh auctor aliquet amet anean sollicitudin, lorem quis.

  • 12 Avenue, New York, NY 10160
  • +1 910-626-85255
  • contact@nature.com
  • Home
  • Statistics
  • Phylogenetics
  • Microbiology
  • Plant Breeding
  • Horticulture
  • Molecular Biology
  • Environment science

Copyright © 2026 Learn Plant Science.

Theme: Oceanly Green by ScriptsTown