Home » date » 2011 » Apr » 25 »

Time series analysis verkochte ton koffie per maand

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 25 Apr 2011 14:34:40 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Apr/25/t1303741893yue794amonln2r0.htm/, Retrieved Mon, 25 Apr 2011 16:31:34 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP1W52
 
Dataseries X:
» Textbox « » Textfile « » CSV «
600 425 398 582 458 455 621 635 589 220 351 379 683 524 536 598 581 632 645 722 689 645 354 486 423 479 684 601 608 463 602 485 563 645 486 435 479 579 563 202 389 467 466 706 546 689 531 528 579 684 651 637 548 496 582 467 693 615 708 648 899 852 745 689 582 674 684 542 489 472 398 486 549 766 654 628 689 648 578 536 548 496 475 687 642 584 596 609 678 694 485 489 537 706 489 598
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.34583.16930.001066
20.3013042.76150.003533
30.0449430.41190.340726
40.0600630.55050.291722
50.0336920.30880.379123
60.0086920.07970.468347
70.1085080.99450.16142
8-0.016293-0.14930.440825
90.0292410.2680.39468
10-0.135056-1.23780.109618
11-0.131629-1.20640.115525
12-0.354437-3.24850.000834
13-0.018262-0.16740.433738
14-0.068029-0.62350.267323
150.1454741.33330.093021
160.0310830.28490.388218
170.0429810.39390.347316
18-0.182742-1.67490.04884
19-0.327501-3.00160.001768
20-0.213724-1.95880.026726
21-0.353516-3.240.000857
22-0.126103-1.15580.125529
23-0.133782-1.22610.111788
24-0.039248-0.35970.359983
25-0.14975-1.37250.086784
26-0.077574-0.7110.239534
27-0.199391-1.82750.035591
28-0.005792-0.05310.478895
29-0.030852-0.28280.389026
300.1761361.61430.055105
310.1730261.58580.05827
320.136911.25480.106516
330.2027231.8580.033337
34-0.059599-0.54620.293176
350.0544760.49930.309443
36-0.080823-0.74080.230453
370.0902580.82720.205226
380.037360.34240.366448
390.1917631.75750.041234
400.1467591.34510.091111
410.0740550.67870.24959
420.0623820.57170.284512
430.0465540.42670.335353
440.0363880.33350.369794
450.0647850.59380.277134
460.1698121.55640.061692
470.0414840.38020.352375
480.054790.50220.308434


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.34583.16930.001066
20.2064081.89180.030984
3-0.129453-1.18650.119393
40.0221990.20350.419634
50.0460440.4220.337051
6-0.033736-0.30920.37897
70.1220511.11860.133247
8-0.087027-0.79760.213671
9-0.004691-0.0430.482905
10-0.12537-1.1490.126901
11-0.090433-0.82880.204774
12-0.282244-2.58680.005705
130.2716992.49020.00737
14-0.010304-0.09440.462494
150.144931.32830.093838
16-0.0544-0.49860.309687
170.017450.15990.436661
18-0.324462-2.97370.001919
19-0.184088-1.68720.047638
20-0.087606-0.80290.212142
21-0.215427-1.97440.02581
22-0.04073-0.37330.354936
230.0768810.70460.241496
24-0.139906-1.28230.101639
250.0788580.72270.235921
260.0462290.42370.336436
27-0.131847-1.20840.115143
280.1363891.250.10738
29-0.062564-0.57340.28395
30-0.083301-0.76350.223663
31-0.041354-0.3790.352816
32-0.009959-0.09130.463747
33-0.028424-0.26050.397553
34-0.055441-0.50810.306349
350.0993020.91010.182682
36-0.04687-0.42960.334304
37-0.014038-0.12870.448967
380.049580.45440.325354
39-0.010686-0.09790.461106
400.0255130.23380.407843
41-0.056081-0.5140.304304
420.0156320.14330.443209
43-0.048417-0.44370.329183
44-0.033584-0.30780.379498
45-0.008583-0.07870.468743
460.0002350.00220.499142
47-0.035638-0.32660.37238
48-0.112201-1.02830.153371
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/25/t1303741893yue794amonln2r0/15o1e1303742076.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/25/t1303741893yue794amonln2r0/15o1e1303742076.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/25/t1303741893yue794amonln2r0/2ukvi1303742076.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/25/t1303741893yue794amonln2r0/2ukvi1303742076.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/25/t1303741893yue794amonln2r0/3r2291303742076.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/25/t1303741893yue794amonln2r0/3r2291303742076.ps (open in new window)


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