Home » date » 2010 » May » 03 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 03 May 2010 17:33:22 +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/May/03/t1272908083vvph9hxdmj5hw3j.htm/, Retrieved Mon, 03 May 2010 19:34:45 +0200
 
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/May/03/t1272908083vvph9hxdmj5hw3j.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 «
66857.2 64722.8 68489.6 71342.9 63542.5 69425.0 58927.9 61009.0 66837.0 66147.6 65982.3 65527.5 65914.6 59189.9 66211.4 66400.8 60167.7 64547.9 57706.2 58642.6 60082.1 63414.8 66044.0 57628.5 62838.8 55758.6 61004.5 66173.4 57489.0 59552.2 57061.8 55895.3 56314.7 61232.8 60014.1 57685.4 60403.1 52349.7 55693.3 65676.1 54898.8 55518.2 53779.1 52340.9 55704.4 60330.3 52837.4 55388.1 60383.4 52070.3 54077.0 62887.8 49212.8 57722.0 53936.8 46991.0 54984.2 56485.1 51277.8 53596.4 54252.5 49413.0 53213.2 58695.3 48723.5 54510.0 49454.1 46136.6 54622.5 50583.0 53224.3 53056.4
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.528257-4.45121.6e-05
2-0.120956-1.01920.155786
30.4044733.40820.000541
4-0.4516-3.80520.000149
50.0776280.65410.257579
60.2946072.48240.007708
7-0.097292-0.81980.207538
8-0.256185-2.15860.017129
90.3301282.78170.00346
10-0.173431-1.46140.074165
11-0.308637-2.60060.005657
120.6835475.75970
13-0.408452-3.44170.000486
14-0.004088-0.03440.486308
150.2605332.19530.015707
16-0.415718-3.50294e-04
170.1859341.56670.060814
180.1227851.03460.152183
19-0.0311-0.26210.397019
20-0.130716-1.10140.137214
210.1062780.89550.186769
22-0.056909-0.47950.316521
23-0.171007-1.44090.077
240.3833123.22980.000939
25-0.186346-1.57020.06041
26-0.055377-0.46660.321101
270.168631.42090.079862
28-0.248993-2.09810.01973
290.1186650.99990.16038
300.0412370.34750.364633
310.0331790.27960.390309
32-0.083673-0.7050.241545
33-0.015034-0.12670.449775
340.0775730.65360.257726
35-0.199061-1.67730.048939
360.2600572.19130.015857
37-0.035574-0.29980.382621
38-0.146904-1.23780.109928
390.1546011.30270.098445
40-0.126202-1.06340.145602
410.0170560.14370.443066
420.0550380.46380.32212
430.0361890.30490.380653
44-0.087271-0.73540.232273
45-0.015709-0.13240.447535
460.1306731.10110.137293
47-0.231791-1.95310.027374
480.2159421.81960.036521


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.528257-4.45121.6e-05
2-0.554844-4.67527e-06
30.0240980.20310.419836
4-0.35447-2.98680.001934
5-0.479889-4.04366.6e-05
6-0.328558-2.76850.003589
70.3174972.67530.004631
8-0.222849-1.87780.032261
9-0.177514-1.49580.069574
100.0329510.27770.391043
11-0.469127-3.95299e-05
12-0.164851-1.38910.084578
13-0.097142-0.81850.207895
140.3219492.71280.004183
150.0589580.49680.310437
16-0.127121-1.07110.143866
170.1853351.56170.061407
180.0944060.79550.214492
190.0539110.45430.325513
200.0580720.48930.313059
210.0040610.03420.486401
22-0.054433-0.45870.323939
23-0.039044-0.3290.371565
24-0.131751-1.11020.13534
250.081490.68660.247272
26-0.107074-0.90220.184996
27-0.070188-0.59140.278062
280.0442160.37260.355288
290.1303681.09850.137849
300.0676550.57010.285215
31-0.048492-0.40860.34203
320.0749750.63180.264789
330.0118050.09950.460523
340.0670970.56540.286802
35-0.019011-0.16020.436593
360.0548360.46210.322728
37-0.014015-0.11810.453163
38-0.078445-0.6610.255379
39-0.115222-0.97090.167453
400.0355970.29990.382549
410.0389610.32830.371828
42-0.089875-0.75730.225688
43-0.102709-0.86540.194855
44-0.020959-0.17660.430161
450.0102560.08640.465689
46-0.009729-0.0820.467449
470.0078510.06620.473721
480.1062980.89570.186723
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272908083vvph9hxdmj5hw3j/1olac1272908000.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272908083vvph9hxdmj5hw3j/1olac1272908000.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t1272908083vvph9hxdmj5hw3j/2hcrf1272908000.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272908083vvph9hxdmj5hw3j/2hcrf1272908000.ps (open in new window)


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