Home » date » 2010 » Nov » 15 »

opgave 6 bis oef 1

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 15 Nov 2010 12:08:38 +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/15/t1289823075imla1fofaehj8md.htm/, Retrieved Mon, 15 Nov 2010 13:11:15 +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/15/t1289823075imla1fofaehj8md.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:
KDGP2W11
 
Dataseries X:
» Textbox « » Textfile « » CSV «
24.3 29.4 31.8 36.7 37.1 37.7 39.4 43.3 39.6 34.3 32 29.6 22.3 28.9 31.7 34.2 38.6 37.2 38.8 43.4 38.8 36.3 33 29.2 22.64 28.44 30.14 34.39 36.82 36.74 38.9 42.8 39.09 37.49 33.17 30.98 21.2 27.8 29 35.4 37.5 34.7 38.4 39.9 35.9 34.7 30.4 29 21.5 28 29.3 34.3 36.6 36.2 37.5 41.6 39.4 37.3 32.7 30.7 22.9 29.1 29.5 37.1 37.7 38.4 39.4 40.6 39.7 36.6 32.8 31.6 24.1 30.3 31.8 38.7 37.8 38.4 40.7 43.8 41.5 39.3 35.9 33.4
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7100336.50760
20.4051983.71370.000183
3-0.011264-0.10320.459011
4-0.338724-3.10450.001299
5-0.592951-5.43450
6-0.663109-6.07750
7-0.628773-5.76280
8-0.377797-3.46260.000422
9-0.057725-0.52910.29908
100.3180152.91470.002282
110.5952285.45540
120.8185447.50210
130.5855495.36660
140.3362263.08160.001392
15-0.021991-0.20160.420376
16-0.299672-2.74650.003684
17-0.518078-4.74834e-06
18-0.575033-5.27031e-06
19-0.550093-5.04171e-06
20-0.338402-3.10150.001311
21-0.070329-0.64460.260479
220.2403552.20290.01517
230.4861254.45541.3e-05
240.669286.13410
250.4757064.35991.8e-05
260.2744632.51550.006895
27-0.035381-0.32430.373269
28-0.256208-2.34820.010608
29-0.437087-4.0066.6e-05
30-0.490975-4.49991.1e-05
31-0.46394-4.25212.7e-05
32-0.288897-2.64780.004837
33-0.077639-0.71160.23935
340.1734091.58930.057873
350.3673483.36680.000575
360.5168534.7374e-06
370.3600973.30030.000709
380.1923721.76310.040759
39-0.045625-0.41820.338449
40-0.211713-1.94040.027844
41-0.340789-3.12340.001227
42-0.375085-3.43770.000457
43-0.353256-3.23760.000863
44-0.208267-1.90880.029851
45-0.04206-0.38550.350427
460.150691.38110.085456
470.2980262.73150.003842
480.401013.67530.000209


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7100336.50760
2-0.199554-1.82890.035478
3-0.450929-4.13284.2e-05
4-0.223396-2.04750.021869
5-0.261201-2.39390.009447
6-0.150761-1.38170.085357
7-0.244195-2.23810.013931
80.0420140.38510.350581
90.0810720.7430.229766
100.1861241.70590.045865
110.1946631.78410.039008
120.4733294.33812e-05
13-0.525394-4.81533e-06
14-0.012109-0.1110.455947
150.1348231.23570.110013
160.0249690.22880.409774
170.0125130.11470.454483
180.1272551.16630.123395
190.0053270.04880.480587
20-0.184134-1.68760.047598
21-0.065472-0.60010.275041
220.0111090.10180.459572
230.0435510.39910.345398
240.0532120.48770.313519
25-0.079044-0.72450.2354
26-0.012286-0.11260.455307
27-0.080395-0.73680.231637
280.0118190.10830.456998
29-0.005612-0.05140.479551
30-0.041629-0.38150.351885
310.1055470.96740.168073
32-0.063399-0.58110.281376
33-0.157459-1.44310.076351
34-0.028697-0.2630.396592
35-0.084932-0.77840.219257
36-0.008604-0.07890.468667
37-0.020223-0.18530.426702
38-0.073919-0.67750.249981
390.0921260.84440.200436
40-0.092125-0.84430.200439
41-0.032436-0.29730.383494
420.0142460.13060.448215
43-0.043937-0.40270.344099
440.0217540.19940.421225
450.0365570.33510.369211
46-0.016814-0.15410.438951
47-0.025007-0.22920.409638
48-0.053854-0.49360.311446
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/15/t1289823075imla1fofaehj8md/1507p1289822915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/15/t1289823075imla1fofaehj8md/1507p1289822915.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/15/t1289823075imla1fofaehj8md/2507p1289822915.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/15/t1289823075imla1fofaehj8md/2507p1289822915.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