Home » date » 2010 » Nov » 16 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 16 Nov 2010 12:27:30 +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/Nov/16/t1289910399u9rgu3zzdgmkr97.htm/, Retrieved Tue, 16 Nov 2010 13:26:42 +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/Nov/16/t1289910399u9rgu3zzdgmkr97.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98.1 98.0 98.3 98.5 98.7 99.3 99.5 99.8 100.3 99.3 99.6 99.3 99.4 99.7 100.0 99.3 100.3 100.8 101.4 101.1 100.6 99.5 99.1 98.8 99.1 98.8 98.5 99.0 99.0 100.6 101.0 101.8 101.8 101.8 101.8 102.4 103.0 103.3 103.6 104.1 104.5 105.6 105.9 106.0 106.3 107.3 107.1 107.3 107.7 108.0 108.9 108.5 109.0 108.9 109.0 108.9 110.3 109.4 108.6 108.0 108.4 108.0 108.0 107.6 107.5 107.9 108.0 107.5 106.8 106.7 107.2 107.8 106.6 106.3 105.7 105.9 106.5 107.2 108.3
 
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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.124751.10180.136976
20.1601891.41480.08056
3-0.127656-1.12740.131509
40.0809120.71460.238495
50.0268470.23710.4066
60.1679791.48360.070979
7-0.078797-0.69590.244274
8-0.057931-0.51160.305177
9-0.039133-0.34560.365283
100.0288770.2550.399683
110.1869091.65070.051407
120.0365530.32280.373846
130.0439120.38780.349601
14-0.02017-0.17810.429538
150.0780520.68930.24633
16-0.155024-1.36910.087443
17-0.093768-0.82810.205061
18-0.229907-2.03050.022858
19-0.097337-0.85970.196306
20-0.229275-2.02490.023149
210.0578120.51060.305544
22-0.158397-1.39890.082899
23-0.042177-0.37250.355265
24-0.111107-0.98130.164747
250.0496390.43840.331154
26-0.067113-0.59270.277541
27-0.069059-0.60990.271847
28-0.129102-1.14020.128846
29-0.064841-0.57270.284262
30-0.135644-1.1980.117276
31-0.035258-0.31140.378169
32-0.05042-0.44530.328671
33-0.024513-0.21650.414586
340.0042060.03710.485233
35-0.036935-0.32620.372572
360.0909490.80320.212138
370.0540410.47730.31725
380.0748750.66130.255191
39-0.014573-0.12870.448962
400.111050.98080.16487
41-0.101669-0.89790.185996
420.1483231.310.097028
43-0.06404-0.56560.286648
44-0.002267-0.020.492039
45-0.104187-0.92020.180164
460.1170471.03370.152227
470.0821430.72550.235169
480.1657271.46370.073652


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.124751.10180.136976
20.1469131.29750.099142
3-0.169262-1.49490.069491
40.0987270.87190.192961
50.0547460.48350.315047
60.1143981.01030.157729
7-0.113221-0.99990.160216
8-0.079386-0.70110.242659
90.0529080.46730.320805
100.0024070.02130.491548
110.1823271.61030.05569
12-0.032112-0.28360.388731
130.0230510.20360.419605
140.0331840.29310.385122
150.0357160.31540.376635
16-0.208343-1.840.034784
17-0.149259-1.31820.095644
18-0.112608-0.99450.16152
19-0.067226-0.59370.277209
20-0.199339-1.76050.04112
210.1022430.9030.184657
22-0.097609-0.86210.19565
23-0.066851-0.59040.27831
24-0.015079-0.13320.4472
250.0277880.24540.403389
26-0.088006-0.77720.219682
27-0.113251-1.00020.160152
28-0.004655-0.04110.483656
290.016450.14530.442432
30-0.134331-1.18640.119536
310.0895280.79070.215762
32-0.029649-0.26190.397062
330.0114890.10150.459721
340.0122870.10850.456932
35-0.078292-0.69150.245666
360.0009320.00820.496728
370.0338850.29930.382766
380.0064230.05670.477455
39-0.05973-0.52750.299664
400.0445340.39330.34758
41-0.036482-0.32220.374081
420.0553150.48850.313274
43-0.101809-0.89920.185669
44-0.133822-1.18190.120421
45-0.086705-0.76580.223065
460.0231550.20450.419249
470.0415110.36660.357449
480.0091610.08090.46786
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289910399u9rgu3zzdgmkr97/16sr31289910449.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289910399u9rgu3zzdgmkr97/16sr31289910449.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/16/t1289910399u9rgu3zzdgmkr97/2h1q51289910449.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289910399u9rgu3zzdgmkr97/2h1q51289910449.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