Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_correlation.wasp
Title produced by softwarePearson Correlation
Date of computationSun, 01 Jan 2017 04:48:43 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2017/Jan/01/t1483246250wx6itdnlahm3t8n.htm/, Retrieved Tue, 14 May 2024 18:36:25 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Tue, 14 May 2024 18:36:25 +0200
QR Codes:

Original text written by user:correlation co
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact0
Dataseries X:
10.0
10.0
10.0
10.0
10.0
10.1
10.1
10.0
9.9
10.0
10.1
10.2
10.3
10.3
10.3
10.3
10.2
10.2
10.2
10.3
10.3
10.3
10.3
10.4
10.4
10.3
10.4
10.5
10.6
10.6
10.72
10.70
10.70
10.57
10.72
10.63
10.75
10.72
10.89
10.91
11.07
11.10
11.12
11.20
11.46
11.48
11.49
11.45
11.62
11.64
11.69
11.79
11.97
11.89
11.71
11.81
11.99
11.92
11.85
11.8290
12.1304
12.0800
12.0499
12.1031
11.9751
11.9906
12.0330
12.0980
12.1203
12.0875
12.2325
12.3781
12.1646
11.9743
12.0902
11.9133
11.9887
12.2036
12.4710
12.4605
12.6874
12.6820
12.7199
13.1955
13.5936
13.7628
13.8623
14.0227
14.0633
14.1047
14.2627
14.2601
14.4185
14.3829
14.5098
14.4949
14.3565
14.3698
14.3956
14.2511
13.9989
14.1883
13.2850
13.3574
12.9127
13.3847
13.5476
13.3693
13.2663
12.8207
12.6643
12.6213
12.3535
12.2185
12.4476
12.0979
11.3414
11.5645
11.8895
11.5638
10.9815
9.9099
11.6717
11.7249
12.1115
11.6115
11.5434
11.0609
11.5498
11.5763
11.8041
11.6803
11.4987
12.4591
12.6207
12.6412
12.6303
12.8668
12.7802
12.6329
12.5873
12.6338
12.8055
13.0226
13.0516
13.0213
12.6426
12.7059
12.7665
12.4349
12.1084
11.8187
12.0864
12.3920
12.4798
13.5188
13.4569
13.7824
13.8281
13.9308
14.0567
13.9850
14.2450
14.3309
14.1571
14.2433
14.1118
14.1134
13.9853
13.8370
14.1495
13.9782
13.7535
13.8306
13.8545
13.9045
13.9548
13.7621
14.1840
14.2310
14.0945
13.7171
13.2069
13.1049
12.9327
13.0158
12.6992
12.3953
11.8138
11.9029
11.9700
11.7146
11.6179
11.7760
11.9859
11.7790
11.5633
11.6077
11.5222
11.6178
11.8017
12.2978
12.1555
12.1081
11.9431
11.4080
11.1722
11.1411
11.1146
11.1596
11.2347
11.0302
11.0937
11.2758
11.3476
11.4520
11.3910
10.9320
10.7230
10.6850
10.7680
10.8680
10.7950
10.8230
10.845
10.724
10.366
10.380
9.911
10.102
9.866
9.908
10.208
10.0678
10.0946
10.1470
9.8521
10.0821
10.1726
10.2183
10.2473
10.3658
10.4008
10.3653
10.2767
10.4876
10.4689
10.2696
10.2341
10.2040
10.2250
10.3110
10.3640
10.4740
10.6460
10.7160
10.8140
10.7400
10.7080
10.6730
10.7550
10.7950
10.7910
10.5940
10.5850
10.6080
10.5450
10.6720
10.7220
10.7690
10.6590
10.6680
10.5760
10.5880
10.6600
10.6590
10.7270
10.8228
10.7723
10.6042
10.5216
10.2654
10.2807
10.2602
10.3640
10.3241
10.2802
10.1146
10.0065
9.9391
10.0114
9.9454
10.0165
9.8712
9.8705
9.7170
9.6951
9.4083
9.0163
9.0815
9.0510
9.2118
9.1899
8.9439
9.2902
9.4276
9.4707
9.4991
9.6115
9.8330
10.2168
10.0117
10.0672
10.1554
10.3997
10.4758
10.8180
10.8940
10.9980
10.8230
10.8900
10.6880
10.8720
Dataseries Y:
1,090.75
1,081.44
1,088.22
1,087.39
1,077.51
1,102.78
1,103.37
1,100.76
1,078.00
1,093.66
1,109.20
1,122.95
1,136.98
1,146.78
1,142.87
1,147.33
1,134.48
1,135.36
1,125.49
1,136.96
1,147.69
1,144.57
1,145.28
1,158.73
1,152.25
1,149.45
1,154.32
1,162.91
1,175.22
1,171.50
1,181.86
1,179.56
1,179.13
1,164.97
1,181.48
1,173.99
1,188.70
1,195.27
1,202.83
1,200.69
1,210.15
1,212.28
1,201.80
1,218.23
1,241.47
1,243.63
1,249.07
1,244.09
1,260.86
1,260.31
1,261.99
1,273.37
1,274.30
1,279.31
1,263.71
1,269.23
1,285.05
1,281.73
1,276.11
1,274.82
1,304.21
1,302.96
1,303.76
1,312.16
1,300.08
1,304.19
1,301.55
1,306.45
1,305.58
1,299.45
1,310.76
1,306.96
1,287.67
1,270.04
1,280.51
1,269.38
1,264.74
1,274.93
1,294.26
1,296.53
1,299.17
1,296.33
1,291.37
1,328.65
1,370.18
1,374.29
1,389.42
1,393.70
1,397.52
1,399.35
1,422.65
1,426.50
1,451.45
1,447.65
1,464.16
1,464.53
1,451.81
1,448.73
1,449.71
1,432.90
1,405.22
1,423.54
1,330.61
1,335.71
1,280.05
1,325.15
1,345.41
1,326.68
1,316.68
1,272.26
1,258.87
1,257.55
1,199.07
1,210.76
1,230.58
1,191.79
1,126.33
1,132.25
1,159.27
1,113.16
1,040.34
923.07
1,091.73
1,095.85
1,134.83
1,083.38
1,068.43
1,027.13
1,075.52
1,079.41
1,088.49
1,079.84
1,071.31
1,163.00
1,181.27
1,184.66
1,177.18
1,194.12
1,181.32
1,166.28
1,165.43
1,167.38
1,184.84
1,201.42
1,203.73
1,199.18
1,158.67
1,158.18
1,161.11
1,128.92
1,096.37
1,067.18
1,092.61
1,117.96
1,120.29
1,204.81
1,193.83
1,216.95
1,216.19
1,228.32
1,218.98
1,210.19
1,238.67
1,238.18
1,225.89
1,235.14
1,223.64
1,227.08
1,213.58
1,201.97
1,227.08
1,213.46
1,189.13
1,179.27
1,170.97
1,148.95
1,153.43
1,144.35
1,178.94
1,187.60
1,182.50
1,154.15
1,113.68
1,107.03
1,098.31
1,104.03
1,069.99
1,030.33
932.31
951.47
961.83
934.10
930.66
950.12
960.98
946.62
927.57
935.73
924.82
927.50
961.64
989.76
985.50
990.83
975.85
920.02
893.04
887.23
876.99
873.69
883.36
873.02
882.65
917.34
925.09
926.62
924.70
895.14
869.57
871.38
892.67
903.89
887.86
881.31
879.15
769.06
769.06
772.58
699.04
726.37
711.91
715.14
762.47
749.45
758.07
755.64
715.84
762.99
780.66
792.51
799.30
821.63
826.16
817.21
800.18
831.31
830.52
807.26
795.57
786.37
796.58
818.78
822.78
841.74
864.71
869.26
875.33
859.43
865.65
862.26
868.82
877.80
863.82
842.03
840.27
844.27
838.58
851.62
858.51
867.21
856.02
855.16
847.94
848.00
859.09
859.09
866.93
877.08
871.43
854.85
847.16
825.31
822.49
826.59
841.09
838.92
834.11
817.23
803.41
799.12
808.77
801.83
811.72
811.41
799.10
782.92
781.32
721.91
720.06
729.65
728.22
747.51
744.99
724.23
755.74
772.22
776.07
779.76
794.29
824.91
860.08
839.47
849.51
858.05
884.40
905.40
927.56
930.48
937.44
920.90
925.91
910.40
926.74




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\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 & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&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'Herman Ole Andreas Wold' @ wold.wessa.net



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
library(psychometric)
x <- x[!is.na(y)]
y <- y[!is.na(y)]
y <- y[!is.na(x)]
x <- x[!is.na(x)]
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, sub=main)
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', na.rm = T)
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,'95% CI of Correlation',header=TRUE)
a<-table.element(a,paste('[',CIr(r=cxy, n = lx, level = .95)[1],', ', CIr(r=cxy, n = lx, level = .95)[2],']',sep=''),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')
library(moments)
library(nortest)
jarque.x <- jarque.test(x)
jarque.y <- jarque.test(y)
if(lx>7) {
ad.x <- ad.test(x)
ad.y <- ad.test(y)
}
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Normality Tests',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('jarque.x'),'
',sep=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('jarque.y'),'
',sep=''))
a<-table.row.end(a)
if(lx>7) {
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('ad.x'),'
',sep=''))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste('
',RC.texteval('ad.y'),'
',sep=''))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
library(car)
bitmap(file='test2.png')
qq.plot(x,main='QQplot of variable x')
dev.off()
bitmap(file='test3.png')
qq.plot(y,main='QQplot of variable y')
dev.off()