Home » date » 2009 » Dec » 08 »

Opdracht 6 bis oefening 2

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 08 Dec 2009 11:25:43 -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/08/t1260296803pzs7ssaiohg3w4y.htm/, Retrieved Tue, 08 Dec 2009 19:26:46 +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/08/t1260296803pzs7ssaiohg3w4y.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100,09 100,09 100,06 100,11 100,08 100,08 100,08 100,08 99,94 99,79 99,98 99,98 99,98 99,98 99,93 99,93 99,93 99,93 99,93 99,93 99,76 99,48 99,55 99,56 99,57 99,56 99,65 99,5 99,5 99,49 99,49 99,46 99,52 99,49 99,55 99,57 99,57 99,57 99,57 99,57 99,57 99,57 99,57 99,53 100,38 100,32 100,46 100,47 100,47 100,47 100,51 100,5 100,51 100,51 100,51 100,51 101,65 102,13 102,2 102,13 102,13 102,12 102,13 102,05 102 102,01 102,01 102,02 102,78 103,39 103,41 103,5 103,5 103,49 103,38 103,24 103,25 103,25 103,25 103,25 103,83 104,33 104,36 104,48 104,5 104,48 104,35 104,48 104,48 104,47 104,47 104,86 105,22 105,96 106,03 106,03
 
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.9620649.42630
20.9194259.00850
30.8759578.58260
40.8417128.24710
50.8117647.95360
60.7877167.7180
70.7642747.48830
80.7413867.26410
90.7181387.03630
100.695766.8170
110.6709056.57350
120.64266.29620
130.6048465.92630
140.5634295.52050
150.5215715.11031e-06
160.4856034.75793e-06
170.4569344.4771e-05
180.4296664.20982.9e-05
190.4031463.957.5e-05
200.3771823.69560.000182
210.3507673.43680.000436
220.3215113.15010.001088
230.2895162.83670.002781
240.2556642.5050.006965
250.2159992.11640.018451
260.1729431.69450.046707
270.1301861.27560.102596
280.0939920.92090.179699
290.0674580.6610.255113
300.041940.41090.341021
310.0170490.1670.433843
32-0.008027-0.07860.468739
33-0.033482-0.32810.371791
34-0.060092-0.58880.278695
35-0.087875-0.8610.195692
36-0.11651-1.14160.128238
37-0.147484-1.4450.075851
38-0.182578-1.78890.038393
39-0.216911-2.12530.018065
40-0.245537-2.40580.009027
41-0.259823-2.54570.006248
42-0.273945-2.68410.004283
43-0.287499-2.81690.002943
44-0.301722-2.95630.001959
45-0.312774-3.06450.001415
46-0.324397-3.17840.000997
47-0.335976-3.29190.000697
48-0.348047-3.41020.000476


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9620649.42630
2-0.082517-0.80850.210402
3-0.029648-0.29050.386035
40.1027731.0070.158242
50.0247090.24210.404609
60.0541120.53020.298602
7-0.001542-0.01510.493988
80.0019440.0190.492421
9-0.000363-0.00360.498585
100.0066250.06490.474188
11-0.040264-0.39450.347043
12-0.05558-0.54460.293656
13-0.135361-1.32630.093951
14-0.064552-0.63250.264289
15-0.035629-0.34910.363892
160.0198610.19460.42306
170.0435330.42650.335337
18-0.035188-0.34480.36551
19-0.007501-0.07350.470783
200.0063610.06230.475216
21-0.012407-0.12160.451749
22-0.045702-0.44780.327657
23-0.044016-0.43130.333619
24-0.032498-0.31840.375433
25-0.092285-0.90420.184076
26-0.072512-0.71050.239569
27-0.041386-0.40550.343008
280.0163660.16040.43647
290.0565370.5540.29045
30-0.046696-0.45750.324164
31-0.01401-0.13730.445551
320.0043370.04250.483095
33-0.008499-0.08330.466904
34-0.017659-0.1730.431499
35-0.024811-0.24310.404225
36-0.022494-0.22040.413014
37-0.046205-0.45270.325889
38-0.08769-0.85920.196189
39-0.035235-0.34520.365338
400.0068290.06690.473397
410.107911.05730.146513
42-0.062122-0.60870.272091
43-0.015458-0.15150.439966
440.023230.22760.410217
450.0510080.49980.309188
46-0.005759-0.05640.477558
47-0.007201-0.07060.471948
48-0.000838-0.00820.496734
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260296803pzs7ssaiohg3w4y/1eb7v1260296741.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260296803pzs7ssaiohg3w4y/1eb7v1260296741.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/08/t1260296803pzs7ssaiohg3w4y/2sc0v1260296741.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260296803pzs7ssaiohg3w4y/2sc0v1260296741.ps (open in new window)


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