Home » date » 2009 » Dec » 13 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 13 Dec 2009 03:04:21 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698699xagfcifae5q8x48.htm/, Retrieved Sun, 13 Dec 2009 11:05:01 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698699xagfcifae5q8x48.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2.14 2.45 2.52 2.3 2.2541086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698 2.06 1.99 2.25 2.26 2.36 2.3 2.19 2.31 2.21 2.21 2.26 2.18 2.21 2.33 2.12 2.08 1.97 2.09 2.11 2.24 2.45 2.68 2.73 2.76 2.83 3.16 3.22 3.22 3.34 3.35 3.42 3.58 3.71 3.68 3.83 3.94 3.88 4.03 4.15 4.32 4.4 4.37 4.14 4.11 4.16 3.98 4.13 3.76 3.66 3.85 4.03 4.31 4.58 4.46 4.41 3.84 2.84 2.66 2.17 1.43 1.47 1.29 1.23 1.09 0.94 0.76 0.67
 
Output produced by software:


Summary of computational 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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.89767510.73460
20.8243199.85740
30.7742939.25920
40.7090898.47950
50.6719218.0350
60.6559487.8440
70.6535647.81550
80.6602627.89560
90.6592187.88310
100.6519797.79650
110.6733548.05210
120.68138.14720
130.6185377.39660
140.5775476.90650
150.548496.5590
160.4997475.97610
170.4881675.83760
180.4683555.60070
190.4600055.50090
200.4677095.5930
210.4484255.36240
220.4368895.22440
230.4570075.4650
240.453575.42390
250.392184.68983e-06
260.3540224.23352e-05
270.3101123.70840.000149
280.2739783.27630.00066
290.2677433.20170.000842
300.2472872.95710.001817
310.2488392.97570.001717
320.2530833.02640.001468
330.2395192.86420.002405
340.2326932.78260.00306
350.2450892.93080.001968
360.2316432.770.003175
370.1965382.35030.010064
380.168752.0180.022733
390.1366841.63450.052177
400.1071761.28160.101021
410.0999691.19550.116944
420.076240.91170.181732
430.0748580.89520.1861
440.0666960.79760.213222
450.0401160.47970.316079
460.0326290.39020.348492
470.0254580.30440.380622
480.0091290.10920.45661
49-0.024818-0.29680.383531
50-0.065638-0.78490.216902
51-0.102155-1.22160.111935
52-0.12644-1.5120.06637
53-0.141657-1.6940.046224
54-0.157953-1.88880.030469
55-0.16092-1.92430.02815
56-0.170493-2.03880.021656
57-0.192714-2.30450.011317
58-0.203189-2.42980.008174
59-0.212262-2.53830.006105
60-0.242339-2.8980.002174


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.89767510.73460
20.0952681.13920.128254
30.1002951.19940.116187
4-0.072331-0.8650.194257
50.1086821.29970.097906
60.1146241.37070.086307
70.1349581.61390.05438
80.0991761.1860.1188
90.0259960.31090.378177
100.0146760.17550.430467
110.1989062.37860.009351
120.0575920.68870.246064
13-0.31564-3.77450.000117
14-0.037095-0.44360.329003
150.0381780.45650.324348
16-0.049505-0.5920.277396
170.0851651.01840.155098
18-0.114565-1.370.086417
19-0.000408-0.00490.498056
200.0657370.78610.216556
21-0.042744-0.51110.30502
220.0050520.06040.475955
230.0960281.14830.126376
240.0081450.09740.461274
25-0.228351-2.73070.003558
26-0.04144-0.49560.310486
27-0.052648-0.62960.264986
280.0786260.94020.174343
290.0432090.51670.303082
30-0.095138-1.13770.128578
31-0.004442-0.05310.478856
320.0010190.01220.495148
330.108261.29460.098772
34-0.03348-0.40040.344742
35-0.007017-0.08390.466624
36-0.015382-0.18390.427158
370.0058160.06960.472323
38-0.009903-0.11840.452948
39-0.009433-0.11280.455172
40-0.069576-0.8320.203394
410.009470.11320.454996
42-0.033979-0.40630.342555
43-0.028097-0.3360.368684
44-0.061675-0.73750.231004
450.0009360.01120.495543
46-0.014362-0.17170.43194
47-0.057193-0.68390.247564
48-0.009763-0.11670.453613
49-0.060048-0.71810.236943
50-0.081733-0.97740.165014
510.0050390.06030.476015
52-0.032245-0.38560.350184
53-0.036868-0.44090.329985
540.0053330.06380.474619
55-0.040483-0.48410.314526
56-0.018855-0.22550.410967
57-0.021864-0.26150.397057
58-0.02427-0.29020.386032
590.0016740.020.49203
60-0.113328-1.35520.088745
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698699xagfcifae5q8x48/1pxya1260698658.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698699xagfcifae5q8x48/1pxya1260698658.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698699xagfcifae5q8x48/2d2ah1260698658.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260698699xagfcifae5q8x48/2d2ah1260698658.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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