Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_partialcorrelation.wasp
Title produced by softwarePartial Correlation
Date of computationMon, 10 Nov 2008 05:25:37 -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/10/t12263199867hazt7y732e3qmj.htm/, Retrieved Sat, 18 May 2024 21:27:33 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=22992, Retrieved Sat, 18 May 2024 21:27:33 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact180
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Partial Correlation] [Partial Correlation] [2008-11-10 12:25:37] [e515c0250d6233b5d2604259ab52cebe] [Current]
Feedback Forum
2008-11-21 11:52:39 [Hidde Van Kerckhoven] [reply
Dit is een super goed voorbeeld wat de pariele correlatie doet! Als we zien naar de correlatie van X en Y zien we een duidelijke positieve correlatie... Maar als we naar de correlatie zien van X en Y, zonder de invloed van Z zien we een erg sterke negatieve correlatie!! De z variabele zorgde voor een vertekend beeld tussen X en Y!
2008-11-23 16:23:55 [Davy De Nef] [reply
De student berekent hier de partial correlation. Hierbij worden 3 variabelen gebruikt. Naast de partial correlation wordt ook de gewone correlatie gemeten. We zien dat de gewone correlatie elke keer postief en zeer hoog is. Deze cijfers liggen allemaal boven 0,92. Bij de partial correlation is het echter een ander paar mouwen. In 2 van de 3 gevallen wordt hetzelfde bereikt als hierboven, namelijk dat de waarden van de correlatie boven 0,92 liggen, maar bij het 3de geval is er sprake van een negatieve correlatie. Het getal daar bedraagt maar liefst -0,99!
Daaruit kan je concluderen dat de partial correlation een beter en duidelijker beeld geeft van de effectieve correlatie.

Post a new message
Dataseries X:
136,5
146,4
157,7
148,7
154,6
152,1
144,8
142,1
157
159,1
164
151,5
135,9
138,5
161
151,7
142,9
157,4
138,9
141
150,9
149,9
153
144,3
128,1
123,3
155,9
144,1
134,1
153,1
131
129,8
139,9
135,6
126,8
134,4
113,5
107,5
133,8
119
125,9
130,1
114,2
111,6
131,2
124,1
127,1
123,4
100,7
100,3
121,6
110,5
110,3
122,7
102,6
101,8
113,6
107,2
116,8
112,5
Dataseries Y:
154,2
175,8
187,6
169,9
182,3
179,4
171,5
166,6
171,8
164,3
172,6
163
142,2
149,7
168,4
156,5
150,4
170,6
150,1
151,5
159,5
155,2
154,8
156,5
134,2
135,9
156,4
144,2
143,7
164,8
140,2
132,2
162
145
146,3
145,5
124,4
126
146,8
130,8
133,6
145,7
122,8
118,5
149,5
129,9
134,8
133,3
117,2
120,2
136,4
118,5
126,7
137,5
116,3
113,3
136,6
112,9
128,6
126,8
Dataseries Z:
147,5
164,7
176,2
161,8
171,7
169
161,4
157,2
166,2
162,1
169,1
158,4
139,7
145,2
165,3
154,4
147,4
165,3
145,7
147,2
156,1
152,9
153,8
151,7
131,8
131
155,8
143,8
139,8
160,1
136,5
131
153,7
141,3
138,9
141,2
120,3
118,9
141,7
126,2
130,6
139,8
119,5
115,8
142,6
127,7
131,8
129,5
111,1
112,6
130,8
115,4
120,5
131,9
111,2
108,9
128,1
110,7
124,1
121,5




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

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







Pearson Product Moment Partial Correlation - Ungrouped Data
StatisticValue
Correlation r(xy)0.92692448668605
Partial Correlation r(xy.z)-0.998834136200864
Correlation r(xz)0.968482450274779
Partial Correlation r(xz.y)0.999486484536756
Correlation r(yz)0.99116391523606
Partial Correlation r(yz.x)0.999854401629965

\begin{tabular}{lllllllll}
\hline
Pearson Product Moment Partial Correlation - Ungrouped Data \tabularnewline
Statistic & Value \tabularnewline
Correlation r(xy) & 0.92692448668605 \tabularnewline
Partial Correlation r(xy.z) & -0.998834136200864 \tabularnewline
Correlation r(xz) & 0.968482450274779 \tabularnewline
Partial Correlation r(xz.y) & 0.999486484536756 \tabularnewline
Correlation r(yz) & 0.99116391523606 \tabularnewline
Partial Correlation r(yz.x) & 0.999854401629965 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=22992&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.92692448668605[/C][/ROW]
[ROW][C]Partial Correlation r(xy.z)[/C][C]-0.998834136200864[/C][/ROW]
[ROW][C]Correlation r(xz)[/C][C]0.968482450274779[/C][/ROW]
[ROW][C]Partial Correlation r(xz.y)[/C][C]0.999486484536756[/C][/ROW]
[ROW][C]Correlation r(yz)[/C][C]0.99116391523606[/C][/ROW]
[ROW][C]Partial Correlation r(yz.x)[/C][C]0.999854401629965[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=22992&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=22992&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.92692448668605
Partial Correlation r(xy.z)-0.998834136200864
Correlation r(xz)0.968482450274779
Partial Correlation r(xz.y)0.999486484536756
Correlation r(yz)0.99116391523606
Partial Correlation r(yz.x)0.999854401629965



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