Home » date » 2009 » Nov » 24 »

ws4

*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: Tue, 24 Nov 2009 03:32:30 -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/Nov/24/t12590587926nkjyt287vkcpxg.htm/, Retrieved Tue, 24 Nov 2009 11:33:14 +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/Nov/24/t12590587926nkjyt287vkcpxg.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 «
395.3 395.1 403.5 403.3 405.7 406.7 407.2 412.4 415.9 414 411.8 409.9 412.4 415.9 416.3 417.2 421.8 421.4 415.1 412.4 411.8 408.8 404.5 402.5 409.4 410.7 413.4 415.2 417.7 417.8 417.9 418.4 418.2 416.6 418.9 421 423.5 432.3 432.3 428.6 426.7 427.3 428.5 437 442 444.9 441.4 440.3 447.1 455.3 478.6 486.5 487.8 485.9 483.8 488.4 494 493.6 487.3 482.1 484.2 496.8 501.1 499.8 495.5 498.1 503.8 516.2 526.1 527.1 525.1 528.9 540.1 549 556 568.9 589.1 590.3 603.3 638.8 643 656.7 656.1 654.1 659.9 662.1 669.2 673.1 678.3 677.4 678.5 672.4 665.3 667.9 672.1 662.5 682.3 692.1 702.7 721.4 733.2 747.7 737.6 729.3 706.1 674.3 659 645.7
 
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
1-0.32086-3.30350.000651
2-0.068606-0.70630.240763
30.0833090.85770.196492
4-0.243686-2.50890.006812
50.1170551.20520.115414
6-0.060903-0.6270.265992
70.1264231.30160.097937
8-0.086068-0.88610.188778
9-0.137986-1.42070.079176
100.0179050.18430.427046
110.0540090.55610.289671
120.0649840.66910.252458
130.0564160.58080.28129
14-0.07977-0.82130.206664
150.0877180.90310.184258
16-0.280346-2.88630.002362
170.1327041.36630.087372
180.1585521.63240.052782
19-0.170105-1.75130.04139
200.1259771.2970.098722
21-0.116082-1.19510.117351
220.1146441.18030.120256
23-0.055255-0.56890.285318
240.0534620.55040.291592
250.0740760.76270.223681
26-0.110518-1.13780.128875
27-0.062554-0.6440.260471
280.0337790.34780.36435
290.0686530.70680.240613
30-0.098471-1.01380.156489
310.1241491.27820.101987
32-0.077194-0.79480.214264
33-0.028403-0.29240.385267
34-0.021206-0.21830.413797
350.0485320.49970.309173
360.0680290.70040.242605
37-0.077837-0.80140.212352
380.0389670.40120.344545
39-0.032872-0.33840.367852
40-0.024511-0.25240.400625
410.0163520.16840.433313
420.0125350.12910.448779
43-0.024456-0.25180.400846
440.0067350.06930.472425
45-0.050794-0.5230.301046
460.0692850.71330.238604
47-0.048602-0.50040.308921
480.0532690.54840.292271
490.008860.09120.463743
50-0.049276-0.50730.30649
510.0994061.02340.154213
52-0.049924-0.5140.304162
530.0652750.6720.251509
54-0.085025-0.87540.19167
55-0.017388-0.1790.429132
560.0259580.26730.394898
57-0.031776-0.32720.372097
58-0.037906-0.39030.348563
590.086270.88820.18822
600.0172280.17740.429777


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.32086-3.30350.000651
2-0.191246-1.9690.025782
3-0.004949-0.0510.479729
4-0.262206-2.69960.004041
5-0.059256-0.61010.271558
6-0.129166-1.32980.093213
70.1008971.03880.150631
8-0.104662-1.07760.141838
9-0.18776-1.93310.027946
10-0.206998-2.13120.017693
11-0.002364-0.02430.490314
120.0105890.1090.456697
130.0595640.61320.270514
14-0.105754-1.08880.139354
150.1132421.16590.123136
16-0.28385-2.92240.002123
17-0.00725-0.07460.470321
180.0228260.2350.407329
19-0.024242-0.24960.401695
20-0.06109-0.6290.265364
21-0.022652-0.23320.408023
220.1266191.30360.097592
230.0254810.26230.396781
240.0478560.49270.31162
250.0089340.0920.463443
260.0397960.40970.341416
27-0.069127-0.71170.239104
280.0513620.52880.299025
290.1017871.0480.14852
30-0.067437-0.69430.244505
310.1278691.31650.095423
32-0.060592-0.62380.26704
330.0286750.29520.384198
34-0.032312-0.33270.370019
35-0.017023-0.17530.430606
360.0431460.44420.328898
37-0.030008-0.30890.378983
380.0796070.81960.207141
39-0.007995-0.08230.467275
40-0.019014-0.19580.422585
41-0.005758-0.05930.476417
42-0.070153-0.72230.235861
43-0.09713-10.159791
44-0.048158-0.49580.310525
450.0052440.0540.478521
46-0.079401-0.81750.207744
47-0.040253-0.41440.339699
480.0026820.02760.489012
49-0.069464-0.71520.238035
50-0.018003-0.18530.426655
510.0055060.05670.477451
520.1292551.33080.093062
53-0.006499-0.06690.473389
54-0.003764-0.03870.484581
550.0006930.00710.497161
560.0007260.00750.497025
570.0342720.35290.36245
58-0.143979-1.48240.070607
590.0816770.84090.201143
600.052820.54380.293856
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590587926nkjyt287vkcpxg/1e6pg1259058748.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590587926nkjyt287vkcpxg/1e6pg1259058748.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590587926nkjyt287vkcpxg/2cld21259058748.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590587926nkjyt287vkcpxg/2cld21259058748.ps (open in new window)


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