Home » date » 2010 » May » 02 »

IKO opgave 6bis oefening 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: Sun, 02 May 2010 08:57:10 +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/May/02/t1272790724hy9o2e1n4cmp4lf.htm/, Retrieved Sun, 02 May 2010 10:58:45 +0200
 
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/May/02/t1272790724hy9o2e1n4cmp4lf.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
278.1 283.3 287 287.9 279.7 273.2 272.6 274.8 277.2 277.5 278.7 279 280.1 280.8 280.1 270.5 260 258.2 260.1 262.2 263.4 264.7 267.4 266.8 265.2 262.5 255 252.8 249.6 254.2 259.4 260.8 261.6 257.2 249.8 235.2 227.4 223.1 221.6 218.5 220.1 222.1 222.9 222.8 222.1 209 201.7 204.5 208.7 213 218.6 221.9 224.6 226.8 229.6 231.4 229.1 232.7 236.6 242.2 251.5 261.5 266.4 280.9 294.4 308.8 328.8 348.2 365.9 387.5 395.9 395.8
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9116767.73580
20.7983246.7740
30.6755645.73240
40.56254.7735e-06
50.4598583.9020.000106
60.3713453.1510.001186
70.2970672.52070.006964
80.2313911.96340.02673
90.1731031.46880.073117
100.122491.03940.151057
110.0681580.57830.282419
120.0165960.14080.444202
13-0.029381-0.24930.401918
14-0.069856-0.59270.277604
15-0.104217-0.88430.189737
16-0.13142-1.11510.13425
17-0.159074-1.34980.090656
18-0.18582-1.57670.05962
19-0.211634-1.79580.038363
20-0.238761-2.0260.023238
21-0.265456-2.25250.013671
22-0.288632-2.44910.008378
23-0.303995-2.57950.005968
24-0.310375-2.63360.005167
25-0.306103-2.59740.005692
26-0.293167-2.48760.007589
27-0.282724-2.3990.009516
28-0.282231-2.39480.009616
29-0.279015-2.36750.010299
30-0.274656-2.33050.011292
31-0.268302-2.27660.012892
32-0.256275-2.17460.016475
33-0.236703-2.00850.024171
34-0.213353-1.81040.037206
35-0.184733-1.56750.06069
36-0.15497-1.3150.096348
37-0.130885-1.11060.135219
38-0.121034-1.0270.153928
39-0.118222-1.00310.159575
40-0.119583-1.01470.156824
41-0.120436-1.02190.155117
42-0.119641-1.01520.156708
43-0.111516-0.94620.173594
44-0.095453-0.80990.210321
45-0.079976-0.67860.249778
46-0.063539-0.53910.295726
47-0.053659-0.45530.325129
48-0.04676-0.39680.346354


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9116767.73580
2-0.194426-1.64980.051675
3-0.101565-0.86180.195828
4-0.001768-0.0150.494037
5-0.022017-0.18680.426165
6-0.002955-0.02510.490032
70.0013960.01180.49529
8-0.028538-0.24220.404676
9-0.021561-0.1830.427674
10-0.010513-0.08920.464582
11-0.079599-0.67540.250786
12-0.025828-0.21920.413575
13-0.012534-0.10640.457797
14-0.02673-0.22680.410605
15-0.019327-0.1640.435097
16-0.011776-0.09990.460341
17-0.059958-0.50880.306237
18-0.03745-0.31780.375788
19-0.035437-0.30070.382259
20-0.058077-0.49280.311826
21-0.041083-0.34860.364202
22-0.028904-0.24530.403478
23-0.013173-0.11180.455655
24-0.006695-0.05680.477429
250.0056650.04810.480895
26-0.003151-0.02670.489373
27-0.055825-0.47370.318578
28-0.084695-0.71870.237337
290.0045310.03840.484719
30-0.020769-0.17620.430302
31-0.025123-0.21320.415895
320.000740.00630.497502
330.00590.05010.480104
34-0.014851-0.1260.450035
350.0087280.07410.470584
36-0.012289-0.10430.458621
37-0.041749-0.35430.362093
38-0.075903-0.64410.260793
39-0.037619-0.31920.375245
40-0.034829-0.29550.384217
41-0.02139-0.18150.428241
42-0.029876-0.25350.400301
430.001090.00920.496324
440.0115510.0980.461098
45-0.044167-0.37480.354467
46-0.013655-0.11590.45404
47-0.048572-0.41210.340729
48-0.02104-0.17850.429403
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/02/t1272790724hy9o2e1n4cmp4lf/1a1ef1272790626.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/02/t1272790724hy9o2e1n4cmp4lf/1a1ef1272790626.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/02/t1272790724hy9o2e1n4cmp4lf/22sdi1272790626.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/02/t1272790724hy9o2e1n4cmp4lf/22sdi1272790626.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; 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