Home » date » 2009 » Dec » 09 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 09 Dec 2009 02:57:16 -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/09/t1260352686k00wwfq6um9x2df.htm/, Retrieved Wed, 09 Dec 2009 10:58:08 +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/09/t1260352686k00wwfq6um9x2df.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8.82000 8.80000 8.82000 8.58000 8.54000 8.42000 8.43000 8.44000 8.09000 7.69000 7.56000 7.54000 7.40000 7.39000 7.37000 7.31000 7.35000 7.26000 7.37000 7.35000 7.33000 7.32000 7.31000 7.33000 7.32000 7.27000 7.48000 7.70000 7.77000 7.80000 7.84000 7.81000 7.78000 7.82000 7.80000 7.81000 7.80000 7.66000 7.41000 7.35000 7.39000 7.32000 7.32000 7.30000 7.29000 7.26000 7.22000 7.21000 7.21000 7.21000 7.20000 7.19000 7.18000 7.12000 7.12000 7.07000 7.08000 7.05000 7.06000 7.07000 7.08000 7.08000 7.09000 7.07000 7.06000 6.99000 6.99000 6.99000 6.98000 6.96000 6.95000 6.91000 6.91000 6.87000 6.91000 6.89000 6.88000 6.90000 6.91000 6.85000 6.86000 6.82000 6.80000 6.83000 6.84000 6.89000 7.14000 7.21000 7.25000 7.31000 7.30000 7.48000 7.49000 7.40000 7.44000 7.42000 7.14000 7.24000 7.33000 7.61000 7.66000 7.69000 7.70000 7.68000 7.71000 7.71000 7.72000 7.68000 7.72000 7.74000 7.76000 7.90000 7.97000 7.96000 etc...
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.354054.05234.3e-05
20.1520261.740.042103
30.1431021.63790.051924
40.0968161.10810.134923
50.1108571.26880.103378
60.1206741.38120.084787
70.057340.65630.256395
80.0822450.94130.174131
90.02620.29990.382375
10-0.091271-1.04460.149056
110.0004690.00540.497861
120.072310.82760.204694
130.1012661.1590.124275
140.076850.87960.190348
15-0.081913-0.93750.175103
16-0.010017-0.11470.454448
17-0.064801-0.74170.229804
18-0.193982-2.22020.014061
19-0.131048-1.49990.068021
20-0.025774-0.2950.384231
21-0.048812-0.55870.288669
220.0011910.01360.494572
230.0050280.05760.477097
24-0.017929-0.20520.418863
250.075670.86610.194015
260.1042051.19270.117575
270.0279490.31990.37478
280.0680550.77890.218716
290.1257651.43950.076204
300.0805850.92230.179025
310.021540.24650.402828
320.0195970.22430.411437
330.0937161.07260.142704
340.0838790.960.169401
350.0481350.55090.291311
360.0363210.41570.33915
370.0376830.43130.333478
380.0576730.66010.255176
390.0123590.14150.443866
400.0188910.21620.414579
410.0332980.38110.35187
420.001220.0140.494442
430.0200830.22990.40928
44-0.004826-0.05520.478016
45-0.009478-0.10850.456892
46-0.031057-0.35550.361409
47-0.027024-0.30930.37879
48-0.055762-0.63820.262222


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.354054.05234.3e-05
20.0304970.34910.363803
30.0916891.04940.147956
40.0182130.20850.417596
50.0678240.77630.219491
60.0561080.64220.260939
7-0.019433-0.22240.412168
80.0528770.60520.273044
9-0.042515-0.48660.313676
10-0.12269-1.40420.081306
110.0566560.64850.258913
120.0688180.78770.216161
130.0772150.88380.189221
140.0105780.12110.451912
15-0.142969-1.63640.052083
160.0580050.66390.253961
17-0.105532-1.20790.114636
18-0.166876-1.910.029161
19-0.030431-0.34830.364088
200.0485940.55620.289519
21-0.001028-0.01180.495317
220.0695050.79550.213875
230.0668310.76490.222849
240.0099090.11340.45494
250.0589820.67510.250406
260.0796340.91150.181865
27-0.05098-0.58350.280282
280.0102190.1170.453536
290.0996561.14060.128055
300.0190580.21810.413834
31-0.003588-0.04110.48365
320.0121510.13910.444802
330.0614240.7030.241641
34-0.00814-0.09320.462955
35-0.013817-0.15810.437292
36-0.049586-0.56750.285658
37-0.029366-0.33610.368664
380.0248460.28440.388286
39-0.050159-0.57410.283444
400.0414070.47390.318172
410.0341950.39140.348075
42-0.064325-0.73620.231453
430.0761020.8710.192666
440.0370540.42410.336094
45-0.028223-0.3230.373594
46-0.060199-0.6890.246017
470.0309130.35380.362024
48-0.019053-0.21810.413858
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260352686k00wwfq6um9x2df/1f6gs1260352634.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260352686k00wwfq6um9x2df/1f6gs1260352634.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t1260352686k00wwfq6um9x2df/27ply1260352634.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t1260352686k00wwfq6um9x2df/27ply1260352634.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