Home » date » 2009 » Dec » 01 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 01 Dec 2009 04:28:41 -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/01/t1259666954mstn9c452tw7jbk.htm/, Retrieved Tue, 01 Dec 2009 12:29:16 +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/01/t1259666954mstn9c452tw7jbk.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
115.47 103.34 102.6 100.69 105.67 123.61 113.08 106.46 123.38 109.87 95.74 123.06 123.39 120.28 115.33 110.4 114.49 132.03 123.16 118.82 128.32 112.24 104.53 132.57 122.52 131.8 124.55 120.96 122.6 145.52 118.57 134.25 136.7 121.37 111.63 134.42 137.65 137.86 119.77 130.69 128.28 147.45 128.42 136.9 143.95 135.64 122.48 136.83 153.04 142.71 123.46 144.37 146.15 147.61 158.51 147.4 165.05 154.64 126.2 157.36 154.15 123.21 113.07 110.45 113.57 122.44 114.93 111.85 126.04 121.34
 
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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.556035-4.1984.8e-05
20.0635020.47940.316733
30.3557242.68570.004733
4-0.331469-2.50250.007611
50.1399951.05690.147499
60.1627951.22910.112047
7-0.376035-2.8390.003131
80.2764172.08690.02069
9-0.116754-0.88150.190883
10-0.067012-0.50590.307428
110.1070280.8080.211214
12-0.099207-0.7490.228469
130.0017360.01310.494795
140.056640.42760.335269
150.0356660.26930.394346
16-0.172723-1.3040.098733
170.1554041.17330.122783
18-0.052305-0.39490.347196
19-0.098981-0.74730.228979
200.1765871.33320.093884
21-0.08798-0.66420.254609
22-0.196978-1.48710.071243
230.4023923.0380.001795
24-0.342945-2.58920.006094
250.1100260.83070.204811
260.0968930.73150.233728
27-0.149319-1.12730.132162
280.0798080.60250.274604
290.0557220.42070.337782
30-0.141341-1.06710.145213
310.1271150.95970.17063
32-0.087663-0.66180.25537
330.0373540.2820.389475
340.0306660.23150.408869
35-0.087626-0.66160.25546
360.0233890.17660.43023
370.0108150.08170.467605
38-0.011077-0.08360.466823
39-0.023644-0.17850.429479
400.0240520.18160.428274
41-0.00982-0.07410.470579
42-0.001542-0.01160.495377
430.0255560.19290.423844
44-0.012292-0.09280.463192
45-0.033603-0.25370.400321
460.0583230.44030.330683
47-0.0255-0.19250.42401
48-0.027056-0.20430.419436
490.0196970.14870.441154
50-0.03397-0.25650.399257
510.0067130.05070.479879
520.0182560.13780.445429
53-0.029252-0.22080.413
540.0118480.08950.464518
55-0.007267-0.05490.478219
560.0092770.070.472203
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.556035-4.1984.8e-05
2-0.355623-2.68490.004742
30.3411192.57540.006316
40.1677361.26640.105264
50.010450.07890.468696
60.1277270.96430.16948
7-0.235162-1.77540.040583
8-0.17047-1.2870.101645
9-0.17425-1.31560.096795
100.0646590.48820.313653
110.0654090.49380.311662
120.046420.35050.363641
130.0165080.12460.450625
14-0.076707-0.57910.282392
150.1896351.43170.078843
16-0.188624-1.42410.079938
17-0.130683-0.98660.163996
18-0.097821-0.73850.231611
19-0.068201-0.51490.304306
200.1285130.97030.16801
210.2165221.63470.053811
22-0.152853-1.1540.126655
230.0133970.10110.459897
24-0.054037-0.4080.342413
25-0.026891-0.2030.41992
26-0.121152-0.91470.182108
270.1162910.8780.191821
280.0260440.19660.422409
29-0.048566-0.36670.357613
300.0798670.6030.274456
31-0.002098-0.01580.493709
32-0.105609-0.79730.214284
33-0.056829-0.4290.334752
340.0393090.29680.383859
35-0.04324-0.32650.372638
36-0.058285-0.440.330786
37-0.026388-0.19920.421397
38-0.059354-0.44810.327886
390.086940.65640.257109
400.0213510.16120.436254
410.0288340.21770.414222
420.0391080.29530.384434
43-0.045176-0.34110.367151
44-0.133411-1.00720.15904
450.0052850.03990.484155
46-0.079849-0.60280.274501
470.0274620.20730.418244
480.0040270.03040.487926
490.0591260.44640.328502
50-0.089687-0.67710.250533
510.0113920.0860.465881
52-0.005445-0.04110.483676
53-0.090088-0.68020.249581
54-0.013422-0.10130.459821
550.0202140.15260.439621
56-0.02159-0.1630.435548
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259666954mstn9c452tw7jbk/1vfy71259666920.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259666954mstn9c452tw7jbk/1vfy71259666920.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/01/t1259666954mstn9c452tw7jbk/2t98s1259666920.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/01/t1259666954mstn9c452tw7jbk/2t98s1259666920.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; 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