Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_partialcorrelation.wasp
Title produced by softwarePartial Correlation
Date of computationWed, 12 Nov 2008 10:36:31 -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/2008/Nov/12/t1226511421em1pfkcpplrki9p.htm/, Retrieved Sun, 19 May 2024 12:38:34 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24316, Retrieved Sun, 19 May 2024 12:38:34 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact169
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Bivariate Kernel Density Estimation] [Bel20 en Downjones] [2008-11-12 17:23:23] [74be16979710d4c4e7c6647856088456]
F RMPD    [Partial Correlation] [kelly] [2008-11-12 17:36:31] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum
2008-11-15 13:56:41 [Hundra Smet] [reply
ook hier juiste voor- en nadelen. ik zou het iets uitgebreider maken.

om de werking van de partial correlation te verduidelijken zal ik een voorbeeld geven.
bij part corr r(xz.y) noemen we de variabele y de controlevariabele. deze zal een vertekenend effect hebben op het verband tussen x en z.

de correlatie tussen x en y is zeer hoog: 0,93.
maar ook de partial correlation tussen x en y is hier groot (0,84). de beide variabelen hebben dus, ondanks de invloed van y nog steeds een positieve correlatie en het resultaat van y is niet zo vertekenend.
2008-11-24 20:50:53 [Jonas Scheltjens] [reply
Bij de partiële correlatie gaat het erom dat de 3de dimensie wordt weggelaten (dit heeft de student niet besproken). Dus, er worden telkens slecht 2 reeksen vergeleken, terwijl de derde buiten beschouwing wordt gelaten. Dit had best nog vermeld moeten worden. De partiële correlatie levert vaak verbanden op. Maar dit is echter niet steeds een oorzakelijk verband (zoals er bijvoorbeeld een positieve correlatie werd gevonden tussen de aantallen van geboortes van baby’s bij mensen en bij ooievaars, maar het is absurd om te stellen dat er hier sprake is van een oorzakelijk verband). Dit verschijnsel noemt men dan ook wel een schijncorrelatie. Waarom zo’n schijncorrelatie dan toch een positief verband kan tonen ligt aan het feit dat er tussen de gegevensreeksen onderling misschien geen verband bestaat, maar dat de relatie zo’n verloop vertoont vanwege een derde (of in veel gevallen zijn er zeer veel) variabele die niet in het onderzoek werd opgenomen. De student heeft gelijk wanneer hij zegt dat men met letters XYZ moet werken i.p.v. de namen, maar in tegenstelling tot de student vind ik dit niet echt hinderlijk. Wel is het juist dat de cijfers in een tabel van de partial correlation makkelijk vallen af te lezen. Hier is de correlatie tussen x en y , zonder z (0,84) het hoogst.

Post a new message
Dataseries X:
2174,56
2196,72
2350,44
2440,25
2408,64
2472,81
2407,6
2454,62
2448,05
2497,84
2645,64
2756,76
2849,27
2921,44
2981,85
3080,58
3106,22
3119,31
3061,26
3097,31
3161,69
3257,16
3277,01
3295,32
3363,99
3494,17
3667,03
3813,06
3917,96
3895,51
3801,06
3570,12
3701,61
3862,27
3970,1
4138,52
4199,75
4290,89
4443,91
4502,64
4356,98
4591,27
4696,96
4621,4
4562,84
4202,52
4296,49
4435,23
4105,18
4116,68
3844,49
3720,98
3674,4
3857,62
3801,06
3504,37
3032,6
3047,03
2962,34
2197,82
Dataseries Y:
10205,29
10295,98
10892,76
10631,92
11441,08
11950,95
11037,54
11527,72
11383,89
10989,34
11079,42
11028,93
10973
11068,05
11394,84
11545,71
11809,38
11395,64
11082,38
11402,75
11716,87
12204,98
12986,62
13392,79
14368,05
15650,83
16102,64
16187,64
16311,54
17232,97
16397,83
14990,31
15147,55
15786,78
15934,09
16519,44
16101,07
16775,08
17286,32
17741,23
17128,37
17460,53
17611,14
18001,37
17974,77
16460,95
16235,39
16903,36
15543,76
15532,18
13731,31
13547,84
12602,93
13357,7
13995,33
14084,6
13168,91
12989,35
12123,53
9117,03
Dataseries Z:
9762,12
10124,63
10540,05
10601,61
10323,73
10418,4
10092,96
10364,91
10152,09
10032,8
10204,59
10001,6
10411,75
10673,38
10539,51
10723,78
10682,06
10283,19
10377,18
10486,64
10545,38
10554,27
10532,54
10324,31
10695,25
10827,81
10872,48
10971,19
11145,65
11234,68
11333,88
10997,97
11036,89
11257,35
11533,59
11963,12
12185,15
12377,62
12512,89
12631,48
12268,53
12754,8
13407,75
13480,21
13673,28
13239,71
13557,69
13901,28
13200,58
13406,97
12538,12
12419,57
12193,88
12656,63
12812,48
12056,67
11322,38
11530,75
11114,08
9181,73




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24316&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24316&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24316&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Pearson Product Moment Partial Correlation - Ungrouped Data
StatisticValue
Correlation r(xy)0.934464927146275
Partial Correlation r(xy.z)0.835884801081939
Correlation r(xz)0.87093574446003
Partial Correlation r(xz.y)0.652775288916858
Correlation r(yz)0.774757443781979
Partial Correlation r(yz.x)-0.223482365480305

\begin{tabular}{lllllllll}
\hline
Pearson Product Moment Partial Correlation - Ungrouped Data \tabularnewline
Statistic & Value \tabularnewline
Correlation r(xy) & 0.934464927146275 \tabularnewline
Partial Correlation r(xy.z) & 0.835884801081939 \tabularnewline
Correlation r(xz) & 0.87093574446003 \tabularnewline
Partial Correlation r(xz.y) & 0.652775288916858 \tabularnewline
Correlation r(yz) & 0.774757443781979 \tabularnewline
Partial Correlation r(yz.x) & -0.223482365480305 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24316&T=1

[TABLE]
[ROW][C]Pearson Product Moment Partial Correlation - Ungrouped Data[/C][/ROW]
[ROW][C]Statistic[/C][C]Value[/C][/ROW]
[ROW][C]Correlation r(xy)[/C][C]0.934464927146275[/C][/ROW]
[ROW][C]Partial Correlation r(xy.z)[/C][C]0.835884801081939[/C][/ROW]
[ROW][C]Correlation r(xz)[/C][C]0.87093574446003[/C][/ROW]
[ROW][C]Partial Correlation r(xz.y)[/C][C]0.652775288916858[/C][/ROW]
[ROW][C]Correlation r(yz)[/C][C]0.774757443781979[/C][/ROW]
[ROW][C]Partial Correlation r(yz.x)[/C][C]-0.223482365480305[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24316&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24316&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 Partial Correlation - Ungrouped Data
StatisticValue
Correlation r(xy)0.934464927146275
Partial Correlation r(xy.z)0.835884801081939
Correlation r(xz)0.87093574446003
Partial Correlation r(xz.y)0.652775288916858
Correlation r(yz)0.774757443781979
Partial Correlation r(yz.x)-0.223482365480305



Parameters (Session):
Parameters (R input):
R code (references can be found in the software module):
(rho12 <- cor(x, y))
(rho23 <- cor(y, z))
(rho13 <- cor(x, z))
(rhoxy_z <- (rho12-(rho13*rho23))/(sqrt(1-(rho13*rho13)) * sqrt(1-(rho23*rho23))))
(rhoxz_y <- (rho13-(rho12*rho23))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho23*rho23))))
(rhoyz_x <- (rho23-(rho12*rho13))/(sqrt(1-(rho12*rho12)) * sqrt(1-(rho13*rho13))))
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Pearson Product Moment Partial Correlation - Ungrouped Data',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Statistic',1,TRUE)
a<-table.element(a,'Value',1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation r(xy)',header=TRUE)
a<-table.element(a,rho12)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('partial_correlation1.htm','Partial Correlation r(xy.z)',''),header=TRUE)
a<-table.element(a,rhoxy_z)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation r(xz)',header=TRUE)
a<-table.element(a,rho13)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('partial_correlation1.htm','Partial Correlation r(xz.y)',''),header=TRUE)
a<-table.element(a,rhoxz_y)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Correlation r(yz)',header=TRUE)
a<-table.element(a,rho23)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,hyperlink('partial_correlation1.htm','Partial Correlation r(yz.x)',''),header=TRUE)
a<-table.element(a,rhoyz_x)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')