Home » date » 2010 » Dec » 24 »

*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: Fri, 24 Dec 2010 14:38:51 +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/Dec/24/t1293201437zzdll02jsjiugw2.htm/, Retrieved Fri, 24 Dec 2010 15:37:19 +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/Dec/24/t1293201437zzdll02jsjiugw2.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
19685.6 19601.7 16006.9 17681.2 19790.4 17014.2 17424.5 18908.9 15692.1 15160 15794.3 16032.1 16065 16236.8 12521 14762.1 15446.9 13635 14212.6 15021.7 14134.3 13721.4 14384.5 15638.6 19711.6 20359.8 16141.4 20056.9 20605.5 19325.8 20547.7 19211.2 19009.5 18746.8 16471.5 18957.2 20515.2 18374.4 16192.9 18147.5 19301.4 18344.7 17183.6 19630 17167.2 17428.5 16016.5 18466.5 18406.6 18174.1 14851.9 16260.7 18329.6 18003.8 15903.8 19554.2 16554.2 16198.9 16571.8 17535.2 16198.1
 
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.8399495.87960
20.7856995.49991e-06
30.7301865.11133e-06
40.5441293.80890.000195
50.4227572.95930.002369
60.2695111.88660.032575
70.0668240.46780.321012
8-0.052303-0.36610.357926
9-0.192835-1.34980.091634
10-0.320989-2.24690.014592
11-0.400943-2.80660.003582
12-0.486334-3.40430.000665
13-0.513268-3.59290.000378
14-0.488822-3.42180.000632
15-0.471025-3.29720.000911
16-0.447318-3.13120.001467
17-0.392997-2.7510.004152
18-0.321416-2.24990.01449
19-0.263979-1.84790.035332
20-0.1954-1.36780.088807
21-0.159285-1.1150.135146
22-0.100374-0.70260.242809
23-0.040737-0.28520.388362
24-0.046153-0.32310.374007
250.0001198e-040.499669
260.0031190.02180.491335
27-0.012183-0.08530.466194
280.0203670.14260.443607
290.0280190.19610.422659
300.0166220.11640.453923
310.0182470.12770.449442
320.0375590.26290.396859
330.029530.20670.418548
340.0448840.31420.377357
350.0429620.30070.382444
360.0457120.320.375169


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8399495.87960
20.2722861.9060.031262
30.0778510.5450.294129
4-0.474727-3.32310.000845
5-0.204264-1.42980.079553
6-0.206423-1.4450.077417
7-0.232429-1.6270.055075
80.0143020.10010.460332
90.0393960.27580.391941
100.0649990.4550.325562
11-0.039338-0.27540.392096
12-0.091524-0.64070.262361
130.031310.21920.413715
140.1623611.13650.130631
150.1089550.76270.224653
16-0.192255-1.34580.092282
17-0.242167-1.69520.048195
18-0.072565-0.5080.306883
19-0.050456-0.35320.362731
200.0124560.08720.465438
21-0.13711-0.95980.170942
220.0487860.34150.367094
230.0641380.4490.327718
24-0.204829-1.43380.078989
250.0228670.16010.436743
26-4.6e-05-3e-040.499871
270.0690850.48360.315413
28-0.035118-0.24580.403422
290.0309640.21670.414652
30-0.007133-0.04990.480189
31-0.191689-1.34180.092919
320.028120.19680.422384
33-0.141077-0.98750.164114
340.0454240.3180.375931
35-0.042876-0.30010.382672
36-0.009053-0.06340.474865
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201437zzdll02jsjiugw2/19tno1293201529.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201437zzdll02jsjiugw2/19tno1293201529.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201437zzdll02jsjiugw2/2kk4r1293201529.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293201437zzdll02jsjiugw2/2kk4r1293201529.ps (open in new window)


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