Home » date » 2010 » Jan » 22 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 22 Jan 2010 04:30:20 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/22/t1264160070gsqv1eaeokpwp3q.htm/, Retrieved Fri, 22 Jan 2010 12:34:33 +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/Jan/22/t1264160070gsqv1eaeokpwp3q.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6550 8728 12026 14395 14587 13791 9498 8251 7049 9545 9364 8456 7237 9374 11837 13784 15926 13821 11143 7975 7610 1015 12759 8816 10677 10947 15200 17010 20900 16205 12143 8997 5568 11474 12256 10583 10862 10965 14405 20379 20128 17816 12268 8642 7962 13932 15936 12628 12267 12470 18944 21259 22015 18581 15175 10306 10792 14752 13754 11738 12181 12965 19990 23125 23541 21247 15189 14767 10895 17130 17697 16611 12674 12760 20249 22135 20677 19933 15388 15113 13401 16135 17562 14720 12225 11608 20985 19692 24081 22114 14220 13434 13598 17187 16119 13713 13210 14251 20139 21725 26099 21084 18024 16722 14385 21342 17180 14577
 
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.7012587.28770
20.3810843.96036.7e-05
30.0956260.99380.161278
40.0436330.45340.325569
50.1441191.49770.06856
60.1835291.90730.02957
70.1122771.16680.122928
88.4e-059e-040.499653
90.047560.49430.311062
100.2830382.94140.001999
110.607066.30880
120.7411317.70210
130.5478865.69380
140.2532482.63180.004868
150.0157360.16350.4352
16-0.032964-0.34260.366294
170.0888210.92310.179017
180.073320.7620.223871
190.0337260.35050.363326
20-0.088742-0.92220.179232
21-0.032445-0.33720.368319
220.1609651.67280.048631
230.4494794.67114e-06
240.5497735.71340
250.3778693.92697.6e-05
260.1380551.43470.07713
27-0.076721-0.79730.213511
28-0.085909-0.89280.186975
29-0.006601-0.06860.472717
30-0.003056-0.03180.487362
31-0.06957-0.7230.235624
32-0.169731-1.76390.040288
33-0.15521-1.6130.054832
340.0660770.68670.246875
350.2981443.09840.00124
360.3929244.08344.3e-05
370.2455922.55230.00605
380.0373890.38860.349185
39-0.140914-1.46440.072991
40-0.138841-1.44290.075975
41-0.081904-0.85120.198279
42-0.094029-0.97720.165332
43-0.152298-1.58270.058204
44-0.263652-2.73990.003596
45-0.232951-2.42090.008575
46-0.070241-0.730.233496
470.1434791.49110.069429
480.1992052.07020.020409


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7012587.28770
2-0.21777-2.26310.012814
3-0.159245-1.65490.050422
40.2291452.38130.0095
50.188661.96060.02625
6-0.13854-1.43980.076415
7-0.120238-1.24960.107082
80.0517220.53750.296011
90.3026243.1450.001073
100.3507693.64530.000206
110.3918354.07214.5e-05
120.1600131.66290.049616
13-0.248642-2.5840.005551
14-0.098134-1.01980.155042
15-0.05588-0.58070.281318
16-0.138568-1.440.076374
170.1216151.26390.1045
18-0.188375-1.95770.026426
190.1027861.06820.143909
20-0.05537-0.57540.283103
210.0031080.03230.487146
22-0.126862-1.31840.095082
230.1056061.09750.137435
240.0237020.24630.402953
25-0.127726-1.32740.093593
260.0687120.71410.238359
27-0.019058-0.19810.421688
28-0.061954-0.64380.260521
290.0343980.35750.360718
30-0.054775-0.56920.285189
31-0.04323-0.44930.327073
32-0.008056-0.08370.466718
33-0.089308-0.92810.177707
340.071580.74390.229283
350.0206630.21470.415189
36-0.025019-0.260.397679
37-0.023795-0.24730.402578
380.0137820.14320.44319
390.0241880.25140.401002
40-0.116679-1.21260.113971
410.0125860.13080.448088
42-0.055251-0.57420.283519
430.0115990.12050.452142
44-0.003394-0.03530.485965
45-0.085303-0.88650.188662
46-0.118984-1.23650.109474
470.0327280.34010.367215
48-0.117548-1.22160.112261
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/22/t1264160070gsqv1eaeokpwp3q/1r3dw1264159816.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/22/t1264160070gsqv1eaeokpwp3q/1r3dw1264159816.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/22/t1264160070gsqv1eaeokpwp3q/26cjq1264159816.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/22/t1264160070gsqv1eaeokpwp3q/26cjq1264159816.ps (open in new window)


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