Home » date » 2010 » Nov » 16 »

opdracht 6 bis deel 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, 16 Nov 2010 19:19:08 +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/Nov/16/t1289935114ut7fqcb2qqzkad5.htm/, Retrieved Tue, 16 Nov 2010 20:18:36 +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/Nov/16/t1289935114ut7fqcb2qqzkad5.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2834 4683 4120 3849 8435 12854 15883 10520 12562 5060 4520 2150 2905 4820 3950 4053 8700 13520 15400 11100 11950 4900 4633 2300 2945 3960 3900 3767 8820 11980 14085 11600 9814 4930 4360 2640 3050 5485 4366 4790 10100 14830 17930 13580 12490 6400 4980 4930 5856 5120 5100 5623 12035 19846 17030 15860 14890 8053 6080 5987 5682 4980 5450 6035 13240 18400 17689 16490 14062 9556 7555 4328
 
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.758976.44010
20.4072463.45560.000462
3-0.010305-0.08740.465282
4-0.339037-2.87680.002641
5-0.540227-4.5849e-06
6-0.580293-4.92393e-06
7-0.491508-4.17064.2e-05
8-0.288461-2.44770.008409
90.0075060.06370.474698
100.3459422.93540.002234
110.6422155.44940
120.7839246.65180
130.5966175.06252e-06
140.3095392.62650.005266
15-0.038257-0.32460.373205
16-0.295471-2.50720.007214
17-0.464276-3.93959.3e-05
18-0.498977-4.2343.3e-05
19-0.423777-3.59590.000294
20-0.265882-2.25610.013552
21-0.035313-0.29960.382657
220.2430462.06230.021394
230.4658313.95278.9e-05
240.564724.79184e-06
250.4251473.60750.000284
260.1933231.64040.052642
27-0.068906-0.58470.280294
28-0.270731-2.29720.012258
29-0.404301-3.43065e-04
30-0.421289-3.57480.000315
31-0.361307-3.06580.001528
32-0.237112-2.0120.023983
33-0.052185-0.44280.329617
340.1552531.31740.095947
350.333292.82810.003031
360.4051633.43790.000489
370.2835532.4060.009348
380.1153540.97880.165476
39-0.080653-0.68440.247973
40-0.234734-1.99180.025094
41-0.337656-2.86510.00273
42-0.336183-2.85260.002828
43-0.281125-2.38540.009846
44-0.181737-1.54210.063718
45-0.036188-0.30710.379841
460.1062630.90170.185119
470.2391992.02970.023043
480.2779842.35880.010526


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.758976.44010
2-0.39812-3.37820.00059
3-0.393213-3.33650.000672
4-0.129538-1.09920.137679
5-0.134404-1.14050.128938
6-0.098093-0.83240.203982
7-0.100986-0.85690.197174
80.006210.05270.47906
90.1827091.55030.062722
100.2873022.43780.008623
110.3260692.76680.003595
120.2449932.07880.020598
13-0.390498-3.31350.000722
140.1365391.15860.125229
150.1539961.30670.097736
160.1371951.16410.124105
17-0.083305-0.70690.240965
18-0.119907-1.01740.156174
190.0300420.25490.399757
20-0.025514-0.21650.414609
21-0.066151-0.56130.288166
22-0.007617-0.06460.474323
23-0.188675-1.6010.056882
240.0334810.28410.388577
25-0.065034-0.55180.291386
26-0.100311-0.85120.198749
270.0256870.2180.414039
28-0.10854-0.9210.180064
29-0.021434-0.18190.428096
300.0195920.16620.434216
31-0.064661-0.54870.292465
320.0118460.10050.460105
33-0.041481-0.3520.362942
34-0.068442-0.58080.281611
350.0901510.7650.223398
36-0.031511-0.26740.39497
37-0.111286-0.94430.174089
380.0691360.58660.27964
390.0024930.02120.49159
400.0049350.04190.483358
41-0.081779-0.69390.244984
420.0548290.46520.321582
430.0665560.56480.286999
44-0.076944-0.65290.257953
450.053590.45470.325336
46-0.124336-1.0550.14747
470.0068310.0580.476968
480.0891490.75650.225923
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935114ut7fqcb2qqzkad5/1xdl01289935146.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935114ut7fqcb2qqzkad5/1xdl01289935146.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935114ut7fqcb2qqzkad5/2xdl01289935146.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289935114ut7fqcb2qqzkad5/2xdl01289935146.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