Home » date » 2009 » Dec » 12 »

opgave 6bis oefening 2 zonder trend

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 12 Dec 2009 04:03:25 -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/12/t12606158849cr1mhl73l04hab.htm/, Retrieved Sat, 12 Dec 2009 12:04: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/12/t12606158849cr1mhl73l04hab.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 «
102.5 77.7 82.8 77.3 103.1 99.7 99.5 107.2 96.7 97.1 105.2 151.2 102.7 75.4 87.2 83.7 105.8 111.5 99.7 111.2 101.5 110.9 116.3 164.9 118.1 83.7 84 107.2 113.7 120.7 111.2 112.4 112.5 130.4 130.7 174.3 132.2 91.8 104.2 104.8 131.4 141.2 132.7 135.7 136.9 151.2 144 201.5 149.6 108.7 122.8 126.7 139.9 162.5 142.7 151.6 148.1 159 157.8 226.7 153.7 122.3 117.6 166 154.5 183.9 164.4 173.3 160.2 166.4 170.3 238.4 166.8 122.5 141.8 140.5 173.8 188.8 168 187.4 177.7 183.8 196.1 264.6 193.7 141.3 170.1 163.7 190.1 230.7 195.9 210.3 204.7 210.3 221.2 288.2 203.2 162.4 149.2 195.3 213.7 227.9 212.1 226.8 212.6 220.9 228.1 311.6
 
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
1-0.158732-1.64190.051769
2-0.191914-1.98520.024842
3-0.199742-2.06610.020615
4-0.019608-0.20280.419829
5-0.055598-0.57510.283213
60.3216463.32710.000602
7-0.035876-0.37110.355649
8-0.000532-0.00550.49781
9-0.168497-1.7430.042107
10-0.229509-2.37410.009688
11-0.138351-1.43110.077656
120.7703697.96880
13-0.078776-0.81490.208481
14-0.194763-2.01460.023225
15-0.159799-1.6530.050634
16-0.029296-0.3030.381224
17-0.030558-0.31610.376272
180.2649972.74120.003588
19-0.01457-0.15070.440243
20-0.021459-0.2220.412379
21-0.114145-1.18070.120164
22-0.236537-2.44680.008022
23-0.077835-0.80510.211266
240.6460686.6830
25-0.080282-0.83040.20407
26-0.136505-1.4120.080424
27-0.146156-1.51180.06676
28-0.034519-0.35710.360873
29-0.011805-0.12210.45152
300.2160862.23520.01374
31-0.023519-0.24330.404128
320.0191590.19820.42164
33-0.136574-1.41270.080319
34-0.159359-1.64840.051099
35-0.12853-1.32950.093251
360.6000846.20730
37-0.104543-1.08140.140976
38-0.093534-0.96750.167732
39-0.141957-1.46840.072462
40-0.02121-0.21940.41338
41-0.026911-0.27840.390635
420.182971.89270.030553
43-0.02713-0.28060.389767
440.0365440.3780.353084
45-0.113853-1.17770.120763
46-0.142698-1.47610.07143
47-0.066345-0.68630.247012
480.439654.54787e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.158732-1.64190.051769
2-0.222721-2.30380.011582
3-0.293964-3.04080.001484
4-0.202987-2.09970.019053
5-0.280747-2.90410.002238
60.1383021.43060.077728
7-0.034209-0.35390.36207
80.0829120.85760.196502
9-0.052057-0.53850.295683
10-0.320283-3.3130.00063
11-0.443821-4.59096e-06
120.5694775.89070
130.1060821.09730.137483
14-0.12653-1.30880.096697
150.0192740.19940.421175
160.0303550.3140.37707
170.066040.68310.248004
18-0.065064-0.6730.251191
19-0.047597-0.49230.31174
20-0.098668-1.02060.154866
21-0.024049-0.24880.402009
22-0.029255-0.30260.381385
230.0434790.44970.3269
240.1473161.52380.065248
25-0.113593-1.1750.121299
260.1153511.19320.117715
270.0575080.59490.276594
280.0038360.03970.48421
290.0203520.21050.416831
30-0.05973-0.61790.268993
31-0.050031-0.51750.302928
320.0760670.78680.216555
33-0.099012-1.02420.154029
340.1470771.52140.065557
35-0.153379-1.58660.057781
360.0970961.00440.158734
370.0258380.26730.394889
38-0.020637-0.21350.415684
390.0163450.16910.43303
40-0.047186-0.48810.31324
41-0.008948-0.09260.463213
42-0.088481-0.91530.181059
430.0198630.20550.4188
44-0.031992-0.33090.370675
450.003460.03580.48576
46-0.014291-0.14780.44138
470.1513261.56530.06023
48-0.134609-1.39240.083343
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/12/t12606158849cr1mhl73l04hab/12zod1260615803.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t12606158849cr1mhl73l04hab/12zod1260615803.ps (open in new window)


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