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 computationWed, 12 Nov 2008 07:29:07 -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/t12265003143lrgi0qyprfhjs6.htm/, Retrieved Sun, 19 May 2024 10:12:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=24213, Retrieved Sun, 19 May 2024 10:12:08 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact183
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Trivariate Scatterplots] [trivariate scatte...] [2008-11-12 09:06:38] [1629cfe013a845a1f17a9464ae7c26b6]
F RMPD    [Partial Correlation] [Q1 various ECA to...] [2008-11-12 14:29:07] [bca67c46bcf35400430db40e8c261de9] [Current]
Feedback Forum
2008-11-16 15:10:00 [Julie Govaerts] [reply
er is inderdaad een positief verband tussen bepaalde munten

partiële correlatie is een goede manier om verbanden te meten want corrigeert voor de schijncorrelatie, nonsenscorrelatie
bij een partiële correlatie is het nodig om een derde variabele te hebben die een groot vertekenend effect heeft = maar is moeilijk te vinden = geluk hebben

andere mogelijke methodes waren=
1) trivariate scatterplot --> 3dimensioneel het verband tussen 3 variabelen tonen, in deze context misschien handig? kan makkelijk vanuit verschillende perspectieven bekeken worden = invalshoeken en zo andere dingen ontdekken

2)Bivariate Kernell density plot --> een punten wolk
er wordt ook een lijn getekend zo dicht mogelijk bij de puntenwolk
bevatten clusters = grotere groepen van gegevens --> onderzoeken welk deel van je tijdsreeks verantwoordelijk is voor een bepaalde puntenwolk
bv cirkelvormig = een correlatie van 0
wordt meer gebruikt om te verkennen

3)Dendogram --> maakt in periodes groepen die gelijkaardig zijn = de tijdsreeks wordt gesplitst
eerder een exploratief instrument (bv voor in de marketing = welke producten horen samen in 1 groep?)

4) box-cox linearity plot --> er worden 2 variabelen voorgesteld dmv een scatterplot en dan gaan we kijken hoe lineair zij zijn.

Doel: De transformatie vinden van de X-variabele die de correlatie tussen Y en een X-variabele vervetert = meer lineair (transformatie moet nuttig zijn)

Wanneer men een lineaire fit van Y tegen X uitvoert, kan een degelijke transformatie van X de fit soms aanzienlijk verbeteren. De Box-Cox transformatie wordt gedefinieerd als:

λ (lambda) is de transformatieparameter die schommelt tussen -2 en 2 = wordt toegepast op X --> de optimale waarde van lambda zoeken (!kan ook soms niet de moeite zijn = niet veel verbeterd!)

De Box-Cox Linearity Plot is een plot van de correlatie tussen Y en de getransformeerde X voor gegeven waarden van λ. λ is het coördinaat van de variabele op de horizontale as. Het coördinaat van de verticale as is de waarde van de correlatie tussen Y en de getransformeerde X. De waarde van λ die correspondeert met de maximumcorrelatie is de optimale keuze van λ.
2008-11-16 16:13:57 [Kelly Deckx] [reply
Je hebt een goede oplossing geven maar je hebt de partial correlation niet besproken. De Partial Correlation maakt het mogelijk de invloed van een derde variabele te neutraliseren. Op die manier is het mogelijk om na te gaan of er geen sprake is van een 'schijncorrelatie'. B.V. Partial correlation (xy,z) = de correlatie tussen x en y waarbij het effect van z wordt weggenomen.
2008-11-19 20:08:20 [Bénédicte Soens] [reply
Via de partial correlation worden verbanden gezocht en deze worden bekeken op 3 vlakken. Hierbij wordt telkens 1 variabele afzijdig gehouden zodat deze geen vertekend beeld zou kunnen opleveren. Het is bijvoorbeeld niet omdat x en y een positief verband hebben en X en Z een negatief verband hebben dat je ook zeker kan spreken van een verband tussen Y en Z. Dit probeert men op deze manier weer te geven. Bij de gegevens dat u hebt gebruikt is er telkens een positief verband tussen de variabelen al kan men wel zeggen dat er tussen y en z geen groot verband is en bij x-y en x-z wel. Het is wel jammer dat de andere methoden zoals de Biavariate Density of Trivariate Scatterplot niet werden besproken.

Post a new message
Dataseries X:
0.9059
0.8883
0.8924
0.8833
0.8700
0.8758
0.8858
0.9170
0.9554
0.9922
0.9778
0.9808
0.9811
1.0014
1.0183
1.0622
1.0773
1.0807
1.0848
1.1582
1.1663
1.1372
1.1139
1.1222
1.1692
1.1702
1.2286
1.2613
1.2646
1.2262
1.1985
1.2007
1.2138
1.2266
1.2176
1.2218
1.2490
1.2991
1.3408
1.3119
1.3014
1.3201
1.2938
1.2694
1.2165
1.2037
1.2292
1.2256
1.2015
1.1786
1.1856
1.2103
1.1938
1.2020
1.2271
1.2770
1.2650
1.2684
1.2811
1.2727
1.2611
1.2881
1.3213
1.2999
1.3074
1.3242
1.3516
1.3511
1.3419
1.3716
1.3622
1.3896
1.4227
1.4684
Dataseries Y:
109.86
108.68
113.38
117.12
116.23
114.75
115.81
115.86
117.80
117.11
116.31
118.38
121.57
121.65
124.20
126.12
128.60
128.16
130.12
135.83
138.05
134.99
132.38
128.94
128.12
127.84
132.43
134.13
134.78
133.13
129.08
134.48
132.86
134.08
134.54
134.51
135.97
136.09
139.14
135.63
136.55
138.83
138.84
135.37
132.22
134.75
135.98
136.06
138.05
139.59
140.58
139.81
140.77
140.96
143.59
142.70
145.11
146.70
148.53
148.99
149.65
151.11
154.82
156.56
157.60
155.24
160.68
163.22
164.55
166.76
159.05
159.82
164.95
162.89
Dataseries Z:
7.4367
7.4452
7.4431
7.4329
7.4299
7.4324
7.4341
7.4356
7.4330
7.4301
7.4270
7.4271
7.4297
7.4280
7.4264
7.4324
7.4317
7.4274
7.4255
7.4246
7.4250
7.4332
7.4322
7.4273
7.4301
7.4370
7.4419
7.4481
7.4511
7.4493
7.4436
7.4405
7.4342
7.4355
7.4365
7.4381
7.4379
7.4313
7.4338
7.4405
7.4427
7.4466
7.4499
7.4443
7.4448
7.4584
7.4596
7.4584
7.4620
7.4596
7.4541
7.4613
7.4641
7.4612
7.4618
7.4565
7.4566
7.4602
7.4609
7.4601
7.4555
7.4564
7.4549
7.4539
7.4541
7.4494
7.4530
7.4519
7.4452
7.4410
7.4429
7.4506
7.4534
7.4543




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\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 & 0 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24213&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]0 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24213&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24213&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 time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Pearson Product Moment Partial Correlation - Ungrouped Data
StatisticValue
Correlation r(xy)0.897737265927056
Partial Correlation r(xy.z)0.849225976627546
Correlation r(xz)0.555913831457656
Partial Correlation r(xz.y)0.0854695892393486
Correlation r(yz)0.585230289899258
Partial Correlation r(yz.x)0.235305142344493

\begin{tabular}{lllllllll}
\hline
Pearson Product Moment Partial Correlation - Ungrouped Data \tabularnewline
Statistic & Value \tabularnewline
Correlation r(xy) & 0.897737265927056 \tabularnewline
Partial Correlation r(xy.z) & 0.849225976627546 \tabularnewline
Correlation r(xz) & 0.555913831457656 \tabularnewline
Partial Correlation r(xz.y) & 0.0854695892393486 \tabularnewline
Correlation r(yz) & 0.585230289899258 \tabularnewline
Partial Correlation r(yz.x) & 0.235305142344493 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=24213&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.897737265927056[/C][/ROW]
[ROW][C]Partial Correlation r(xy.z)[/C][C]0.849225976627546[/C][/ROW]
[ROW][C]Correlation r(xz)[/C][C]0.555913831457656[/C][/ROW]
[ROW][C]Partial Correlation r(xz.y)[/C][C]0.0854695892393486[/C][/ROW]
[ROW][C]Correlation r(yz)[/C][C]0.585230289899258[/C][/ROW]
[ROW][C]Partial Correlation r(yz.x)[/C][C]0.235305142344493[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=24213&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=24213&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.897737265927056
Partial Correlation r(xy.z)0.849225976627546
Correlation r(xz)0.555913831457656
Partial Correlation r(xz.y)0.0854695892393486
Correlation r(yz)0.585230289899258
Partial Correlation r(yz.x)0.235305142344493



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