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 computationWed, 28 Oct 2009 09:54:22 -0600
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/Oct/28/t1256745590fpb2ggl0wgoyowe.htm/, Retrieved Sun, 05 May 2024 22:50:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=51479, Retrieved Sun, 05 May 2024 22:50:58 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Pearson Correlation] [workshop 4 deel 1] [2009-10-27 20:22:23] [309ee52d0058ff0a6f7eec15e07b2d9f]
-    D    [Pearson Correlation] [workshop 4 deel 3] [2009-10-28 15:54:22] [6198946fb53eb5eb18db46bb758f7fde] [Current]
Feedback Forum

Post a new message
Dataseries X:
2,3381468
2,3586816
2,3577603
2,3369237
2,3513156
2,3180063
2,2906823
2,2934074
2,2239757
2,1883285
2,1500357
2,17533
2,1741503
2,1830063
2,1544368
2,1485696
2,1234318
2,1670784
2,1386138
2,142125
2,145932
2,146225
2,1529693
2,1547304
2,1377364
2,1532628
2,1594303
2,239213
2,2967403
2,3749892
2,3950658
2,3716
2,3944468
2,3978523
2,430481
2,4161594
2,4514165
2,4755876
2,455489
2,4170921
2,3716
2,3079686
2,331729
2,3675977
2,3811576
2,3796148
2,3152666
2,360525
2,3928996
2,40281
2,4006404
2,3947563
2,386407
2,3688288
2,4267408
2,4111878
2,4012602
2,399401
2,386716
2,3959944
Dataseries Y:
0.402971
0.401956
0.3958297
0.386486
0.3761124
0.3707592
0.3703574
0.392778
0.3880169
0.3892886
0.3823938
0.3845488
0.3801832
0.3740546
0.3791234
0.377082
0.3946729
0.4148004
0.4079377
0.4049159
0.3976437
0.3968244
0.4058837
0.4123823
0.4317936
0.4485919
0.4658745
0.4747486
0.5086828
0.493141
0.4906302
0.4888667
0.4857114
0.4866876
0.4799441
0.4927478
0.4790716
0.4581936
0.4505631
0.4426507
0.4510063
0.4412679
0.4432364
0.4481231
0.4641697
0.4780893
0.4880699
0.483025
0.4881398
0.4756585
0.4793208
0.4663934
0.4678423
0.4474941
0.4727388
0.469595
0.4591418
0.4642651
0.4614892
0.4613398




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 2 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=51479&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]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=51479&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=51479&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 time2 seconds
R Server'George Udny Yule' @ 72.249.76.132







Pearson Product Moment Correlation - Ungrouped Data
StatisticVariable XVariable Y
Mean2.306058778333330.43792179
Biased Variance0.01175828819441570.00171892172686457
Biased Standard Deviation0.1084356407940470.0414598809316255
Covariance0.00292816856045673
Correlation0.640466964834319
Determination0.410197933044085
T-Test6.3512262735031
p-value (2 sided)3.56840712534279e-08
p-value (1 sided)1.78420356267139e-08
Degrees of Freedom58
Number of Observations60

\begin{tabular}{lllllllll}
\hline
Pearson Product Moment Correlation - Ungrouped Data \tabularnewline
Statistic & Variable X & Variable Y \tabularnewline
Mean & 2.30605877833333 & 0.43792179 \tabularnewline
Biased Variance & 0.0117582881944157 & 0.00171892172686457 \tabularnewline
Biased Standard Deviation & 0.108435640794047 & 0.0414598809316255 \tabularnewline
Covariance & 0.00292816856045673 \tabularnewline
Correlation & 0.640466964834319 \tabularnewline
Determination & 0.410197933044085 \tabularnewline
T-Test & 6.3512262735031 \tabularnewline
p-value (2 sided) & 3.56840712534279e-08 \tabularnewline
p-value (1 sided) & 1.78420356267139e-08 \tabularnewline
Degrees of Freedom & 58 \tabularnewline
Number of Observations & 60 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=51479&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.30605877833333[/C][C]0.43792179[/C][/ROW]
[ROW][C]Biased Variance[/C][C]0.0117582881944157[/C][C]0.00171892172686457[/C][/ROW]
[ROW][C]Biased Standard Deviation[/C][C]0.108435640794047[/C][C]0.0414598809316255[/C][/ROW]
[ROW][C]Covariance[/C][C]0.00292816856045673[/C][/ROW]
[ROW][C]Correlation[/C][C]0.640466964834319[/C][/ROW]
[ROW][C]Determination[/C][C]0.410197933044085[/C][/ROW]
[ROW][C]T-Test[/C][C]6.3512262735031[/C][/ROW]
[ROW][C]p-value (2 sided)[/C][C]3.56840712534279e-08[/C][/ROW]
[ROW][C]p-value (1 sided)[/C][C]1.78420356267139e-08[/C][/ROW]
[ROW][C]Degrees of Freedom[/C][C]58[/C][/ROW]
[ROW][C]Number of Observations[/C][C]60[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=51479&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=51479&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.306058778333330.43792179
Biased Variance0.01175828819441570.00171892172686457
Biased Standard Deviation0.1084356407940470.0414598809316255
Covariance0.00292816856045673
Correlation0.640466964834319
Determination0.410197933044085
T-Test6.3512262735031
p-value (2 sided)3.56840712534279e-08
p-value (1 sided)1.78420356267139e-08
Degrees of Freedom58
Number of Observations60



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