Home » date » 2010 » Nov » 16 »

Opdracht 6bis oefening2B

*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 18:54:51 +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/t1289933624erg2m8o1nxwmmtr.htm/, Retrieved Tue, 16 Nov 2010 19:53: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/2010/Nov/16/t1289933624erg2m8o1nxwmmtr.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 «
110.04 111.73 110.99 115.83 125.33 123.03 123.46 130.34 131.21 132.97 133.91 133.14 135.31 133.09 135.39 131.85 130.25 127.65 118.3 119.73 122.51 123.28 133.52 153.2 163.63 168.45 166.26 162.31 161.56 156.59 157.97 158.68 163.55 162.89 164.95 159.82 159.05 166.76 164.55 163.22 160.68 155.24 157.6 156.56 154.82 151.11 149.65 148.99 148.53 146.7 145.11 142.7 143.59 140.96 140.77 139.81 140.58 139.59 138.05 136.06 135.98 134.75 132.22 135.37 138.84 138.83 136.55 135.63 139.14 136.09 135.97 134.51 134.54 134.08 132.86 134.48 129.08 133.13 134.78 134.13 132.43 127.84 128.12 128.94
 
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.3536043.22150.000911
20.1480221.34850.090575
30.0765180.69710.243841
4-0.135689-1.23620.109938
5-0.1104-1.00580.158719
6-0.188458-1.71690.044861
7-0.094985-0.86540.19467
8-0.030748-0.28010.39004
90.0668450.6090.272098
100.0530650.48340.315026
11-0.005361-0.04880.480582
120.0076580.06980.472272
130.0214230.19520.422866
140.0706660.64380.260741
150.0507070.4620.322659
160.0611610.55720.289444
17-0.020986-0.19120.424422
180.0216810.19750.42195
190.060050.54710.292895
200.1120641.0210.155122
210.0003760.00340.498637
22-0.045365-0.41330.34023
23-0.008176-0.07450.470401
24-0.040236-0.36660.357436
25-0.032849-0.29930.382742
26-0.013732-0.12510.450371
27-0.01065-0.0970.46147
28-0.002753-0.02510.490025
29-0.039055-0.35580.361444
300.0478960.43640.331856
310.0091920.08370.466731
32-0.04445-0.4050.343274
330.0676860.61670.269576
34-0.062471-0.56910.285399
35-0.017563-0.160.436631
36-0.029551-0.26920.394214
37-0.134605-1.22630.111775
38-0.031927-0.29090.38594
39-0.077058-0.7020.242313
400.0997850.90910.182968
410.0700460.63810.262567
42-0.045903-0.41820.338443
43-0.024697-0.2250.411264
44-0.041152-0.37490.354341
450.0165350.15060.440313
46-0.067571-0.61560.26992
47-0.05846-0.53260.297867
48-0.047527-0.4330.333071


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3536043.22150.000911
20.0262720.23930.405713
30.0185990.16940.432931
4-0.196229-1.78770.038735
5-0.010022-0.09130.463735
6-0.144589-1.31730.095686
70.0517710.47170.319206
8-0.012272-0.11180.455626
90.1095940.99840.160483
10-0.060624-0.55230.291111
11-0.04053-0.36930.356441
12-0.028289-0.25770.398627
130.0632140.57590.283119
140.0716670.65290.257808
150.0270320.24630.40304
160.0264580.2410.405058
17-0.090167-0.82150.20687
180.0628660.57270.284186
190.0598980.54570.29337
200.1665921.51770.066442
21-0.122963-1.12020.13292
22-0.023872-0.21750.414181
23-0.03826-0.34860.364149
240.0452670.41240.340555
25-0.012888-0.11740.453408
260.0715520.65190.258142
27-0.048395-0.44090.330215
28-0.04101-0.37360.354819
29-0.108236-0.98610.16348
300.1353781.23340.110463
31-0.00096-0.00870.496521
32-0.042398-0.38630.350146
330.0550120.50120.308786
34-0.175858-1.60210.056462
350.0471220.42930.334409
36-0.056381-0.51370.30443
37-0.001915-0.01740.493063
38-0.021014-0.19140.424323
39-0.074192-0.67590.250484
400.1275681.16220.124243
410.0012670.01150.495409
42-0.113638-1.03530.15177
43-0.037963-0.34590.365163
440.0162340.14790.44139
450.0672880.6130.27077
46-0.095296-0.86820.193899
47-0.006145-0.0560.477744
48-0.03136-0.28570.387907
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289933624erg2m8o1nxwmmtr/17jwh1289933690.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289933624erg2m8o1nxwmmtr/17jwh1289933690.ps (open in new window)


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