Home » date » 2008 » Dec » 09 »

*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, 09 Dec 2008 11:01:29 -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/09/t1228845766b5atbqmkt3jw97y.htm/, Retrieved Tue, 09 Dec 2008 18:02:46 +0000
 
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/09/t1228845766b5atbqmkt3jw97y.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106,7 110,2 125,9 100,1 106,4 114,8 81,3 87 104,2 108 105 94,5 92 95,9 108,8 103,4 102,1 110,1 83,2 82,7 106,8 113,7 102,5 96,6 92,1 95,6 102,3 98,6 98,2 104,5 84 73,8 103,9 106 97,2 102,6 89 93,8 116,7 106,8 98,5 118,7 90 91,9 113,3 113,1 104,1 108,7 96,7 101 116,9 105,8 99 129,4 83 88,9 115,9 104,2 113,4 112,2 100,8 107,3 126,6 102,9 117,9 128,8 87,5 93,8 122,7 126,2 124,6 116,7 115,2 111,1 129,9 113,3 118,5 137,9 103,6 101,7 127,4 137,5 128,3 118,2 117,1 124,2 126 132,1
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.290697-2.71140.004036
2-0.442928-4.13144.1e-05
30.3601253.3590.000581
4-0.2096-1.9550.026896
5-0.106424-0.99270.161816
60.3932033.66750.000211
7-0.131364-1.22530.111887
8-0.145631-1.35840.088931
90.291262.71670.003977
10-0.397654-3.70910.000183
11-0.178355-1.66360.049897
120.7275716.78630
13-0.184406-1.720.044492
14-0.362397-3.38020.000543
150.2782212.59510.005549
16-0.169052-1.57680.059235
17-0.093864-0.87550.191854
180.3235573.01790.001669
19-0.098333-0.91720.180789
20-0.114217-1.06530.144833
210.2537822.36710.010073
22-0.370141-3.45240.00043
23-0.080796-0.75360.226557
240.5354814.99462e-06
25-0.162541-1.51610.066562
26-0.227538-2.12230.018326
270.192471.79520.038044
28-0.139374-1.30.098519
29-0.064457-0.60120.274629
300.2448952.28420.012396
31-0.082858-0.77290.220852
32-0.057633-0.53760.296126
330.1532011.4290.078297
34-0.25912-2.41690.008871
35-0.094502-0.88150.190249
360.4249993.96417.5e-05
37-0.098146-0.91540.181245
38-0.199131-1.85740.033321
390.1547971.44380.076186
40-0.110966-1.0350.151764
41-0.049478-0.46150.322796
420.1674111.56150.061018
43-0.037272-0.34760.364472
44-0.025725-0.23990.40547
450.092420.8620.195519
46-0.206574-1.92680.028635
47-0.072389-0.67520.250671
480.3371843.1450.001136
49-0.047893-0.44670.328096
50-0.18305-1.70740.045659
510.1142091.06530.14485
52-0.073992-0.69010.245969
53-0.026924-0.25110.401154
540.1034890.96530.168539
55-0.019638-0.18320.427546
56-0.017716-0.16520.434569
570.0688750.64240.261144
58-0.153286-1.42980.078184
59-0.060827-0.56740.285967
600.2595442.42090.008781


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.290697-2.71140.004036
2-0.576118-5.37370
3-0.016821-0.15690.437844
4-0.498141-4.64646e-06
5-0.319209-2.97740.001883
6-0.156661-1.46120.073777
7-0.113271-1.05650.146828
8-0.009378-0.08750.465247
90.3682213.43450.000456
10-0.201936-1.88350.031484
11-0.447918-4.17793.5e-05
120.1474941.37570.086218
130.155821.45340.074857
140.131591.22740.111494
150.0016080.0150.494034
160.0402330.37530.354187
170.0327850.30580.380244
18-0.060098-0.56060.288271
19-0.019908-0.18570.426561
20-0.077347-0.72140.236286
210.0848790.79170.215344
22-0.085499-0.79750.213672
230.1561051.45610.074488
240.0023960.02240.491109
250.0474820.44290.329477
260.0403380.37630.353823
270.057020.53190.298092
280.0827880.77220.221045
290.0642170.5990.275371
300.0508060.47390.318385
310.0351170.32750.372021
320.0331080.30880.379101
33-0.096895-0.90380.184306
340.0475030.44310.329403
35-0.210715-1.96540.026278
36-0.025341-0.23640.406854
37-0.044881-0.41860.338261
38-0.001952-0.01820.492758
39-0.010999-0.10260.459263
40-0.032303-0.30130.381953
410.0747810.69750.243671
42-0.125415-1.16980.12264
430.0487550.45480.325209
44-0.077872-0.72630.234789
450.0748790.69840.243386
46-0.108976-1.01650.156114
47-0.028355-0.26450.39602
480.0025350.02360.490596
490.0035760.03340.486735
500.0125720.11730.453462
51-0.050987-0.47560.317784
520.0411280.38360.351098
530.038040.35480.361794
540.1217851.13590.129552
55-0.012875-0.12010.452345
560.000770.00720.497141
57-0.072376-0.67510.25071
580.0246330.22980.409407
590.0547240.51040.305519
60-0.027977-0.2610.397372
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228845766b5atbqmkt3jw97y/13mov1228845683.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228845766b5atbqmkt3jw97y/13mov1228845683.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228845766b5atbqmkt3jw97y/2majp1228845683.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228845766b5atbqmkt3jw97y/2majp1228845683.ps (open in new window)


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