Home » date » 2009 » Dec » 02 »

*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, 02 Dec 2009 09:11:58 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770384c57l9nh4lmri7qi.htm/, Retrieved Wed, 02 Dec 2009 17:13:07 +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/2009/Dec/02/t1259770384c57l9nh4lmri7qi.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
1111.92 1131.13 1144.94 1113.89 1107.30 1120.68 1140.84 1101.72 1104.24 1114.58 1130.20 1173.78 1211.92 1181.27 1203.60 1180.59 1156.85 1191.50 1191.33 1234.18 1220.33 1228.81 1207.01 1249.48 1248.29 1280.08 1280.66 1302.88 1310.61 1270.05 1270.06 1278.53 1303.80 1335.83 1377.76 1400.63 1418.03 1437.90 1406.80 1420.83 1482.37 1530.63 1504.66 1455.18 1473.96 1527.29 1545.79 1479.63 1467.97 1378.60 1330.45 1326.41 1385.97 1399.62 1276.69 1269.42 1287.83 1164.17 968.67 888.61
 
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.2233721.53140.066192
2-0.0183-0.12550.450349
3-0.042209-0.28940.386784
40.1831491.25560.107733
50.1000240.68570.248126
60.019910.13650.446007
70.1069270.73310.233582
80.1060190.72680.235468
90.1705221.1690.124141
100.0317920.2180.414204
110.1850961.2690.105353
12-0.103027-0.70630.24174
13-0.06082-0.4170.339303
140.0561290.38480.351059
150.0808190.55410.291079
16-0.064785-0.44410.329489
17-0.219307-1.50350.069701
18-0.061142-0.41920.338501
19-0.011204-0.07680.469549
200.0122420.08390.466736
21-0.049639-0.34030.36757
22-0.043844-0.30060.382532
23-0.051996-0.35650.361544
24-0.19647-1.34690.092231
25-0.030981-0.21240.416359
26-0.080455-0.55160.291928
270.0048050.03290.486931
28-0.014975-0.10270.459334
29-0.014633-0.10030.46026
30-0.146887-1.0070.159545
31-0.07355-0.50420.308226
32-0.104011-0.71310.239665
33-0.090682-0.62170.268577
340.0086720.05950.476422
35-0.052827-0.36220.359427
360.0709540.48640.314459


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2233721.53140.066192
2-0.071776-0.49210.31248
3-0.023059-0.15810.437534
40.2086591.43050.079595
50.0060290.04130.483603
60.0051870.03560.485891
70.1420.97350.167643
80.0224950.15420.43905
90.1417220.97160.168112
10-0.018401-0.12620.450075
110.1834371.25760.107378
12-0.230481-1.58010.060396
13-0.025764-0.17660.430279
140.0843060.5780.28302
15-0.080427-0.55140.291992
16-0.086431-0.59250.278165
17-0.185025-1.26850.105439
18-0.061488-0.42150.33764
19-0.031781-0.21790.414232
20-0.027458-0.18820.425748
210.0888060.60880.272786
22-0.086317-0.59180.278423
230.0523590.3590.360618
24-0.190204-1.3040.099297
250.1054720.72310.236608
26-0.032394-0.22210.412606
270.0885020.60670.273472
280.1279990.87750.192335
29-0.120226-0.82420.206987
30-0.122632-0.84070.202379
310.0611820.41940.338401
32-0.159505-1.09350.139871
330.0402990.27630.391774
34-0.033306-0.22830.410188
350.004170.02860.488658
36-0.000484-0.00330.498683
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770384c57l9nh4lmri7qi/18r5b1259770316.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770384c57l9nh4lmri7qi/18r5b1259770316.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770384c57l9nh4lmri7qi/2c8y81259770316.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259770384c57l9nh4lmri7qi/2c8y81259770316.ps (open in new window)


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