Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_correlation.wasp
Title produced by softwarePearson Correlation
Date of computationSat, 12 Dec 2009 06:25:22 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/12/t1260624370tf47zmz4zsfjaz1.htm/, Retrieved Mon, 29 Apr 2024 12:56:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=66939, Retrieved Mon, 29 Apr 2024 12:56:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact118
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Pearson Correlation] [] [2009-12-12 13:25:22] [a93df6747c5c78315f2ee9914aea3ec6] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.02
2.03
2.01
2.08
2.02
2.03
2.07
2.04
2.05
2.11
2.09
2.05
2.08
2.06
2.06
2.08
2.07
2.06
2.07
2.06
2.09
2.07
2.09
2.28
2.33
2.35
2.52
2.63
2.58
2.70
2.81
2.97
3.04
3.28
3.33
3.50
3.56
3.57
3.69
3.82
3.79
3.96
4.06
4.05
4.03
3.94
4.02
3.88
4.02
4.03
4.09
3.99
4.01
4.01
4.19
4.30
4.27
3.82
3.15
2.49
1.81
1.26
1.06
0.84
0.78
0.70
0.36
0.35
0.36
0.36
0.36
Dataseries Y:
2.64
2.75
2.7
2.87
3.03
3.14
3.02
2.86
3.07
2.93
2.83
2.72
2.73
2.72
2.77
2.61
2.47
2.3
2.38
2.43
2.39
2.6
2.84
2.87
2.92
3.08
3.33
3.48
3.57
3.66
3.77
3.75
3.75
3.81
3.82
3.89
4.05
4.1
4.07
4.26
4.4
4.61
4.63
4.48
4.46
4.45
4.32
4.52
4.21
3.97
4.12
4.5
4.73
5.26
5.2
4.94
4.95
4.52
3.85
3.41
2.95
2.68
2.53
2.44
2.16
2.2
2.1
2.29
2.03
2.05
1.94




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66939&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66939&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66939&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Pearson Product Moment Correlation - Ungrouped Data
StatisticVariable XVariable Y
Mean2.601267605633803.37859154929577
Biased Variance1.279213886133700.792347312041262
Biased Standard Deviation1.131023380011970.890138928505692
Covariance0.963330382293763
Correlation0.94337762594910
Determination0.889961345141362
T-Test23.6231322261273
p-value (2 sided)0
p-value (1 sided)0
Degrees of Freedom69
Number of Observations71

\begin{tabular}{lllllllll}
\hline
Pearson Product Moment Correlation - Ungrouped Data \tabularnewline
Statistic & Variable X & Variable Y \tabularnewline
Mean & 2.60126760563380 & 3.37859154929577 \tabularnewline
Biased Variance & 1.27921388613370 & 0.792347312041262 \tabularnewline
Biased Standard Deviation & 1.13102338001197 & 0.890138928505692 \tabularnewline
Covariance & 0.963330382293763 \tabularnewline
Correlation & 0.94337762594910 \tabularnewline
Determination & 0.889961345141362 \tabularnewline
T-Test & 23.6231322261273 \tabularnewline
p-value (2 sided) & 0 \tabularnewline
p-value (1 sided) & 0 \tabularnewline
Degrees of Freedom & 69 \tabularnewline
Number of Observations & 71 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=66939&T=1

[TABLE]
[ROW][C]Pearson Product Moment Correlation - Ungrouped Data[/C][/ROW]
[ROW][C]Statistic[/C][C]Variable X[/C][C]Variable Y[/C][/ROW]
[ROW][C]Mean[/C][C]2.60126760563380[/C][C]3.37859154929577[/C][/ROW]
[ROW][C]Biased Variance[/C][C]1.27921388613370[/C][C]0.792347312041262[/C][/ROW]
[ROW][C]Biased Standard Deviation[/C][C]1.13102338001197[/C][C]0.890138928505692[/C][/ROW]
[ROW][C]Covariance[/C][C]0.963330382293763[/C][/ROW]
[ROW][C]Correlation[/C][C]0.94337762594910[/C][/ROW]
[ROW][C]Determination[/C][C]0.889961345141362[/C][/ROW]
[ROW][C]T-Test[/C][C]23.6231322261273[/C][/ROW]
[ROW][C]p-value (2 sided)[/C][C]0[/C][/ROW]
[ROW][C]p-value (1 sided)[/C][C]0[/C][/ROW]
[ROW][C]Degrees of Freedom[/C][C]69[/C][/ROW]
[ROW][C]Number of Observations[/C][C]71[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=66939&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=66939&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Pearson Product Moment Correlation - Ungrouped Data
StatisticVariable XVariable Y
Mean2.601267605633803.37859154929577
Biased Variance1.279213886133700.792347312041262
Biased Standard Deviation1.131023380011970.890138928505692
Covariance0.963330382293763
Correlation0.94337762594910
Determination0.889961345141362
T-Test23.6231322261273
p-value (2 sided)0
p-value (1 sided)0
Degrees of Freedom69
Number of Observations71



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
bitmap(file='test1.png')
histx <- hist(x, plot=FALSE)
histy <- hist(y, plot=FALSE)
maxcounts <- max(c(histx$counts, histx$counts))
xrange <- c(min(x),max(x))
yrange <- c(min(y),max(y))
nf <- layout(matrix(c(2,0,1,3),2,2,byrow=TRUE), c(3,1), c(1,3), TRUE)
par(mar=c(4,4,1,1))
plot(x, y, xlim=xrange, ylim=yrange, xlab=xlab, ylab=ylab)
par(mar=c(0,4,1,1))
barplot(histx$counts, axes=FALSE, ylim=c(0, maxcounts), space=0)
par(mar=c(4,0,1,1))
barplot(histy$counts, axes=FALSE, xlim=c(0, maxcounts), space=0, horiz=TRUE)
dev.off()
lx = length(x)
makebiased = (lx-1)/lx
varx = var(x)*makebiased
vary = var(y)*makebiased
corxy <- cor.test(x,y,method='pearson')
cxy <- as.matrix(corxy$estimate)[1,1]
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Pearson Product Moment Correlation - Ungrouped Data',3,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Statistic',1,TRUE)
a<-table.element(a,'Variable X',1,TRUE)
a<-table.element(a,'Variable Y',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('arithmetic_mean.htm','Mean',''),header=TRUE)
a<-table.element(a,mean(x))
a<-table.element(a,mean(y))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('biased.htm','Biased Variance',''),header=TRUE)
a<-table.element(a,varx)
a<-table.element(a,vary)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('biased1.htm','Biased Standard Deviation',''),header=TRUE)
a<-table.element(a,sqrt(varx))
a<-table.element(a,sqrt(vary))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('covariance.htm','Covariance',''),header=TRUE)
a<-table.element(a,cov(x,y),2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('pearson_correlation.htm','Correlation',''),header=TRUE)
a<-table.element(a,cxy,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('coeff_of_determination.htm','Determination',''),header=TRUE)
a<-table.element(a,cxy*cxy,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('ttest_statistic.htm','T-Test',''),header=TRUE)
a<-table.element(a,as.matrix(corxy$statistic)[1,1],2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value (2 sided)',header=TRUE)
a<-table.element(a,(p2 <- as.matrix(corxy$p.value)[1,1]),2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-value (1 sided)',header=TRUE)
a<-table.element(a,p2/2,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degrees of Freedom',header=TRUE)
a<-table.element(a,lx-2,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Number of Observations',header=TRUE)
a<-table.element(a,lx,2)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')