Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_correlation.wasp
Title produced by softwarePearson Correlation
Date of computationSat, 08 Dec 2007 05:44:48 -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/2007/Dec/08/t1197117067ziojsxokd9ccole.htm/, Retrieved Mon, 29 Apr 2024 03:19:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=2916, Retrieved Mon, 29 Apr 2024 03:19:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact238
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Pearson Correlation] [pearson corr (tot...] [2007-12-08 12:44:48] [8e05505c645e933583b5ad9ab4281af9] [Current]
Feedback Forum

Post a new message
Dataseries X:
153.4
159.5
157.4
169.1
172.6
161.7
159.2
157.4
153.9
144.8
142.2
140.1
143.4
153.3
166.9
170.6
182.8
170.3
156.6
155.2
154.7
151.6
152.1
153.2
149.5
149.7
144.3
140
137.8
132.2
128.9
123.1
120.4
122.8
126
124.5
120.6
114.7
111.7
109.1
108
107.7
99.9
103.7
103.4
103.4
104.7
105.8
105.3
103
103.8
103.4
105.8
101.4
97
94.3
96.6
97.1
95.7
96.9
97.4
95.3
93.6
91.5
93.1
91.7
94.3
93.9
90.9
88.3
91.3
91.7
92.4
92
95.6
95.8
96.4
99
107
109.7
116.2
115.9
113.8
112.6
113.7
115.9
110.3
111.3
113.4
108.2
104.8
106
110.9
115
118.4
121.4
128.8
131.7
141.7
142.9
139.4
134.7
125
113.6
111.5
108.5
112.3
116.6
115.5
120.1
132.9
128.1
129.3
132.5
131
124.9
120.8
122
122.1
127.4
135.2
137.3
135
136
138.4
134.7
138.4
133.9
133.6
141.2
151.8
155.4
156.6
161.6
160.7
156
159.5
168.7
169.9
169.9
185.9
Dataseries Y:
145,9
158,5
152,2
153,7
157,9
154,4
150,7
151,2
147,3
146,6
145,2
139,3
145,7
163,3
181,8
188,1
222,9
206,3
184,9
183,6
186,6
176,5
173,9
184,9
182,5
183,6
172,4
168,9
163,3
152,4
145,8
148,6
143,4
141,2
144,6
144,5
140,8
133,3
127,3
119,6
120,2
121,9
112,4
111
107,8
110,5
118,3
123
112,1
104,2
102,4
100,3
102,6
101,5
103,4
99,4
97,9
98
90,2
87,1
91,8
94,8
91,8
89,3
91,7
86,2
82,8
82,3
79,8
79,4
85,3
87,5
88,3
88,6
94,9
94,7
92,6
91,8
96,4
96,4
107,1
111,9
107,8
109,2
115,3
119,2
107,8
106,8
104,2
94,8
97,5
98,3
100,6
94,9
93,6
98
104,3
103,9
105,3
102,6
103,3
107,9
107,8
109,8
110,6
110,8
119,3
128,1
127,6
137,9
151,4
143,6
143,4
141,9
135,2
133,1
129,6
134,1
136,8
143,5
162,5
163,1
157,2
158,8
155,4
148,5
154,2
153,3
149,4
147,9
156
163
159,1
159,5
157,3
156,4
156,6
162,4
166,8
162,6
168,1




Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\begin{tabular}{lllllllll}
\hline
Summary of compuational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 3 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2916&T=0

[TABLE]
[ROW][C]Summary of compuational 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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2916&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2916&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 compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Pearson Product Moment Correlation - Ungrouped Data
StatisticVariable XVariable Y
Mean125.928368794326129.653191489362
Biased Variance589.421890246969977.906177757658
Biased Standard Deviation24.278012485518031.271491454001
Covariance669.468265957447
Correlation0.875542421450965
Determination0.766574531760219
T-Test21.3653727442988
p-value (2 sided)0
p-value (1 sided)0
Degrees of Freedom139
Number of Observations141

\begin{tabular}{lllllllll}
\hline
Pearson Product Moment Correlation - Ungrouped Data \tabularnewline
Statistic & Variable X & Variable Y \tabularnewline
Mean & 125.928368794326 & 129.653191489362 \tabularnewline
Biased Variance & 589.421890246969 & 977.906177757658 \tabularnewline
Biased Standard Deviation & 24.2780124855180 & 31.271491454001 \tabularnewline
Covariance & 669.468265957447 \tabularnewline
Correlation & 0.875542421450965 \tabularnewline
Determination & 0.766574531760219 \tabularnewline
T-Test & 21.3653727442988 \tabularnewline
p-value (2 sided) & 0 \tabularnewline
p-value (1 sided) & 0 \tabularnewline
Degrees of Freedom & 139 \tabularnewline
Number of Observations & 141 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=2916&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]125.928368794326[/C][C]129.653191489362[/C][/ROW]
[ROW][C]Biased Variance[/C][C]589.421890246969[/C][C]977.906177757658[/C][/ROW]
[ROW][C]Biased Standard Deviation[/C][C]24.2780124855180[/C][C]31.271491454001[/C][/ROW]
[ROW][C]Covariance[/C][C]669.468265957447[/C][/ROW]
[ROW][C]Correlation[/C][C]0.875542421450965[/C][/ROW]
[ROW][C]Determination[/C][C]0.766574531760219[/C][/ROW]
[ROW][C]T-Test[/C][C]21.3653727442988[/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]139[/C][/ROW]
[ROW][C]Number of Observations[/C][C]141[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=2916&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=2916&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
Mean125.928368794326129.653191489362
Biased Variance589.421890246969977.906177757658
Biased Standard Deviation24.278012485518031.271491454001
Covariance669.468265957447
Correlation0.875542421450965
Determination0.766574531760219
T-Test21.3653727442988
p-value (2 sided)0
p-value (1 sided)0
Degrees of Freedom139
Number of Observations141



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')