Home » date » 2010 » Dec » 28 »

Verbetering (P)ACF

*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, 28 Dec 2010 19:28:48 +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/28/t1293564419ih07lbxedfvhlgj.htm/, Retrieved Tue, 28 Dec 2010 20:27:02 +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/28/t1293564419ih07lbxedfvhlgj.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 «
631923 654294 671833 586840 600969 625568 558110 630577 628654 603184 656255 600730 670326 678423 641502 625311 628177 589767 582471 636248 599885 621694 637406 595994 696308 674201 648861 649605 672392 598396 613177 638104 615632 634465 638686 604243 706669 677185 644328 644825 605707 600136 612166 599659 634210 618234 613576 627200 668973 651479 619661 644260 579936 601752 595376 588902 634341 594305 606200 610926 633685 639696 659451 593248 606677 599434 569578 629873 613438 604172 658328 612633 707372 739770 777535 685030 730234 714154 630872 719492 677023 679272 718317 645672
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4772724.37431.7e-05
20.4367954.00336.7e-05
30.4214543.86270.00011
40.0700490.6420.261307
50.1399631.28280.101548
60.0998520.91520.181363
7-0.037394-0.34270.366331
8-0.009012-0.08260.467183
90.0357320.32750.372057
10-0.049771-0.45620.324727
110.0841410.77120.221386
120.2492672.28460.01243
13-0.017917-0.16420.434979
140.0495270.45390.325528
15-0.081994-0.75150.22723
16-0.235064-2.15440.017036
17-0.131372-1.2040.115978
18-0.216326-1.98270.025337
19-0.253636-2.32460.011253
20-0.134948-1.23680.109801
21-0.189509-1.73690.043037
22-0.158628-1.45380.074857
230.0599430.54940.2921
240.0268070.24570.403261
250.0076150.06980.472264
260.0544970.49950.309377
27-0.157196-1.44070.07669
28-0.121455-1.11320.134409
29-0.103064-0.94460.173787
30-0.211744-1.94070.027826
31-0.119433-1.09460.138405
32-0.099686-0.91360.181761
33-0.153397-1.40590.081721
340.022260.2040.419418
350.0541020.49590.310647
360.0988370.90590.183803
370.1366971.25280.106869
380.0561170.51430.30419
39-0.033377-0.30590.380218
400.0120110.11010.456304
41-0.047322-0.43370.332806
42-0.075446-0.69150.245587
430.0396030.3630.35877
44-0.043192-0.39590.346606
450.0011380.01040.495853
460.1579071.44720.075775
470.0364880.33440.36945
480.1780341.63170.053242
490.1780371.63170.05324
500.0456260.41820.338445
510.0499530.45780.324129
520.0332980.30520.380491
53-0.053272-0.48820.313324
54-0.019597-0.17960.428947
55-0.007186-0.06590.473824
56-0.134467-1.23240.110617
57-0.031112-0.28510.388117
58-0.027834-0.25510.399634
59-0.074387-0.68180.248631
600.0886560.81250.209387


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4772724.37431.7e-05
20.2706592.48060.007555
30.195951.79590.038052
4-0.343312-3.14650.001143
50.0559820.51310.30462
60.069080.63310.264186
7-0.029862-0.27370.392496
8-0.114273-1.04730.148976
90.1334441.2230.112368
10-0.023211-0.21270.416026
110.1278981.17220.122214
120.2614112.39590.009401
13-0.322665-2.95730.002015
14-0.190079-1.74210.042575
15-0.190542-1.74630.042204
160.0977390.89580.186462
17-0.010747-0.09850.460886
18-0.024304-0.22280.412134
19-0.11565-1.060.146103
200.1094251.00290.159395
21-0.01333-0.12220.451529
220.0319550.29290.385172
230.1123791.030.15299
24-0.101351-0.92890.177801
25-0.05935-0.54390.293959
26-0.075327-0.69040.245927
27-0.06031-0.55270.290952
28-0.002285-0.02090.491669
290.0133060.1220.451615
30-0.057452-0.52660.299946
310.0122740.11250.45535
32-0.01056-0.09680.461565
330.0304510.27910.390431
340.1428111.30890.097071
35-0.139828-1.28150.101765
360.0687530.63010.26516
37-0.132994-1.21890.113146
380.0230070.21090.416754
39-0.044894-0.41150.340891
400.1013630.9290.177773
41-0.044385-0.40680.342596
42-0.002751-0.02520.489974
430.0741960.680.249181
44-0.007415-0.0680.472989
450.0788220.72240.236022
46-0.020579-0.18860.425427
47-0.096372-0.88330.189807
48-0.081645-0.74830.228187
490.1032870.94660.173268
500.0665970.61040.271631
51-0.068673-0.62940.265399
52-0.000742-0.00680.497295
530.0076730.07030.472051
540.0274590.25170.400958
55-0.043357-0.39740.34605
56-0.081605-0.74790.228298
57-0.081859-0.75020.227601
58-0.026095-0.23920.405781
590.0670330.61440.270317
600.0584160.53540.296896
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564419ih07lbxedfvhlgj/1g3hi1293564524.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564419ih07lbxedfvhlgj/1g3hi1293564524.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564419ih07lbxedfvhlgj/29cy31293564524.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564419ih07lbxedfvhlgj/29cy31293564524.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564419ih07lbxedfvhlgj/39cy31293564524.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293564419ih07lbxedfvhlgj/39cy31293564524.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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