Home » date » 2008 » Dec » 23 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 23 Dec 2008 06:16:09 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/23/t1230038270hmmiena60o5luz5.htm/, Retrieved Tue, 23 Dec 2008 14:17:52 +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/2008/Dec/23/t1230038270hmmiena60o5luz5.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
98,8 100,5 110,4 96,4 101,9 106,2 81,0 94,7 101,0 109,4 102,3 90,7 96,2 96,1 106,0 103,1 102,0 104,7 86,0 92,1 106,9 112,6 101,7 92,0 97,4 97,0 105,4 102,7 98,1 104,5 87,4 89,9 109,8 111,7 98,6 96,9 95,1 97,0 112,7 102,9 97,4 111,4 87,4 96,8 114,1 110,3 103,9 101,6 94,6 95,9 104,7 102,8 98,1 113,9 80,9 95,7 113,2 105,9 108,8 102,3 99,0 100,7 115,5 100,7 109,9 114,6 85,4 100,5 114,8 116,5 112,9 102,0 106,0 105,3 118,8 106,1 109,3 117,2 92,5 104,2 112,5 122,4 113,3 100,0
 
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
10.1443731.32320.09468
2-0.180223-1.65180.051157
3-0.006711-0.06150.47555
4-0.064709-0.59310.277364
50.291662.67310.004514
60.3985763.6530.000225
70.2356292.15960.016828
8-0.037412-0.34290.36627
9-0.048219-0.44190.329836
10-0.23425-2.14690.01734
110.1113361.02040.155232
120.7277576.670
130.0624590.57240.284274
14-0.200571-1.83830.034779
15-0.103029-0.94430.173869
16-0.127794-1.17120.122405
170.1979631.81440.036596
180.2690112.46550.007858
190.1238121.13480.129852
20-0.066262-0.60730.272646
21-0.101493-0.93020.177467
22-0.259221-2.37580.009893
230.0779720.71460.23841
240.5006184.58828e-06
250.0046490.04260.483055
26-0.165328-1.51530.066731
27-0.155516-1.42530.078884
28-0.145801-1.33630.092532
290.1115011.02190.154875
300.1589271.45660.074479
310.0888950.81470.208765
32-0.067914-0.62240.267667
33-0.156086-1.43060.078134
34-0.228819-2.09720.019493
350.0111090.10180.459571
360.3751263.43810.000457
370.0126420.11590.454016
38-0.160912-1.47480.072004
39-0.136364-1.24980.107422
40-0.156336-1.43280.077807
410.040760.37360.354833
420.0842890.77250.220988
430.0739370.67760.24993
44-0.045927-0.42090.33744
45-0.173927-1.59410.057338
46-0.206103-1.8890.031174
47-0.036856-0.33780.368182
480.2522292.31170.011621
49-0.008424-0.07720.46932
50-0.177907-1.63050.053365
51-0.14864-1.36230.088371
52-0.137014-1.25580.106343
530.0031510.02890.488514
540.0176240.16150.436033
550.0205830.18860.425412
56-0.089623-0.82140.20687
57-0.130029-1.19170.11836
58-0.16865-1.54570.062968
59-0.056883-0.52130.30175
600.1719421.57590.059406


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1443731.32320.09468
2-0.205347-1.8820.031647
30.0578950.53060.298543
4-0.118371-1.08490.140538
50.3624093.32150.000663
60.2838662.60170.005481
70.3601683.3010.000708
80.0319510.29280.385186
90.1572951.44160.076562
10-0.489663-4.48781.1e-05
110.0225410.20660.418415
120.4671114.28112.5e-05
13-0.13729-1.25830.105887
14-0.133706-1.22540.111917
15-0.091661-0.84010.201621
160.0171790.15740.437636
17-0.089517-0.82040.207146
18-0.081015-0.74250.229923
190.0040640.03730.485187
200.0223710.2050.419021
210.060480.55430.29042
220.0330430.30280.381378
230.0556890.51040.305554
24-0.079096-0.72490.235255
25-0.006268-0.05740.477164
260.0278020.25480.399748
27-0.037129-0.34030.367244
28-0.047942-0.43940.330752
29-0.104064-0.95380.171471
30-0.043303-0.39690.346231
310.0606650.5560.289844
320.0043040.03940.484314
33-0.062924-0.57670.28284
340.0870970.79830.213485
35-0.096256-0.88220.190094
360.168991.54880.062592
37-0.016475-0.1510.440171
38-0.007997-0.07330.470872
39-0.001408-0.01290.494867
40-0.035527-0.32560.372764
41-0.074205-0.68010.249155
42-0.109505-1.00360.15922
43-0.055881-0.51220.304941
44-0.000618-0.00570.497747
45-0.024812-0.22740.410329
460.0381110.34930.363873
470.0170420.15620.438128
48-0.02666-0.24430.403782
49-0.077885-0.71380.238656
50-0.026385-0.24180.404755
51-0.093332-0.85540.19738
520.0715730.6560.256817
530.0223610.20490.419057
540.0079020.07240.471218
55-0.107166-0.98220.164413
56-0.0768-0.70390.241727
570.0990880.90820.183196
580.010550.09670.461601
590.0159710.14640.441986
60-0.07236-0.66320.254513
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230038270hmmiena60o5luz5/10y9u1230038167.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230038270hmmiena60o5luz5/10y9u1230038167.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230038270hmmiena60o5luz5/2lpso1230038167.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/23/t1230038270hmmiena60o5luz5/2lpso1230038167.ps (open in new window)


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