Home » date » 2010 » Dec » 29 »

model A

*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: Wed, 29 Dec 2010 11:03:25 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/29/t1293620600djlv7hsghk6fo7t.htm/, Retrieved Wed, 29 Dec 2010 12:03:23 +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/2010/Dec/29/t1293620600djlv7hsghk6fo7t.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
16 17 23 24 27 31 40 47 43 60 64 65 65 55 57 57 57 65 69 70 71 71 73 68 65 57 41 21 21 17 9 11 6 -2 0 5 3 7 4 8 9 14 12 12 7 15 14 19 39 12 11 17 16 25 24 28 25 31 24 24
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0613010.42030.338106
20.1983981.36020.090135
30.4203982.88210.002969
40.0039980.02740.489124
50.0858970.58890.279382
60.1824151.25060.10864
70.0230250.15780.437626
80.0222230.15240.439779
90.0355240.24350.404324
10-0.147105-1.00850.159189
11-0.089968-0.61680.270174
12-0.24711-1.69410.048432
13-0.045264-0.31030.378848
14-0.053791-0.36880.356976
15-0.130796-0.89670.187226
16-0.044225-0.30320.38154
170.038890.26660.395467
18-0.223191-1.53010.066345
19-0.051024-0.34980.364023
200.0072090.04940.480396
21-0.192159-1.31740.097049
22-0.009731-0.06670.473548
230.0369180.25310.400649
24-0.171125-1.17320.123319
25-0.037932-0.260.397981
26-0.080997-0.55530.290666
27-0.126847-0.86960.194464
280.1125210.77140.222165
29-0.108675-0.7450.229978
300.0091250.06260.475193
310.0622320.42660.335794
32-0.074951-0.51380.304887
330.0263510.18070.428707
34-0.034146-0.23410.407964
35-0.035396-0.24270.40466
360.0755750.51810.303404
370.0011560.00790.496854
380.004880.03350.486727
390.0012190.00840.496683
40-0.005671-0.03890.484577
41-0.008933-0.06120.475713
42-0.014833-0.10170.459718
43-0.003823-0.02620.489602
440.0057580.03950.484339
450.0137890.09450.462544
460.0088930.0610.475822
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0613010.42030.338106
20.1953751.33940.093437
30.4160192.85210.003218
4-0.053965-0.370.356534
5-0.089142-0.61110.27203
60.0229970.15770.437702
70.0585430.40140.344989
8-0.02637-0.18080.428656
9-0.078169-0.53590.297278
10-0.203841-1.39750.084418
11-0.098572-0.67580.251247
12-0.242718-1.6640.051384
130.1313450.90050.186234
140.1483161.01680.157226
150.0758620.52010.302724
16-0.100718-0.69050.246641
170.0980120.67190.252456
18-0.150282-1.03030.154075
19-0.03725-0.25540.399775
20-0.03574-0.2450.403753
21-0.066759-0.45770.324647
22-0.137833-0.94490.174762
230.0321190.22020.413337
24-0.113392-0.77740.220415
250.046140.31630.376581
26-0.109369-0.74980.228558
270.072510.49710.310717
280.2137461.46540.074739
290.00880.06030.476074
30-0.138445-0.94910.173704
31-0.061557-0.4220.33747
32-0.04741-0.3250.373302
330.0090660.06220.475352
34-0.174618-1.19710.118632
350.0110310.07560.470018
36-0.034349-0.23550.407427
370.0126680.08680.465581
380.0466750.320.375198
390.0168050.11520.454385
400.0626350.42940.334796
410.0145190.09950.460569
42-0.065617-0.44980.327444
43-0.027478-0.18840.425695
44-0.103722-0.71110.240273
45-0.10587-0.72580.235777
46-0.001476-0.01010.495986
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293620600djlv7hsghk6fo7t/1rl9g1293620572.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293620600djlv7hsghk6fo7t/1rl9g1293620572.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293620600djlv7hsghk6fo7t/2rl9g1293620572.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293620600djlv7hsghk6fo7t/2rl9g1293620572.ps (open in new window)


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