Home » date » 2007 » Nov » 30 » attachments

PACF en ACF totaal

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Nov 2007 05:12:02 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/30/t1196424088kg9won16fjq3jh3.htm/, Retrieved Fri, 30 Nov 2007 13:01:30 +0100
 
User-defined keywords:
WS 11 G29
 
Dataseries X:
» Textbox « » Textfile « » CSV «
153,4 159,5 157,4 169,1 172,6 161,7 159,2 157,4 153,9 144,8 142,2 140,1 143,4 153,3 166,9 170,6 182,8 170,3 156,6 155,2 154,7 151,6 152,1 153,2 149,5 149,7 144,3 140 137,8 132,2 128,9 123,1 120,4 122,8 126 124,5 120,6 114,7 111,7 109,1 108 107,7 99,9 103,7 103,4 103,4 104,7 105,8 105,3 103 103,8 103,4 105,8 101,4 97 94,3 96,6 97,1 95,7 96,9 97,4 95,3 93,6 91,5 93,1 91,7 94,3 93,9 90,9 88,3 91,3 91,7 92,4 92 95,6 95,8 96,4 99 107 109,7 116,2 115,9 113,8 112,6 113,7 115,9 110,3 111,3 113,4 108,2 104,8 106 110,9 115 118,4 121,4 128,8 131,7 141,7 142,9 139,4 134,7 125 113,6 111,5 108,5 112,3 116,6 115,5 120,1 132,9 128,1 129,3 132,5 131 124,9 120,8 122 122,1 127,4 135,2 137,3 135 136 138,4 134,7 138,4 133,9 133,6 141,2 151,8 155,4 156,6 161,6 160,7 156 159,5 168,7 169,9 169,9 185,9
 
Text written by user:
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0111.31370
10.1706021.93010.027901
2-0.003256-0.03680.514663
30.176391.99560.024049
4-0.025388-0.28720.612802
5-0.159626-1.8060.963363
6-0.100355-1.13540.870832
7-0.035597-0.40270.656093
8-0.125282-1.41740.920603
9-0.130846-1.48040.929382
10-0.040994-0.46380.678209
11-0.014179-0.16040.563598
12-0.346562-3.92090.999928
130.1260461.4260.078145
140.185452.09810.01893
15-0.119007-1.34640.909725
160.0619260.70060.242407
170.0801790.90710.183023
180.0803450.9090.182529
190.0832960.94240.173884
200.0326960.36990.35603
210.048350.5470.292659
220.0554510.62740.265772
23-0.126044-1.4260.921852
24-0.15055-1.70330.954529
25-0.151517-1.71420.955545
26-0.105706-1.19590.883033
270.0772040.87350.192024
28-0.032674-0.36970.643876
290.0012460.01410.494385
30-0.019895-0.22510.588864
310.04620.52270.301045
320.1105561.25080.106645
330.0255040.28850.386696
34-0.055757-0.63080.735358
350.0745880.84390.200159


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1706021.93010.027901
1-0.033331-0.37710.646636
20.1883352.13080.017511
3-0.096147-1.08780.860633
4-0.134439-1.5210.934638
5-0.091658-1.0370.849153
60.0081950.09270.463139
7-0.080715-0.91320.818569
8-0.083282-0.94220.826074
9-0.040259-0.45550.675233
100.0014520.01640.493457
11-0.370388-4.19050.999974
120.2792563.15940.000986
130.0360840.40820.341888
14-0.080738-0.91340.818637
15-0.010726-0.12140.5482
16-0.07854-0.88860.812052
170.1368451.54820.062018
180.0955441.0810.140875
19-0.087587-0.99090.838206
200.0327730.37080.355704
210.0358220.40530.342974
22-0.117974-1.33470.907832
23-0.281069-3.17990.999076
240.0711490.8050.211169
250.0916161.03650.150959
260.0359750.4070.342341
27-0.055561-0.62860.734633
28-0.059943-0.67820.750559
29-0.047653-0.53910.704633
300.168141.90230.02969
31-0.039697-0.44910.672947
320.000390.00440.498242
33-0.075104-0.84970.801463
34-0.025397-0.28730.612839
35-0.058366-0.66030.744887
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196424088kg9won16fjq3jh3/1cm0c1196424720.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196424088kg9won16fjq3jh3/1cm0c1196424720.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196424088kg9won16fjq3jh3/2dhnm1196424720.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196424088kg9won16fjq3jh3/2dhnm1196424720.ps (open in new window)


 
Parameters:
par1 = 36 ; par2 = 0.0 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x,par1,main='Autocorrelation',xlab='lags',ylab='ACF')
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(mytstat,lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(mytstat,lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by