Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_correlation.wasp
Title produced by softwarePearson Correlation
Date of computationTue, 12 Sep 2017 03:51:10 +0200
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/Sep/12/t1505181134sumdn8udww8autg.htm/, Retrieved Wed, 15 May 2024 06:12:18 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=307724, Retrieved Wed, 15 May 2024 06:12:18 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact167
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Pearson Correlation] [Audit Fee & Assets] [2017-09-12 01:51:10] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
10.1775
10.8198
11.5416
10.6091
10.2219
10.3577
11.0104
10.7685
14.8067
14.3313
11.3091
13.1032
10.7032
13.7486
14.0649
14.1896
14.1896
12.0422
13.1046
12.2662
13.8799
15.4493
11.5861
10.8198
14.7378
11.8125
11.2619
13.3667
14.7473
12.7078
14.0397
13.6483
10.1775
13.9108
13.3816
13.3669
12.1808
13.4105
13.4486
13.9154
12.3311
14.3508
13.2955
13.4284
13.4106
13.7453
12.3842
10.1775
13.7472
12.8751
12.9669
11.8494
14.0752
11.3563
13.1956
15.6569
12.8968
13.9035
12.4212
12.1129
15.6959
13.5554
15.3084
13.9296
14.4751
15.2018
13.4688
13.8462
14.0769
14.4808
12.0015
12.3609
12.2259
14.1491
13.0729
12.7936
13.3249
11.4328
13.8343
11.4850
12.8104
12.4667
13.0669
12.6115
14.4016
14.3047
13.7963
14.2080
15.2377
11.0063
12.0316
12.1991
13.8403
12.3104
13.6867
14.4574
14.1939
13.7265
14.8750
14.0272
15.2525
13.4748
14.6686
14.4096
12.2187
13.6786
11.7402
13.5734
11.3206
15.4642
14.6592
12.9489
11.0974
14.8750
13.9579
14.2205
12.9750
12.7657
15.0465
14.1617
15.4276
11.4215
13.2481
15.7286
12.5386
13.7090
13.8530
14.5794
12.8510
14.6052
14.8670
12.2772
13.4877
12.9055
13.6522
13.2994
12.2549
13.8959
12.1439
14.1891
14.0084
13.5929
12.6699
14.5574
12.8973
10.5966
13.4284
15.2018
14.4088
14.5411
14.7768
12.7714
11.8914
12.0782
15.0530
11.6527
13.8418
13.4702
12.3285
14.0160
12.9825
12.4484
13.6751
13.6820
14.0878
14.0103
14.5980
14.3842
13.9622
15.7286
14.3776
13.7968
11.1476
13.7711
14.9254
10.9853
11.6683
13.4343
13.7820
13.5701
13.6676
13.7389
14.2824
13.9583
12.9715
14.5213
15.7286
14.7187
14.0992
10.5078
11.4404
12.5397
13.2083
12.0923
14.6836
13.6412
12.7426
13.6565
11.6351
11.0821
11.9879
12.9808
Dataseries Y:
715
955.646
1.375.649
500.000
4.706.424
1.043.000
893.367
1.015.236
105.568.000
678.367.000
2.761.149
54.839.000
3.117.144
324.610.000
1.088.642.000
182.023.000
182.023.000
5.829.596
48.692.339
10.254.799
225.438.000
1.668.100.000
47.133.850
7.833.000
374.800.000
13.641.221
38.806.307
62.463.000
714.151.000
25.526.452
305.288.000
27.322.000
1.600.000
1.437.977.000
27.601.000
827.633.000
22.011.000
174.407.000
118.105.000
449.764.000
24.153.310
263.312.000
214.452.000
635.487.000
66.179.000
143.000.000
80.139.887
6.652.015
200.700.000
59.913.000
75.543.000
14.456.000
655.968.000
3.583.600
84.020.000
5.317.858.000
52.956.000
336.389.000
48.889.000
37.514.000
6.273.516.000
128.819.000
1.401.307.000
555.869.000
912.508.000
11.459.000.000
83.814.000
307.002.000
67.885.000
233.388.000
11.525.000
47.915.000
172.660.729
429.686.000
116.171.000
21.856.000
147.470.000
10.200.000
199.795.000
29.471.835
155.002.000
101.186.000
80.944.000
41.129.205
531.872.000
657.238.000
147.144.000
407.657.000
1.392.842.000
6.437.036
28.041.000
3.154.230
663.656.000
26.921.000
552.456.000
1.361.597.000
666.931.000
350.201.000
374.145.000
248.815.000
3.123.897.000
251.355.000
1.762.400.000
811.130.000
25.136.000
161.930.000
5.827.041
296.557.000
9.548.849
2.719.546.000
3.566.500.000
107.946.000
34.700.000
2.967.930.000
458.963.000
252.832.000
224.211.000
46.177.000
3.350.727.000
219.372.000
397.754.000
38.055.000
97.511.941
3.081.775.000
64.208.000
1.021.898.000
1.069.178.000
543.058.000
49.200.000
2.696.895.000
5.127.242.000
77.755.000
120.473.000
207.004.000
312.636.000
111.597.000
51.454.000
1.404.567.000
87.131.376
474.828.000
680.041.000
246.314.000
57.389.000
2.414.300.000
33.726.952
2.833.345
115.427.000
9.078.000.000
1.165.781.000
1.465.720.000
1.963.300.000
84.080.000
16.598.200
51.748.825
1.872.529.000
18.208.000
1.022.672.000
275.386.000
62.155.250
915.349.000
143.729.000
51.700.000
190.304.000
245.958.000
344.567.000
1.352.591.000
3.369.407.000
330.947.000
241.821.000
53.095.000.000
525.930.000
420.795.000
30.594.342
742.838.000
3.219.184.000
9.765.000
3.026.000
92.673.000
2.405.711.000
106.442.000
183.224.468
327.579.000
2.293.231.000
616.318.000
56.078.000
737.423.000
12.119.000.000
2.811.901.000
780.290.000
5.482.439
34.469.000
5.851.600
292.693.000
27.777.678
3.349.512.000
1.421.529.000
144.415.000
325.562.000
42.566.440
200.000
4.477.670
13.980.000




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time0 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=307724&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]0 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=307724&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=307724&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center



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,'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,'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,'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,'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,'Correlation',header=TRUE)
a<-table.element(a,cxy,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Determination',header=TRUE)
a<-table.element(a,cxy*cxy,2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'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')
qqPlot(x,main='QQplot of variable x')
dev.off()
bitmap(file='test3.png')
qqPlot(y,main='QQplot of variable y')
dev.off()