Home » date » 2010 » Apr » 29 »

6.2.3 bis

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Apr 2010 16:10:36 +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/Apr/29/t12725575017fqkc6pugcw9ou8.htm/, Retrieved Thu, 29 Apr 2010 18:11:43 +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/Apr/29/t12725575017fqkc6pugcw9ou8.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 «
81.28 69.39 67.63 51.25 103.97 133.83 162.37 172.91 163.01 151.50 111.73 88.58 74.29 63.98 61.18 76.48 107.98 124.97 145.57 140.20 143.84 138.80 104.06 74.70 60.18 55.16 35.62 56.18 85.44 114.08 133.64 67.14 95.58 89.37 75.24 69.18 54.49 57.50 62.16 76.67 110.04 127.38 156.47 167.56 153.54 124.08 100.97 79.17 68.13 61.77 54.31 60.30 84.18 104.05 114.66 105.55 96.61 70.94 63.91 58.61 44.53 49.58 57.39 76.76 104.57 125.41 143.11 136.35 135.15 131.70 96.87 70.63 66.29 63.49 62.97 66.43 101.49 127.69 133.21 158.72 148.61 134.31 100.99 75.16 59.74 52.87 52.07 57.38 79.43 101.40 120.19 134.38 135.97 113.83 84.38 70.28 65.96 56.36 49.57 68.33 90.32 117.06 134.69 131.67 129.25 118.77 88.44 76.79 75.28 73.89 76.24 88.58 105.83 115.84 127.76 131.75 119.63 93.38 75.55 51.79
 
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.4904315.350
20.2685542.92960.002035
3-0.029329-0.31990.374789
4-0.341536-3.72570.00015
5-0.471064-5.13871e-06
6-0.660847-7.2090
7-0.476493-5.19790
8-0.258125-2.81580.002848
9-0.005611-0.06120.47565
100.2795243.04920.001414
110.4742635.17360
120.5952386.49330
130.4511554.92151e-06
140.2469672.69410.004039
15-0.069781-0.76120.224014
16-0.268103-2.92470.002065
17-0.494987-5.39970
18-0.562274-6.13370
19-0.415958-4.53767e-06
20-0.2033-2.21770.014235
210.043740.47710.317067
220.2273012.47960.007277
230.4811435.24860
240.5136535.60330
250.3782454.12623.4e-05
260.2181912.38020.009446
27-0.108769-1.18650.118888
28-0.208167-2.27080.012478
29-0.4068-4.43771e-05
30-0.45535-4.96731e-06
31-0.351699-3.83660.000101
32-0.206952-2.25760.012898
330.0200210.21840.413746
340.230992.51980.006534
350.3831324.17952.8e-05
360.4959875.41060
370.3747544.08814e-05
380.1715961.87190.031838
39-0.007737-0.08440.466442
40-0.236805-2.58320.005499
41-0.379309-4.13783.3e-05
42-0.398643-4.34871.5e-05
43-0.312985-3.41430.000438
44-0.133122-1.45220.07454
45-0.026411-0.28810.386881
460.1568761.71130.044814
470.3472893.78850.00012
480.3519973.83989.9e-05
490.3204663.49590.000332
500.1222521.33360.092439
51-0.028606-0.31210.377773
52-0.163624-1.78490.03841
53-0.31842-3.47350.000359
54-0.340001-3.7090.000159
55-0.285153-3.11060.001168
56-0.130617-1.42490.078408
570.0065850.07180.471428
580.1504711.64140.051672
590.288443.14650.001044
600.3223283.51620.00031


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4904315.350
20.0369080.40260.343974
3-0.229781-2.50660.006769
4-0.353288-3.85399.4e-05
5-0.221792-2.41950.008528
6-0.447391-4.88052e-06
7-0.150765-1.64470.05134
8-0.114937-1.25380.106184
9-0.106839-1.16550.123078
10-0.053628-0.5850.279824
110.0769410.83930.201483
120.1301021.41920.07922
130.0122820.1340.44682
140.0296290.32320.373552
15-0.11791-1.28630.100426
160.0339630.37050.355837
17-0.137478-1.49970.068169
18-0.099332-1.08360.14037
19-0.04362-0.47580.317532
200.0227240.24790.402324
21-0.099115-1.08120.140893
22-0.129635-1.41420.079964
230.0734570.80130.212273
24-0.027583-0.30090.382009
25-0.082042-0.8950.186303
260.0218270.23810.406104
27-0.146209-1.5950.056687
280.0774860.84530.199828
290.0408160.44530.328473
30-0.014784-0.16130.436074
31-0.054464-0.59410.276775
32-0.03199-0.3490.363863
33-0.137027-1.49480.068808
340.0239410.26120.397209
35-0.023879-0.26050.397467
360.1143681.24760.107312
370.0126850.13840.44509
38-0.007965-0.08690.465454
390.0459190.50090.308678
40-0.02472-0.26970.393942
410.0220470.24050.405178
420.0532120.58050.281347
430.1190941.29920.0982
440.065890.71880.236844
45-0.056491-0.61620.269456
46-0.060109-0.65570.256636
470.1003091.09420.13803
48-0.076563-0.83520.202638
490.0133150.14520.44238
50-0.059368-0.64760.259235
51-0.029838-0.32550.37269
52-0.004631-0.05050.479896
530.0361420.39430.347045
54-0.068927-0.75190.226796
55-0.005278-0.05760.477091
56-0.008348-0.09110.463795
57-0.044615-0.48670.313687
58-0.015273-0.16660.433979
59-0.012962-0.14140.443898
60-0.039295-0.42870.334474
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Apr/29/t12725575017fqkc6pugcw9ou8/19via1272557435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/29/t12725575017fqkc6pugcw9ou8/19via1272557435.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Apr/29/t12725575017fqkc6pugcw9ou8/29via1272557435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/29/t12725575017fqkc6pugcw9ou8/29via1272557435.ps (open in new window)


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