Home » date » 2009 » Dec » 10 »

opgave 6bis oefening 2, stap 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: Wed, 09 Dec 2009 23:25:57 -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/10/t1260426412nrj6i27l6m8fapx.htm/, Retrieved Thu, 10 Dec 2009 07:26:55 +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/10/t1260426412nrj6i27l6m8fapx.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 «
5,2100 5,2300 5,2300 5,2300 5,2200 5,2100 5,2300 5,2500 5,2300 5,2300 5,2500 5,2400 5,2600 5,2700 5,2600 5,2900 5,2900 5,2900 5,2900 5,3100 5,3300 5,3400 5,3400 5,3700 5,4100 5,4100 5,3800 5,4400 5,4400 5,4600 5,4600 5,4500 5,4600 5,4600 5,4800 5,4700 5,4800 5,5100 5,5500 5,5800 5,5900 5,6000 5,6000 5,6700 5,7100 5,7000 5,7300 5,7200 5,7500 5,7500 5,7700 5,8300 5,8500 5,8700 5,8600 5,8700 5,9300 5,9700 5,9800 5,9900 5,9900 6,0300 6,0600 6,0700 6,0800 6,0800 6,1000 6,1300 6,1400 6,1400 6,1600 6,2000 6,1900 6,3200 6,3200 6,3300 6,3200 6,3300 6,3800 6,4200 6,4600 6,4700 6,4200 6,4800 6,4700 6,4900 6,4800 6,5100 6,5100 6,5200 6,5700 6,5900 6,6200 6,6300 6,6100 6,6400 6,6900 6,6900 6,7500 6,7700 6,8100 6,8100 6,8100 6,8700 6,8600 6,8800 6,8800 6,9200 6,9200 6,9900 7,0200 7,0500 7,0600 7,0600 7,0900 7,1200 7,2300 7,3100 7,4500 7,4900 7,5400 7,5500 7,5800 7,6000 7,6300 7,6400 7,6300 7,6600 etc...
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0358920.41080.340945
20.1945292.22650.013845
3-0.023522-0.26920.39409
4-0.001252-0.01430.494293
50.1484781.69940.045808
60.0588940.67410.250728
70.1215371.3910.083284
8-0.042318-0.48440.314472
90.0067550.07730.469244
10-0.009983-0.11430.454605
110.0099970.11440.454539
120.0037850.04330.482755
130.0192960.22090.412774
14-0.056972-0.65210.257749
15-0.053859-0.61640.269336
16-0.051723-0.5920.277436
170.1145081.31060.096142
180.0667220.76370.223219
190.0473880.54240.294239
200.1237121.4160.079581
21-0.124521-1.42520.078237
220.1228211.40580.081082
23-0.000996-0.01140.495461
240.0156040.17860.429263
25-0.040111-0.45910.323463
26-0.041295-0.47260.318625
270.0823550.94260.173813
28-0.013846-0.15850.437162
290.0501920.57450.283318
300.0193550.22150.412515
31-0.079778-0.91310.181433
32-0.039836-0.45590.324594
33-0.06601-0.75550.225646
34-0.013699-0.15680.437823
35-0.06397-0.73220.232688
36-0.017298-0.1980.421681
370.0919171.0520.14736
38-0.065209-0.74640.228396
390.0667070.76350.223272
40-0.011486-0.13150.447805
41-0.024091-0.27570.391593
42-0.034966-0.40020.344831
43-0.000245-0.00280.498883
440.0788990.9030.184081
450.0312250.35740.360689
460.0900711.03090.152242
470.0180770.20690.418203
48-0.116572-1.33420.092222


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0358920.41080.340945
20.193492.21460.014258
3-0.03755-0.42980.33403
4-0.038442-0.440.330333
50.168681.93060.027845
60.0579220.6630.254263
70.0566280.64810.259016
8-0.0623-0.71310.238539
9-0.013747-0.15730.437611
10-0.000129-0.00150.499412
11-0.004736-0.05420.478427
12-0.030296-0.34680.364665
130.0242880.2780.390732
14-0.058003-0.66390.253968
15-0.051687-0.59160.277576
16-0.028225-0.3230.373587
170.1499091.71580.044282
180.0685820.7850.216947
190.0005810.00670.497351
200.1341221.53510.063585
21-0.108703-1.24420.107831
220.067480.77230.220652
230.0217720.24920.4018
24-0.081401-0.93170.176609
25-0.088892-1.01740.155416
26-0.00645-0.07380.470633
270.0846590.9690.167173
280.0016170.01850.49263
29-0.009883-0.11310.455056
300.0542680.62110.267799
31-0.068236-0.7810.218107
32-0.036681-0.41980.337648
33-0.027528-0.31510.376604
34-0.011084-0.12690.449624
35-0.07766-0.88890.187853
36-0.019781-0.22640.410621
370.1263651.44630.075239
38-0.0193-0.22090.412756
390.0110440.12640.449803
400.0077590.08880.464687
41-0.004321-0.04950.480316
42-0.073598-0.84240.20056
430.0526730.60290.273819
440.0883481.01120.156895
450.0154660.1770.429887
460.0247030.28270.388912
470.003830.04380.482553
48-0.129285-1.47970.070672
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260426412nrj6i27l6m8fapx/1hcut1260426355.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260426412nrj6i27l6m8fapx/1hcut1260426355.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/10/t1260426412nrj6i27l6m8fapx/2k8rk1260426355.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t1260426412nrj6i27l6m8fapx/2k8rk1260426355.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