Home » date » 2010 » Jun » 06 »

IKO opgave 6bis oe 4

*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 09:38: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/Jun/06/t1275817159jzwxti0xyyub7nr.htm/, Retrieved Sun, 06 Jun 2010 11:39:21 +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/t1275817159jzwxti0xyyub7nr.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:
 
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 time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7966826.7130
20.5817524.90193e-06
30.4329763.64830.00025
40.3058652.57730.006018
50.2374312.00060.024629
60.2374652.00090.024613
70.2175251.83290.035505
80.2318031.95320.027368
90.2754162.32070.01159
100.3102832.61450.005452
110.2835552.38930.00977
120.1587351.33750.09266
130.0259260.21850.41385
14-0.052597-0.44320.329488
15-0.063008-0.53090.298568
16-0.02165-0.18240.427884
170.0446650.37640.353886
180.0659250.55550.290151
190.1223321.03080.153069
200.0851630.71760.237679
210.000550.00460.498158
22-0.066647-0.56160.288087
23-0.140488-1.18380.120226
24-0.197841-1.6670.049957
25-0.176622-1.48820.070558
26-0.152332-1.28360.101732
27-0.142253-1.19860.117326
28-0.116358-0.98040.165097
29-0.072943-0.61460.270381
30-0.069574-0.58620.279785
31-0.134859-1.13630.129817
32-0.212575-1.79120.038762
33-0.238193-2.0070.024276
34-0.221233-1.86410.033218
35-0.158564-1.33610.092894
36-0.090972-0.76650.222946
37-0.073559-0.61980.268681
38-0.071745-0.60450.273708
39-0.055856-0.47070.319666
40-0.044996-0.37910.352858
41-0.063291-0.53330.297745
42-0.111478-0.93930.175373
43-0.150043-1.26430.105132
44-0.145482-1.22590.112152
45-0.112614-0.94890.172944
46-0.08364-0.70480.241633
47-0.075073-0.63260.264521
48-0.100487-0.84670.199999


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7966826.7130
2-0.14495-1.22140.112994
30.0497850.41950.33806
4-0.05921-0.49890.30969
50.0820480.69130.245801
60.1201581.01250.157377
7-0.051526-0.43420.332742
80.1325331.11670.133935
90.0921860.77680.219936
100.0759180.63970.262215
11-0.091772-0.77330.22096
12-0.249099-2.09890.019689
13-0.056392-0.47520.318063
140.0091670.07720.469324
150.0897520.75630.225997
160.0586190.49390.311439
170.0559330.47130.319437
18-0.058687-0.49450.311239
190.1430591.20540.116018
20-0.281345-2.37070.010237
21-0.079879-0.67310.251543
220.0134890.11370.454915
23-0.001247-0.01050.495821
240.0506260.42660.335487
25-0.001491-0.01260.495005
26-0.069028-0.58160.281325
27-0.100824-0.84960.199212
28-0.034437-0.29020.386265
290.0949640.80020.213139
30-0.041233-0.34740.364645
31-0.080162-0.67550.250791
32-0.014365-0.1210.452
330.0877360.73930.231089
340.0103860.08750.465256
350.0436410.36770.357085
36-0.103324-0.87060.193446
370.0159980.13480.446576
38-0.020906-0.17620.430334
390.0507340.42750.335156
400.0286810.24170.404867
41-0.07081-0.59670.276319
42-0.021268-0.17920.429144
430.0430590.36280.358907
44-0.045688-0.3850.350704
45-0.060442-0.50930.306062
46-0.08589-0.72370.235807
470.0131340.11070.456096
48-0.048011-0.40450.343514
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275817159jzwxti0xyyub7nr/1ost21275817087.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275817159jzwxti0xyyub7nr/1ost21275817087.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/06/t1275817159jzwxti0xyyub7nr/2zksn1275817087.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/06/t1275817159jzwxti0xyyub7nr/2zksn1275817087.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