Home » date » 2010 » Jun » 06 »

opgave 6bis Fieremans Patrick oefening 2 verb

*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, 06 Jun 2010 08:56:42 +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/Jun/06/t1275814645pints3z9588s6l5.htm/, Retrieved Sun, 06 Jun 2010 10:57:26 +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/Jun/06/t1275814645pints3z9588s6l5.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 «
93,2 96 95,2 77,1 70,9 64,8 70,1 77,3 79,5 100,6 100,7 107,1 95,9 82,8 83,3 80 80,4 67,5 75,7 71,1 89,3 101,1 105,2 114,1 96,3 84,4 91,2 81,9 80,5 70,4 74,8 75,9 86,3 98,7 100,9 113,8 89,8 84,4 87,2 85,6 72 69,2 77,5 78,1 94,3 97,7 100,2 116,4 97,1 93 96 80,5 76,1 69,9 73,6 92,6 94,2 93,5 108,5 109,4 105,1 92,5 97,1 81,4 79,1 72,1 78,7 87,1 91,4 109,9 116,3 113 100 84,8 94,3 87,1 90,3 72,4 84,9 92,7 92,2 114,9 112,5 118,3 106 91,2 96,6 96,3 88,2 70,2 86,5 88,2 102,8 119,1 119,2 125,1 106,1 102,1 105,2 101 84,3 87,5 92,7 94,4 113 113,9 122,9 132,7 106,9 96,6 127,3 98,2 100,2 89,4 95,3 104,2 106,4 116,2 135,9 134 104,6 107,1 123,5 98,8 98,6 90,6 89,1 105,2 114 122,1 138 142,2 116,4 112,6 123,8 103,6 113,9 98,6 95 116 113,9 127,5 131,4 145,9 131,5 131 130,5 118,9 114,3 85,7 104,6 105,1 117,3 142,5 140 159,8 131,2 125,4 126,5 119,4 113,5 98,7 114,5 113, etc...
 
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.82870418.08020
20.73575716.05230
30.68176414.87430
40.59515112.98470
50.5604512.22760
60.50712111.06410
70.53180411.60260
80.59953313.08030
90.66025314.4050
100.70682915.42120
110.8196617.88290
120.89635819.55620
130.78470517.12030
140.71851515.67610
150.63029113.75130
160.55366312.07950
170.53054911.57520
180.4598410.03250
190.50303510.97490
200.56126412.24530
210.60004513.09140
220.66726614.5580
230.77082716.81750
240.83235518.15980
250.74702216.29810
260.67503214.72750
270.57856412.62280
280.52043311.35450
290.48280110.53350
300.4002288.73190
310.46485310.14190
320.51851711.31270
330.54268311.83990
340.63382713.82850
350.71200315.53410
360.77055916.81160
370.71049915.50130
380.60289713.15370
390.52125111.37240
400.48256110.52820
410.4197629.15810
420.3494467.6240
430.4269049.31390
440.4462379.73570
450.49217510.7380
460.5889412.84910
470.63461113.84560
480.71348915.56650
490.64572614.08810
500.52778311.51490
510.47570110.37860
520.4229059.22670
530.3486957.60760
540.3108666.78230
550.3601147.85680
560.3794688.2790
570.4505739.83030
580.51100911.14890
590.56262812.27510
600.65865714.37020


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.82870418.08020
20.1564483.41330.000348
30.1236352.69740.003618
4-0.073868-1.61160.053855
50.108692.37130.009061
6-0.035616-0.7770.218759
70.2609355.69290
80.2639155.7580
90.2566065.59850
100.1263222.7560.003038
110.48693810.62370
120.4620110.07990
13-0.230884-5.03730
14-0.098142-2.14120.016383
15-0.198971-4.3419e-06
16-0.170595-3.72190.000111
17-0.008928-0.19480.422824
18-0.070292-1.53360.062898
190.0814451.77690.03811
20-0.0488-1.06470.143776
21-0.034376-0.750.226813
22-0.066095-1.4420.074976
230.0883251.9270.027286
240.2367695.16570
25-0.037681-0.82210.205717
26-0.020613-0.44970.326556
27-0.084182-1.83660.033444
28-0.061949-1.35160.088576
29-0.041637-0.90840.182059
30-0.144407-3.15060.000866
310.1017432.21980.013452
320.0816091.78050.037815
33-0.068078-1.48530.069064
340.0632921.38090.083983
35-0.039782-0.86790.192931
360.0672331.46690.071537
37-0.010097-0.22030.412868
38-0.167305-3.65020.000146
39-0.023315-0.50870.305612
400.0577471.25990.104162
410.0065360.14260.443333
42-0.092497-2.01810.022073
430.1143172.49410.006483
44-0.095345-2.08020.019022
45-0.068016-1.48390.069243
460.0965342.10610.017858
47-0.045968-1.00290.158207
480.0418130.91230.181048
49-0.011293-0.24640.402742
50-0.096669-2.10910.01773
51-0.029972-0.65390.256739
520.0548251.19610.11612
53-0.020378-0.44460.328408
540.0174240.38020.352001
550.0281350.61380.269812
56-0.025388-0.55390.289957
570.0103910.22670.410374
58-0.087159-1.90160.028915
59-0.036073-0.7870.215828
600.065821.4360.075825
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275814645pints3z9588s6l5/1rkf41275814599.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275814645pints3z9588s6l5/1rkf41275814599.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/06/t1275814645pints3z9588s6l5/2rkf41275814599.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275814645pints3z9588s6l5/2rkf41275814599.ps (open in new window)


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