Home » date » 2010 » May » 05 »

*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, 05 May 2010 15:57:18 +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/05/t1273075083qv0k7udn2vohzyx.htm/, Retrieved Wed, 05 May 2010 17:58:05 +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/05/t1273075083qv0k7udn2vohzyx.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 «
2953 2635 2404 2413 2136 1565 1451 2037 2477 2785 2994 2681 3098 2708 2517 2445 2087 1801 1216 2173 2286 3121 3458 3511 3524 2767 2744 2603 2527 1846 1066 2327 3066 3048 3806 4042 3583 3438 2957 2885 2744 1837 1447 2504 3248 3098 4318 3561 3316 3379 2717 2354 2445 1542 1606 2590 3588 3202 4704 4005 3810 3488 2781 2944 2817 1960 1937 2903 3357 3552 4581 3905 4581 4037 3345 3175 2808 2050 1719 3143 3756 4776 4540 4309 4563 3506 3665 3361 3094 2440 1633 2935 4159 4159 4894 4921 4577 4155 3851 3429 3370 2726
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.083540.83960.201567
20.0382310.38420.350813
30.0538650.54130.294732
4-0.257699-2.58980.00551
5-0.24387-2.45090.007985
6-0.26514-2.66460.004487
7-0.279919-2.81320.002948
8-0.181865-1.82770.035272
90.0515580.51820.302741
10-0.05896-0.59250.277405
110.230132.31280.011382
120.6895646.930
130.1204791.21080.114399
140.1058831.06410.144908
15-0.016621-0.1670.433838
16-0.175401-1.76280.040483
17-0.24294-2.44150.008182
18-0.236509-2.37690.009672
19-0.258401-2.59690.005405
20-0.146164-1.46890.072479
210.0454670.45690.32435
22-0.030289-0.30440.380726
230.2645782.6590.004558
240.4900684.92512e-06
250.1875841.88520.031139
260.0103580.10410.458648
27-0.02833-0.28470.388225
28-0.115714-1.16290.123804
29-0.210175-2.11220.018566
30-0.194164-1.95130.026894
31-0.227479-2.28610.012167
32-0.09774-0.98230.164156
330.001020.01030.49592
340.0011230.01130.495507
350.2163032.17380.016027
360.3833223.85230.000103
370.2100162.11060.018636
38-0.024147-0.24270.404376
39-0.032448-0.32610.372513
40-0.100565-1.01070.157296
41-0.170305-1.71150.045025
42-0.158917-1.59710.056684
43-0.172089-1.72950.04339
44-0.071119-0.71470.238211
45-0.02858-0.28720.387265
460.0837780.8420.2009
470.1083121.08850.139477
480.3333213.34980.000569


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.083540.83960.201567
20.0314720.31630.376219
30.0485290.48770.313405
4-0.269861-2.71210.00393
5-0.22019-2.21290.014578
6-0.252359-2.53620.006369
7-0.271498-2.72850.003752
8-0.301012-3.02510.001576
9-0.141915-1.42620.078442
10-0.406061-4.08094.5e-05
11-0.246424-2.47650.007464
120.4739344.7633e-06
130.1082671.08810.139577
14-0.035954-0.36130.359301
15-0.157335-1.58120.05848
160.0683830.68720.246754
17-0.050141-0.50390.307709
180.00950.09550.462064
19-0.012677-0.12740.449437
20-0.049986-0.50230.308258
210.0006860.00690.497258
220.0822170.82630.2053
230.0312280.31380.377147
24-0.015162-0.15240.439596
250.0840450.84460.200155
26-0.172786-1.73650.042764
27-0.103679-1.0420.149959
280.0269830.27120.393405
290.1186611.19250.117925
30-0.010193-0.10240.459307
310.007630.07670.469513
320.0372280.37410.354542
33-0.055355-0.55630.289615
34-0.031596-0.31750.375744
35-0.054996-0.55270.290845
36-0.061072-0.61380.270376
370.0027050.02720.489184
380.0539970.54270.294277
39-0.04607-0.4630.32218
40-0.045953-0.46180.322601
41-0.00072-0.00720.497121
420.02130.21410.415464
43-0.020951-0.21060.41683
44-0.001514-0.01520.493946
45-0.061984-0.62290.267366
460.1154921.16070.124255
47-0.039257-0.39450.347011
480.0319540.32110.374388
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273075083qv0k7udn2vohzyx/1iduq1273075036.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273075083qv0k7udn2vohzyx/1iduq1273075036.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273075083qv0k7udn2vohzyx/2bmtb1273075036.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273075083qv0k7udn2vohzyx/2bmtb1273075036.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