Home » date » 2010 » Nov » 14 »

Opgave 6 Stap 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, 14 Nov 2010 22:28: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/Nov/14/t1289773630jzasblbv8kpupp6.htm/, Retrieved Sun, 14 Nov 2010 23:27:10 +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/14/t1289773630jzasblbv8kpupp6.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:
Mijn eigen cijferreeks
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W11
 
Dataseries X:
» Textbox « » Textfile « » CSV «
361,58 363,19 363,61 364,14 365,51 365,51 365,5 365,5 364,59 364,63 364,54 363,67 365,22 369,05 370,45 370,46 370,46 370,58 370,58 370,22 370,21 370,29 370,29 370,2 370,2 372,55 374,51 375,58 375,75 375,75 375,75 375,69 375,76 377,5 377,51 377,74 369,82 373,1 374,55 375,01 374,81 375,31 375,31 375,39 375,59 376,26 377,18 377,26 377,26 381,87 387,09 387,14 388,78 389,16 389,16 389,42 389,49 388,97 388,97 389,09 389,09 391,76 390,96 391,76 392,8 393,06 393,06 393,26 393,87 394,47 394,57 394,57 394,57 399,57 406,13 407,03 409,46 409,9 409,9 410,14 410,54 410,69 410,79 410,97
 
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.1526011.39030.084083
2-0.011123-0.10130.459764
3-0.043048-0.39220.347965
4-0.018444-0.1680.433483
5-0.071258-0.64920.259002
6-0.060955-0.55530.290083
7-0.092819-0.84560.200098
8-0.053607-0.48840.313284
9-0.066384-0.60480.273485
10-0.117246-1.06820.144272
110.0156850.14290.443358
120.2364972.15460.017046
130.0162190.14780.441444
14-0.175877-1.60230.056443
150.0170320.15520.438532
16-0.085295-0.77710.219662
17-0.047413-0.4320.333449
18-0.057992-0.52830.29934
19-0.038816-0.35360.362258
20-0.01402-0.12770.449335
210.0237880.21670.414479
22-0.033559-0.30570.380286
230.0261350.23810.406196
240.3490963.18040.001034
250.13211.20350.116105
260.078230.71270.239011
270.00690.06290.475014
280.0088380.08050.468011
29-0.051068-0.46520.321486
30-0.041211-0.37540.354143
31-0.044241-0.40310.343971
32-0.088635-0.80750.210843
33-0.054953-0.50060.308972
34-0.032114-0.29260.385291
350.0053380.04860.480667
360.2066471.88260.031626
37-0.001017-0.00930.496314
38-0.211514-1.9270.028702
39-0.026737-0.24360.404075
40-0.077772-0.70850.240299
41-0.033668-0.30670.379909
42-0.055191-0.50280.308215
43-0.031949-0.29110.385863
44-0.076769-0.69940.24313
45-0.03658-0.33330.369891
460.0153440.13980.444581
470.0566570.51620.303554
480.1327991.20990.114884


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1526011.39030.084083
2-0.035231-0.3210.374521
3-0.036816-0.33540.369081
4-0.006578-0.05990.476178
5-0.070875-0.64570.260127
6-0.042506-0.38720.349783
7-0.083301-0.75890.225028
8-0.036751-0.33480.369304
9-0.065153-0.59360.277208
10-0.118977-1.08390.140768
110.0344360.31370.377259
120.2137151.9470.027456
13-0.07756-0.70660.240894
14-0.19928-1.81550.036527
150.0723410.65910.255843
16-0.127517-1.16170.124336
17-0.039818-0.36280.358855
18-0.044246-0.40310.343957
19-0.040518-0.36910.356483
20-0.024277-0.22120.412751
210.0060880.05550.477951
22-0.021259-0.19370.423451
23-0.026802-0.24420.403847
240.2812252.56210.006106
250.0409150.37280.355141
260.1201151.09430.138494
27-0.036159-0.32940.371333
280.0332280.30270.381429
290.0138480.12620.449955
30-0.031378-0.28590.387845
310.0550130.50120.308783
32-0.100651-0.9170.180907
330.0078080.07110.471731
340.0549680.50080.308926
350.0326330.29730.383491
360.0919460.83770.20231
37-0.088627-0.80740.210862
38-0.170712-1.55530.061844
390.023070.21020.417021
40-0.025232-0.22990.409376
41-0.030309-0.27610.391568
42-0.007043-0.06420.474497
43-0.037449-0.34120.366918
44-0.059627-0.54320.294216
45-0.056244-0.51240.304865
46-0.001045-0.00950.496214
470.0032510.02960.488221
48-0.09005-0.82040.207171
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289773630jzasblbv8kpupp6/19id91289773686.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289773630jzasblbv8kpupp6/19id91289773686.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/14/t1289773630jzasblbv8kpupp6/29id91289773686.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289773630jzasblbv8kpupp6/29id91289773686.ps (open in new window)


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