Home » date » 2010 » Nov » 20 »

Opgave 6 bis

*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, 20 Nov 2010 14:49:27 +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/20/t1290264470309x54f5zr41ib3.htm/, Retrieved Sat, 20 Nov 2010 15:47:50 +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/20/t1290264470309x54f5zr41ib3.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 «
96,1 96,5 96,9 97,8 98,9 100,2 101,2 101 101,6 102,4 103,7 103,7 104,6 104,5 104,5 105,6 106,1 107,6 107,7 108,3 108,1 108,1 108 108,2 108,9 109,8 109,9 109,8 110,9 111,1 112,2 112,7 114,6 114,2 114,7 114,7 116 116,3 116,4 116,6 118,1 117,2 108,3 109,5 110,5 110,6 111,2 111,1 111 112,4 112,5 112,4 111,8 111,6 112,9 112,8 113,7 113,8 114 113,8 113,9 114,4 114,4 114,5 113,8 114,3 115 115,4 115,3 114,9 114,3 114,5 115,5 115,8 115,8 116 114,9 114,1 114,1 113,5 115 114,7 115,4 116,1 116,6 117,2 118,2 118 117,7 118,5 117,5 118 117,7 116,3 115 115,7 113,6 114,8 114,9 117,3 117,3 117,7 120 119,6 119,2 117,3 117,5 119 112,5 118,9 118,4 119,4 120,6 118,6 122 122,6 120,6 117,4 116,4 122,2 121 122,4 124,9 126,1 124,5 123,2 126,4 123,9 116 126,6 125,9 126,6 116,7 126,4 129 128,7 128,4 129,2 133,3 128,9 132,7 127,7 131,8 133,9
 
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.90626510.87520
20.85292410.23510
30.8135019.7620
40.7738569.28630
50.7227828.67340
60.6617227.94070
70.6424257.70910
80.6054887.26590
90.5734086.88090
100.5372086.44650
110.5114516.13740
120.5034356.04120
130.4720175.66420
140.4480985.37720
150.4172645.00721e-06
160.4068244.88191e-06
170.3850684.62084e-06
180.3575564.29071.6e-05
190.3475514.17062.6e-05
200.3310473.97265.6e-05
210.2978873.57460.000239
220.2757033.30840.000593
230.2551343.06160.001314
240.2420812.9050.002126
250.2081722.49810.006806
260.2037722.44530.007841
270.1997692.39720.008901
280.1844052.21290.014241
290.1646991.97640.025011
300.1447371.73680.042277
310.1453011.74360.041681
320.1311811.57420.058822
330.1282541.5390.062994
340.1288071.54570.062188
350.1233741.48050.070463
360.1336181.60340.055517
370.1275521.53060.064028
380.1296291.55550.061005
390.1317991.58160.057969
400.1307591.56910.059409
410.1330251.59630.056306
420.1315791.57890.058271
430.1174151.4090.080498
440.105311.26370.104186
450.0969181.1630.123373
460.0935891.12310.131638
470.0922781.10730.134998
480.0935521.12260.131733


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.90626510.87520
20.1768952.12270.017743
30.097911.17490.120982
40.0221480.26580.395395
5-0.069047-0.82860.204363
6-0.109912-1.31890.094641
70.1666541.99980.023699
8-0.034996-0.420.337572
90.0247170.29660.383598
10-0.030589-0.36710.357052
110.0154270.18510.426695
120.09171.10040.136496
13-0.050138-0.60170.274176
14-0.014707-0.17650.430082
15-0.055029-0.66040.255042
160.0656390.78770.216094
17-0.018814-0.22580.410849
18-0.00779-0.09350.462824
190.0385070.46210.322359
20-0.010867-0.13040.448216
21-0.132073-1.58490.057594
220.0555790.66690.252938
23-0.027957-0.33550.368874
240.0299670.35960.359837
25-0.083951-1.00740.157714
260.1199611.43950.076084
270.0201240.24150.404759
28-0.037042-0.44450.328673
29-0.056166-0.6740.250697
30-0.022327-0.26790.39457
310.0441680.530.29846
32-0.006287-0.07540.469985
330.075590.90710.182939
340.0356380.42770.334769
35-0.034364-0.41240.34034
360.0454730.54570.293066
370.0147420.17690.429918
38-0.020446-0.24530.403269
390.0213040.25570.399292
40-0.041155-0.49390.311077
410.0627250.75270.226428
420.0169670.20360.419477
43-0.130186-1.56220.060214
44-0.001829-0.0220.491259
450.0038260.04590.481723
460.0009340.01120.495539
470.0590360.70840.239913
480.036770.44120.329851
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290264470309x54f5zr41ib3/1tbxs1290264563.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/20/t1290264470309x54f5zr41ib3/1tbxs1290264563.ps (open in new window)


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