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:04 +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/t1272908091wfrrt8iqwun7a8x.htm/, Retrieved Mon, 03 May 2010 19:34:51 +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/t1272908091wfrrt8iqwun7a8x.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 «
132.8 132.5 131.4 131.4 130.7 131.5 131.2 130.1 130.5 129 128.2 128.4 127.3 127.7 127 123.9 125.4 124.6 124.5 124.8 124.1 124.2 122.8 122.3 121.1 121.7 122.2 122.2 122.7 121.7 121 119.8 120.2 116.6 116 118 117.1 116.2 113.3 114.3 113.6 113 112.9 112.7 112.5 113 111.9 110.9 109.8 108.3 109.2 109.2 108.7 109.8 110.8 110 109.6 109.5 110.8 111.6 113.1 114.3 114.1 113.8 112.6 112.7 111.5 110.7 110.4 109.7 110 111.3 109 108.2 107.2 108.7 110.3 110.3 109.5 109.5 109.4 109.6 111.3 110 109.5 110.693 109.195 108.095 108.199 106.87 105.278 108.711 111.192 109.641 109.42 109.935 111.126 110.733 110.34 111.766 111.294 111.54 112.008 111.007 114.963 112.045 110.703 108.894 107.51 111.35 112.964 115.203 115.182 115.191 112.346 110.774 113.07 111.138 109.092 107.971 107.051
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.017298-0.18950.425015
2-0.090836-0.99510.160856
3-0.00559-0.06120.475638
4-0.155368-1.7020.045675
50.09050.99140.161749
6-0.059527-0.65210.257797
70.1224131.3410.091232
8-0.0233-0.25520.399486
90.0089780.09830.460911
100.0074410.08150.467583
11-0.048821-0.53480.296887
120.040920.44830.32739
13-0.032683-0.3580.360478
14-0.035793-0.39210.347843
150.0192830.21120.416532
160.0270980.29680.38355
170.0655550.71810.237039
180.0810950.88830.188066
190.0378480.41460.339587
20-0.02488-0.27260.392833
210.0236490.25910.398016
22-0.039183-0.42920.334262
23-0.097086-1.06350.14484
240.0504430.55260.290792
250.0180760.1980.421687
26-0.037943-0.41560.339205
27-0.075594-0.82810.204631
280.0077610.0850.466194
290.004470.0490.480516
30-0.097917-1.07260.142795
310.1297061.42090.078976
32-0.037627-0.41220.340471
330.0187720.20560.418713
340.187152.05010.021266
350.0056980.06240.475168
36-0.002669-0.02920.488362
37-0.072989-0.79960.212773
38-0.060469-0.66240.25449
39-0.006218-0.06810.472903
400.0676340.74090.230101
410.0978831.07230.142879
42-0.00839-0.09190.463461
43-0.072906-0.79860.213038
44-0.106709-1.16890.122373
45-0.004473-0.0490.480502
46-6.2e-05-7e-040.499731
47-0.078776-0.86290.194944
48-0.008868-0.09710.461385


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.017298-0.18950.425015
2-0.091162-0.99860.159991
3-0.008958-0.09810.460996
4-0.165365-1.81150.036283
50.0857130.93890.174823
6-0.09263-1.01470.156143
70.1454391.59320.056872
8-0.072284-0.79180.215011
90.0788210.86340.19481
10-0.047871-0.52440.300484
110.0285290.31250.377594
12-0.016611-0.1820.427958
130.0113170.1240.450772
14-0.07786-0.85290.197702
150.0400930.43920.330655
160.0027790.03040.487883
170.0803810.88050.190166
180.0751380.82310.206043
190.0719050.78770.21622
20-0.008806-0.09650.461658
210.0758760.83120.203761
22-0.047304-0.51820.302641
23-0.076288-0.83570.202493
240.0157510.17250.43165
250.0013930.01530.493926
26-0.064993-0.7120.238934
27-0.095417-1.04520.149006
280.0117620.12880.448849
29-0.018923-0.20730.418067
30-0.091088-0.99780.160186
310.1205721.32080.094542
32-0.048681-0.53330.297416
330.05480.60030.274717
340.1657131.81530.035988
350.07470.81830.207405
36-0.034821-0.38140.351774
37-0.02215-0.24260.404349
38-0.070782-0.77540.219821
39-0.015461-0.16940.432896
400.0483940.53010.2985
410.0726710.79610.213783
420.0049550.05430.478401
43-0.064907-0.7110.239225
44-0.063825-0.69920.242899
450.0353790.38760.349515
46-0.047988-0.52570.300039
47-0.087368-0.95710.170229
48-0.032434-0.35530.361495
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272908091wfrrt8iqwun7a8x/1uxou1272907981.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272908091wfrrt8iqwun7a8x/1uxou1272907981.ps (open in new window)


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


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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