Home » date » 2009 » Dec » 07 »

oefening 6 bis 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: Mon, 07 Dec 2009 14:05:56 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/07/t1260220010b7sxn4rdmfjyj8f.htm/, Retrieved Mon, 07 Dec 2009 22:06:52 +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/2009/Dec/07/t1260220010b7sxn4rdmfjyj8f.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
104.65 109.2 103.93 101.93 101.58 102.63 106.83 105.57 105 104.16 106.93 106.5 106.47 112.33 106.81 103.49 104.13 103.2 105.55 102.8 106.68 105.43 109.01 112.24 112.87 110.98 112.85 112.08 110.72 109.69 112.53 112.99 111.74 111.15 114.82 117.38 117.81 122.85 116.96 119.16 117.74 118.84 123.81 120.33 119.2 117.32 128.58 129.2 126.19 132.1 128.12 122.28 122.36 123.13 125.97 126.14 122.7 122.67 129.19 133.01 123.96 128.96 127.32 131.38 125.25 127.91 130.42 128.44 125.86 125.71 130.63 131.78 125.61 131.84 122.14 127.13 124.49 125.48 129.86 126.32 125.56 125.64 128.26 125.47 134.4 134.5 131.22 121.62 124.16 127.5 132.86 127.87 124.07 124.25 131.16 129.24 129.24 135.51 128.97 126.89 127.52 130.31 132.39 132.69 128.73 129.66 127.72 132.63 129.74 138.46 134.31 128.8 129.95 134.15 136.01 135.1 132.27 132.49 130.06 136.11 131.47 140.61 141.65 126.75 133.9 138.75 141.86 141.13 138.76 138.65 1 etc...
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.335572-3.95636e-05
2-0.104949-1.23730.109026
3-0.137662-1.6230.053427
40.0185740.2190.413493
50.0994251.17220.121561
6-0.030343-0.35770.36054
70.1216021.43370.076956
8-0.086252-1.01690.155485
9-0.028904-0.34080.366896
10-0.155012-1.82760.03488
11-0.085412-1.0070.157845
120.4702895.54460
13-0.037905-0.44690.327825
14-0.176428-2.08010.019678
15-0.042369-0.49950.309101
16-0.022861-0.26950.39396
170.0966981.14010.128112
18-0.103707-1.22270.111758
190.2095762.47090.007344
20-0.103962-1.22570.111194
21-0.062559-0.73760.231012
22-0.115612-1.3630.087536
23-0.005192-0.06120.475641
240.3125163.68450.000164
25-0.045429-0.53560.296547
26-0.098161-1.15730.124567
27-0.021924-0.25850.39821
28-0.047405-0.55890.288564
290.0444920.52450.300366
30-0.079398-0.93610.175425
310.1741172.05280.020983
320.0035570.04190.483303
33-0.172164-2.02980.022143
34-0.062026-0.73130.232921
35-0.057613-0.67920.249056
360.3560024.19722.4e-05
37-0.052703-0.62140.267692
38-0.105741-1.24670.107307
39-0.02636-0.31080.378216
40-0.027961-0.32970.371077
410.0078780.09290.463066
42-0.012382-0.1460.442074
430.1091761.28720.100087
440.0106990.12610.4499
45-0.141119-1.66380.049206
46-0.062378-0.73540.231661
470.01590.18750.425789
480.1690611.99320.024099


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.335572-3.95636e-05
2-0.245165-2.89050.002233
3-0.316268-3.72870.00014
4-0.26025-3.06830.001294
5-0.127696-1.50550.067231
6-0.155823-1.83710.034163
70.0570880.67310.251015
80.0230290.27150.393203
90.0160160.18880.425252
10-0.190324-2.24390.01321
11-0.420223-4.95441e-06
120.1510551.78090.038555
130.2357812.77980.003096
140.0509850.60110.274376
150.1750392.06370.020454
160.0971741.14570.126952
170.0859941.01390.156207
18-0.125893-1.48430.070003
190.0470790.55510.289875
200.0293970.34660.364713
21-0.054907-0.64730.259238
22-0.057493-0.67780.249502
23-0.009332-0.110.456273
240.0707780.83450.202728
250.0002880.00340.498647
260.0003550.00420.498333
270.1255871.48070.070481
28-0.02409-0.2840.388412
29-0.059259-0.69870.242967
30-0.099002-1.16720.122561
31-0.088739-1.04620.148639
320.0164730.19420.423144
33-0.092882-1.09510.137692
34-0.069279-0.81680.207723
35-0.2008-2.36740.009646
36-0.030529-0.35990.35972
370.0760460.89660.18575
38-0.04048-0.47730.316966
39-0.015333-0.18080.428403
400.0085980.10140.4597
41-0.059654-0.70330.24152
420.006750.07960.46834
43-0.065147-0.76810.221873
44-0.02731-0.3220.373975
45-0.026109-0.30780.379341
46-0.0213-0.25110.401045
470.1181321.39280.082959
48-0.067426-0.79490.214002
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260220010b7sxn4rdmfjyj8f/1e9y61260219954.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260220010b7sxn4rdmfjyj8f/1e9y61260219954.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260220010b7sxn4rdmfjyj8f/2oqz81260219954.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260220010b7sxn4rdmfjyj8f/2oqz81260219954.ps (open in new window)


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