Home » date » 2010 » May » 03 »

Autocorrelation Function (financiele situatie van de gezinnen)

*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, 03 May 2010 20:12:20 +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/May/03/t12729176120d02ytqyo3m8h6a.htm/, Retrieved Mon, 03 May 2010 22:13:34 +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/May/03/t12729176120d02ytqyo3m8h6a.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 «
1 1 3 3 1 1 -2 1 1 -1 -4 -2 -1 -5 -4 -5 0 -2 -4 -6 -2 -2 -2 1 -2 0 -1 2 3 2 3 4 5 5 4 5 6 4 6 6 3 5 5 5 3 5 5 6 6 5 4 4 0 2 3 3 2 3 5 6 6 5 4 7 5 6 5 6 5 6 6 6 6
 
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
10.8453137.22240
20.7896776.7470
30.7523926.42840
40.7547276.44840
50.7022966.00040
60.6144685.251e-06
70.5555584.74675e-06
80.4999214.27132.9e-05
90.4747294.05616.2e-05
100.3715353.17440.001099
110.3284332.80610.003212
120.278192.37690.010042
130.2103921.79760.038189
140.1380831.17980.120958
150.0967280.82640.205623
160.0501310.42830.334839
17-0.024145-0.20630.418567
18-0.01969-0.16820.433433
19-0.060825-0.51970.302426
20-0.065105-0.55630.289869
21-0.083224-0.71110.239654
22-0.089404-0.76390.223705
23-0.112917-0.96480.168925
24-0.11087-0.94730.173312
25-0.108603-0.92790.178258
26-0.118937-1.01620.156445
27-0.115432-0.98630.163633
28-0.128972-1.10190.137054
29-0.126926-1.08450.140866
30-0.107036-0.91450.181728
31-0.090353-0.7720.221311
32-0.121447-1.03760.15143
33-0.103525-0.88450.18966
34-0.107601-0.91930.180471
35-0.131996-1.12780.131553
36-0.142043-1.21360.114404
37-0.144372-1.23350.110671
38-0.149466-1.2770.102818
39-0.16767-1.43260.078124
40-0.18908-1.61550.055258
41-0.224398-1.91730.02956
42-0.210919-1.80210.037829
43-0.225189-1.9240.029126
44-0.261015-2.23010.014407
45-0.292398-2.49830.007366
46-0.28489-2.43410.008688
47-0.281385-2.40420.009374
48-0.307815-2.630.005204


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8453137.22240
20.2631752.24860.013779
30.1433241.22460.112338
40.2151951.83860.035019
5-0.057945-0.49510.311013
6-0.213045-1.82030.03641
7-0.082444-0.70440.241712
8-0.101645-0.86850.193995
90.0571830.48860.313303
10-0.194957-1.66570.050029
110.063140.53950.295601
120.0129920.1110.45596
13-0.151642-1.29560.099593
14-0.065692-0.56130.288167
150.0651690.55680.289681
16-0.064306-0.54940.292194
17-0.115565-0.98740.163357
180.2542372.17220.016544
190.0114350.09770.461218
200.0307180.26250.396856
210.1048260.89560.186696
220.0380410.3250.373048
23-0.158824-1.3570.089483
24-0.018426-0.15740.437671
250.0483730.41330.340301
26-0.044645-0.38140.351991
27-0.114517-0.97840.165545
280.0630610.53880.295833
29-0.02168-0.18520.426779
30-0.033703-0.2880.387099
310.0567020.48450.314756
32-0.079602-0.68010.249291
33-0.003268-0.02790.488901
34-0.098745-0.84370.200804
35-0.076064-0.64990.258901
36-0.025541-0.21820.413932
370.0368920.31520.376754
380.0163030.13930.444802
390.0016250.01390.49448
40-0.080842-0.69070.245967
41-0.079278-0.67740.250161
420.0181830.15540.438485
43-0.034491-0.29470.384532
44-0.074172-0.63370.26412
45-0.057575-0.49190.312127
460.0746660.63790.262752
470.1043960.8920.187673
48-0.081675-0.69780.24375
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t12729176120d02ytqyo3m8h6a/1sf2u1272917538.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t12729176120d02ytqyo3m8h6a/1sf2u1272917538.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t12729176120d02ytqyo3m8h6a/2sf2u1272917538.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t12729176120d02ytqyo3m8h6a/2sf2u1272917538.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