Home » date » 2009 » Dec » 16 »

Opgave 6 bis eigen reeks "degree of non-seasonal differencing" op 1

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 16 Dec 2009 06:10:23 -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/Dec/16/t1260969119knxdknhaoq6zcao.htm/, Retrieved Wed, 16 Dec 2009 14:12:01 +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/Dec/16/t1260969119knxdknhaoq6zcao.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6 5 2 3 -2 -4 0 1 4 -3 -3 0 6 -1 0 -1 1 -4 -1 -1 0 3 0 8 8 8 8 11 13 5 12 13 9 11 7 12 11 10 13 14 10 13 12 13 17 15 6 9 6 11 12 13 11 16 16 19 14 15 12 14 16 13 13 15 12 13 12 15 10 8 11 8
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.388212-3.27110.000827
2-0.009435-0.07950.468427
3-0.051042-0.43010.334217
40.0745060.62780.266075
50.0410480.34590.365229
6-0.033918-0.28580.387933
7-0.070808-0.59660.276324
80.0735430.61970.268726
9-0.087139-0.73420.232607
100.0110180.09280.463145
11-0.052497-0.44230.329791
120.2087491.7590.041447
13-0.089355-0.75290.226994
14-0.020133-0.16960.432888
15-0.00974-0.08210.46741
160.0848560.7150.238475
17-0.036465-0.30730.379772
18-0.037523-0.31620.376398
19-0.028123-0.2370.406681
200.0665380.56070.288398
21-0.1054-0.88810.188739
22-0.04657-0.39240.347966
230.0312240.26310.396619
240.0334350.28170.389486
25-0.004577-0.03860.484672
26-0.099565-0.8390.202156
270.1094870.92260.179682
28-0.070469-0.59380.277272
290.0782730.65950.255842
300.0034040.02870.488598
31-0.063445-0.53460.297298
320.1406951.18550.119883
33-0.007024-0.05920.476485
34-0.154873-1.3050.098056
350.0438830.36980.356329
36-0.049722-0.4190.338252
370.1421051.19740.117567
38-0.167417-1.41070.081352
390.135241.13950.129152
40-0.139866-1.17850.121259
410.0057690.04860.480683
420.0440720.37140.355739
430.0565460.47650.317602
440.0059290.050.480148
45-0.059864-0.50440.307764
46-0.064777-0.54580.293451
470.0900650.75890.225213
48-0.054385-0.45830.324084


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.388212-3.27110.000827
2-0.188562-1.58890.058269
3-0.157-1.32290.095056
4-0.017485-0.14730.441645
50.0700310.59010.278501
60.0315420.26580.395589
7-0.065749-0.5540.290657
80.0161890.13640.445941
9-0.092945-0.78320.218065
10-0.082933-0.69880.243478
11-0.106802-0.89990.185601
120.1743441.46910.073118
130.09160.77180.221387
140.0361640.30470.380735
150.0139750.11780.453297
160.0541180.4560.324889
17-0.01636-0.13790.445373
18-0.059827-0.50410.307871
19-0.05047-0.42530.335964
200.0099370.08370.466752
21-0.076892-0.64790.259568
22-0.132492-1.11640.134008
23-0.053103-0.44750.327955
24-0.05408-0.45570.325004
25-0.006481-0.05460.4783
26-0.097776-0.82390.206385
270.0483240.40720.342549
28-0.09731-0.81990.207495
290.0200080.16860.433301
300.0779870.65710.256612
31-0.021453-0.18080.428534
320.1311581.10520.136411
330.1927241.62390.054412
34-0.033314-0.28070.389875
35-0.081882-0.68990.246238
36-0.13864-1.16820.123317
370.0447150.37680.353731
38-0.076207-0.64210.261428
390.1006280.84790.199669
40-0.053304-0.44910.327347
41-0.167836-1.41420.080835
42-0.102881-0.86690.194462
43-0.019546-0.16470.434825
44-0.008917-0.07510.47016
45-0.092281-0.77760.219701
46-0.046643-0.3930.347742
47-0.001237-0.01040.495855
48-0.058092-0.48950.313003
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260969119knxdknhaoq6zcao/1sctm1260969018.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260969119knxdknhaoq6zcao/1sctm1260969018.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260969119knxdknhaoq6zcao/2950o1260969018.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260969119knxdknhaoq6zcao/2950o1260969018.ps (open in new window)


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