Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_partialcorrelation.wasp
Title produced by softwarePartial Correlation
Date of computationThu, 13 Nov 2008 15:05:46 -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/13/t1226614000cgjuoxns1fj3tzy.htm/, Retrieved Sun, 19 May 2024 12:40:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24861, Retrieved Sun, 19 May 2024 12:40:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact168
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Partial Correlation] [] [2008-11-13 22:05:46] [0655940460a4fd80d3d4d54548b75d49] [Current]
Feedback Forum
2008-11-19 14:45:46 [Sam De Cuyper] [reply
De student geeft een correcte berekening maar geen interpretatie. De partiële correlatie geeft het verband tussen 3 verschillende variabelen, waarbij het probleem van de 3de variabele wordt aangepakt. Extra variabelen kunnen de oorzaak zijn van een schijncorrelatie of zouden de correlatie tussen 2 variabelen een vertekenend beeld kunnen geven. Bij de berekening van de correlatie moet er steeds een derde variabele (Z) zijn die een grote invloed uitoefent op de 2 andere variabelen X en Y. Je kan aan de resultaten zien dat door toevoeging van de derde variabele de correlatie sterk veranderd. Vaak treedt het probleem op dat men niet goed weet welke nu juist die derde variabele is.

2008-11-24 18:57:31 [Birgit Van Dyck] [reply
De student geeft geen interpretatie van de partial correlation. De partial correlation geeft het verband weer tussen 3 variabelen. Onbekende variabelen zouden kunnen zorgen voor een schijncorrelatie, waardoor er dus een vertekend beeld ontstaat. Bij partial correlation wordt rekening gehouden met een derde variabele die een grote invloed uitoefent op de 2 andere variabelen.
2008-11-24 19:12:44 [Jasmine Hendrikx] [reply
Evaluatie Q1:
De methode is juist uitgevoerd, maar er is geen bespreking gegeven. Je zou het volgende kunnen zeggen: Als je de correlatie berekend tussen 2 variabelen, zou je een significant verband kunnen afleiden. Bijvoorbeeld geboortecijfer (x) neemt af en ooievaarsnesten (y) zijn ook in dalende lijn. Het fundamenteel probleem is hier dat er wel een verband lijkt te zijn tussen het geboortecijfer en het aantal ooievaarsnesten (wat onlogisch is), maar er zou misschien ook een onbekende variabele (z) kunnen bestaan, die een belangrijke invloed heeft op de correlatie tussen x en y. In dit voorbeeld zou deze derde variabele de industrialisatie kunnen zijn. Deze zorgt ervoor dat zowel het aantal ooievaarsnesten als het aantal geboortes daalt, maar in feite is er dus geen verband tussen het aantal ooievaarsnesten en het aantal geboortes (het ging dus om een schijnverband). Om dit probleem op te lossen gaat men gebruik maken van partiële correlatie. Hier wordt dan de gewone correlatie berekend tussen x en y, en daarna wordt dezelfde correlatie opnieuw berekend, maar de effecten van z worden eerst weggewerkt. Is er sprake van een groot verschil tussen deze correlaties, dan kan men zeggen dat de variabele z een groot vertekend effect geeft. Als we dan kijken naar de tabel die berekend is in het document, zien we dat het oorspronkelijk verband tussen x en y 0.38 bedraagt. Wanneer dan het verband opnieuw wordt berekend waarbij het effect van z weggewerkt is, dan zien we dat deze ook 0.38 bedraagt, dus dat er eigenlijk geen of nauwelijks een verschil merkbaar is. We kunnen dus stellen dat z geen invloed heeft op de correlatie tussen x en y. De relatie tussen x en z is slechts -0.05, waardoor we eigenlijk niet van een verband kunnen spreken. Wanneer we dit verband opnieuw berekenen, waarbij het effect van y weggewerkt is, dan zien we dat dit slechts lichtjes wijzigt. We kunnen dus stellen dat y geen effect heeft op de correlatie tussen x en z. Hetzelfde kunnen we opmerken voor het verband tussen y en z.

Post a new message
Dataseries X:
3.3
2.86
2.27
1.95
2.98
1.71
1.31
1.37
1.8
2.14
2.05
2.43
5.28
4.07
3.24
1.22
1.18
1
1.18
1.86
2.38
1.48
1.62
2.44
3.91
3.83
2.9
1.67
1.19
1.26
1.6
2.61
2.19
1.46
2.17
2.6
4.33
2.9
2.05
1.51
1.19
1.08
1.1
1.39
1.35
1.69
2.35
3.7
3.55
3.75
4.23
2.13
1.33
1.46
2.1
1.76
1.28
1.26
1.99
3.06
3.33
4.02
2.43
1.39
1.52
1.75
2.22
2.57
2.37
1.69
2.71
3.06
4.64
3.22
2.35
2.01
1.49
1.31
1.29
1.33
1.33
1.39
2.39
3.04
Dataseries Y:
2.36
1.95
2.16
2.76
2.09
1.49
1.17
1.3
1.26
2.17
2.03
2.18
2.61
2.58
3.86
3.81
2.41
1.47
1.33
1.38
1.57
2.6
2.18
2.36
2.24
2.41
2.51
2.98
1.87
1.9
1.47
1.45
2.71
2.9
2.11
2.18
2.24
2.05
2.42
2.77
1.99
1.47
1.09
0.93
1.32
2.03
2.04
2.78
2.8
3.03
3.11
2.75
2.78
1.76
1.29
1.28
1.43
1.71
1.89
1.84
2.08
2.09
2.36
2.99
2.75
1.58
1.69
1.3
1.97
1.84
1.96
1.86
2.75
2.62
2.41
3.61
2.03
1.45
1.4
1.3
1.58
2.1
2.27
2.54
Dataseries Z:
5,41
5,46
5,64
5,76
5,82
5,84
5,83
5,85
5,85
5,88
5,87
5,87
5,85
5,89
5,88
5,89
5,9
5,91
5,89
5,92
5,91
5,96
5,96
5,99
5,92
5,96
5,96
5,97
5,96
5,95
5,97
5,98
5,99
6,03
6,05
6,08
6,1
6,11
6,09
6,1
6,12
6,13
6,13
6,17
6,19
6,23
6,21
6,23
6,25
6,23
6,23
6,24
6,28
6,3
6,34
6,27
6,22
6,31
6,33
6,31
6,35
6,33
6,36
6,37
6,33
6,34
6,42
6,42
6,48
6,47
6,5
6,52
6,49
6,51
6,52
6,54
6,59
6,6
6,59
6,58
6,55
6,57
6,61
6,61




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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 & 1 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24861&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24861&T=0

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







Pearson Product Moment Partial Correlation - Ungrouped Data
StatisticValue
Correlation r(xy)0.383600382551283
Partial Correlation r(xy.z)0.38214081538953
Correlation r(xz)-0.0491550786206913
Partial Correlation r(xz.y)-0.0333001522454925
Correlation r(yz)-0.0480655400487725
Partial Correlation r(yz.x)-0.0316675813932170

\begin{tabular}{lllllllll}
\hline
Pearson Product Moment Partial Correlation - Ungrouped Data \tabularnewline
Statistic & Value \tabularnewline
Correlation r(xy) & 0.383600382551283 \tabularnewline
Partial Correlation r(xy.z) & 0.38214081538953 \tabularnewline
Correlation r(xz) & -0.0491550786206913 \tabularnewline
Partial Correlation r(xz.y) & -0.0333001522454925 \tabularnewline
Correlation r(yz) & -0.0480655400487725 \tabularnewline
Partial Correlation r(yz.x) & -0.0316675813932170 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24861&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.383600382551283[/C][/ROW]
[ROW][C]Partial Correlation r(xy.z)[/C][C]0.38214081538953[/C][/ROW]
[ROW][C]Correlation r(xz)[/C][C]-0.0491550786206913[/C][/ROW]
[ROW][C]Partial Correlation r(xz.y)[/C][C]-0.0333001522454925[/C][/ROW]
[ROW][C]Correlation r(yz)[/C][C]-0.0480655400487725[/C][/ROW]
[ROW][C]Partial Correlation r(yz.x)[/C][C]-0.0316675813932170[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24861&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24861&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.383600382551283
Partial Correlation r(xy.z)0.38214081538953
Correlation r(xz)-0.0491550786206913
Partial Correlation r(xz.y)-0.0333001522454925
Correlation r(yz)-0.0480655400487725
Partial Correlation r(yz.x)-0.0316675813932170



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