Home » date » 2008 » Dec » 15 »

*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: Mon, 15 Dec 2008 07:12: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/2008/Dec/15/t1229350400ux9w6wterxq7tub.htm/, Retrieved Mon, 15 Dec 2008 15:13:22 +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/2008/Dec/15/t1229350400ux9w6wterxq7tub.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
6392.3 8686.4 9244.7 8182.7 7451.4 7988.8 8243.5 8843 9092.7 8246.7 9311.7 8341.2 7116.7 9635.7 9815.4 8611.3 8297.8 8715.1 8919.9 10085.8 9511.7 8991.3 10311.2 8895.4 7449.8 10084 9859.4 9100.1 8920.8 8502.7 8599.6 10394.4 9290.4 8742.2 10217.3 8639 8139.6 10779.1 10427.7 10349.1 10036.4 9492.1 10638.8 12054.5 10324.7 11817.3 11008.9 9996.6 9419.5 11958.8 12594.6 11890.6 10871.7 11835.7 11542.2 13093.7 11180.2 12035.7 12112 10875.2 9897.3 11672.1 12385.7 11405.6 9830.9 11025.1 10853.8 12252.6 11839.4 11669.1 11601.4 11178.4 9516.4 12102.8 12989 11610.2 10205.5 11356.2 11307.1 12648.6 11947.2 11714.1 12192.5 11268.8 9097.4 12639.8 13040.1 11687.3 11191.7 11391.9 11793.1 13933.2 12778.1 11810.3 13698.4 11956.6 10723.8 13938.9 13979.8 13807.4 12973.9 12509.8 12934.1 14908.3 13772.1 13012.6 14049.9 11816.5 11593.2 14466.2 13615.9 14733.9 13880.7 13527.5 13584 16170.2 13260.6 14741.9 15486.5 13154.5 12621.2
 
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.531843-5.52710
2-0.046275-0.48090.315779
30.3275573.40410.000466
4-0.280207-2.9120.002182
50.0601110.62470.266746
60.2579992.68120.004243
7-0.375075-3.89798.4e-05
80.1461121.51840.065913
90.1503361.56230.060566
10-0.190516-1.97990.025129
110.0376740.39150.348093
12-0.009661-0.10040.460108
13-0.106133-1.1030.136246
140.1209291.25670.105781
150.0563350.58550.279733
16-0.25696-2.67040.004373
170.1648061.71270.044818
180.0803560.83510.202757
19-0.210748-2.19020.015332
200.1272521.32240.094408
210.0430180.44710.327865
22-0.286375-2.97610.001802
230.3961234.11663.8e-05
24-0.161227-1.67550.048362
25-0.190878-1.98370.024916
260.3014893.13320.001113
27-0.171573-1.7830.038694
28-0.027528-0.28610.387683
290.1540681.60110.056135
30-0.150432-1.56330.06045
310.0050930.05290.478945
320.1896941.97140.02562
33-0.171695-1.78430.038591
340.0212620.2210.412768
350.061250.63650.262888
36-0.135509-1.40830.080964
370.1308151.35950.088414
380.0241180.25060.401284
39-0.18236-1.89510.030374
400.1265411.31510.095639
410.0903460.93890.174939
42-0.21086-2.19130.015288
430.1614221.67750.048163
44-0.020154-0.20940.417249
45-0.154681-1.60750.055433
460.234292.43480.008269
47-0.006675-0.06940.472413
48-0.280731-2.91740.002147
490.3116983.23930.000796
50-0.139988-1.45480.074313
51-0.004178-0.04340.482723
520.1246681.29560.09894
53-0.157218-1.63390.0526
540.0372620.38720.349669
550.1355421.40860.080915
56-0.140703-1.46220.073291
570.0205930.2140.415474
580.0350370.36410.358242
59-0.051554-0.53580.296611
600.0921830.9580.170102


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.531843-5.52710
2-0.45895-4.76953e-06
30.0840180.87310.192261
4-0.021726-0.22580.410899
5-0.040266-0.41850.33822
60.2666072.77070.003294
7-0.044275-0.46010.323177
8-0.131899-1.37070.086649
90.0183440.19060.424585
100.1232541.28090.101488
11-0.063428-0.65920.255598
12-0.250125-2.59940.005322
13-0.21223-2.20560.014767
14-0.108007-1.12240.132082
150.1356141.40930.080803
16-0.089733-0.93250.176571
17-0.08514-0.88480.189115
180.128951.34010.091514
19-0.01193-0.1240.450781
20-0.136023-1.41360.080178
210.0659780.68570.247198
22-0.16357-1.69990.046017
23-0.008588-0.08930.464523
24-0.028439-0.29560.38407
25-0.084236-0.87540.191648
26-0.012121-0.1260.449995
27-0.06546-0.68030.248892
28-0.020247-0.21040.416869
29-0.113147-1.17590.121119
300.0532440.55330.290593
31-0.012905-0.13410.44678
32-0.004611-0.04790.480935
330.0320790.33340.369748
340.0096990.10080.459952
35-0.065003-0.67550.25039
36-0.253998-2.63960.004764
37-0.04929-0.51220.304766
380.0173530.18030.428613
39-0.079879-0.83010.204149
40-0.130205-1.35310.089421
410.0540410.56160.287771
420.0252730.26260.396663
430.0150940.15690.437825
44-0.009553-0.09930.460551
45-0.007355-0.07640.469607
46-0.018659-0.19390.423305
470.0644920.67020.252075
48-0.163884-1.70310.04571
49-0.084724-0.88050.190277
50-0.091497-0.95090.171899
510.0306940.3190.375177
520.0365570.37990.352377
53-0.006582-0.06840.472796
540.0890860.92580.178306
55-0.016466-0.17110.432227
56-0.018195-0.18910.425189
570.0316310.32870.371504
58-0.038848-0.40370.343609
590.0052760.05480.47819
60-0.014096-0.14650.441905
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t1229350400ux9w6wterxq7tub/1x4lx1229350348.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t1229350400ux9w6wterxq7tub/1x4lx1229350348.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t1229350400ux9w6wterxq7tub/2tguu1229350348.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t1229350400ux9w6wterxq7tub/2tguu1229350348.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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