Home » date » 2007 » Nov » 29 » attachments

Inducing stationarity in time series

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 04:31:42 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/29/t1196335312lruym1wpmyub0sr.htm/, Retrieved Thu, 29 Nov 2007 12:21:52 +0100
 
User-defined keywords:
s0650668 tijdreeks 4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.51 0.51 0.51 0.51 0.51 0.51 0.51 0.51 0.5 0.51 0.51 0.5 0.51 0.51 0.51 0.51 0.52 0.52 0.52 0.53 0.53 0.52 0.52 0.52 0.52 0.52 0.52 0.52 0.52 0.52 0.52 0.53 0.53 0.53 0.54 0.54 0.54 0.54 0.54 0.54 0.54 0.54 0.54 0.54 0.53 0.53 0.53 0.53 0.53 0.54 0.55 0.55 0.55 0.55 0.55 0.55 0.55 0.55 0.56 0.56 0.56 0.56 0.56 0.55 0.56 0.55 0.55 0.56 0.55 0.55 0.55 0.55
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.42610
1-0.237896-2.00460.975587
2-0.125555-1.05790.853167
30.3243452.7330.003958
4-0.129082-1.08770.859789
5-0.182351-1.53650.935572
6-0.01375-0.11590.545954
70.0391620.330.371191
8-0.073536-0.61960.731257
90.0388050.3270.372324
10-0.073893-0.62260.732241
11-0.077242-0.65080.741378
12-0.017991-0.15160.560031
13-0.130689-1.10120.862737
14-0.071438-0.60190.725437
150.1534231.29280.100142
16-0.012366-0.10420.541346
170.0437160.36840.356853
180.0997970.84090.201613
190.1027880.86610.194675
20-0.12243-1.03160.847123
210.0430010.36230.359089
220.1022520.86160.195906
23-0.119796-1.00940.8419
240.1050650.88530.189494
25-0.007634-0.06430.525553
26-0.064072-0.53990.704516
270.0482690.40670.342718
28-0.123859-1.04370.849907
29-0.124037-1.04520.850252
300.1008240.84960.199214
31-0.008705-0.07340.529133
32-0.121404-1.0230.845101
330.2159771.81990.036498
34-0.062331-0.52520.699464
35-0.06251-0.52670.699984
360.1060910.89390.187187
37-0.062867-0.52970.701023
38-0.003616-0.03050.512111
39-0.003795-0.0320.512709
400.0522870.44060.330429
41-0.000982-0.00830.50329
420.0550990.46430.321936
43-0.057599-0.48530.685535
44-0.004687-0.03950.515697
450.0513940.43310.333144
46-0.061304-0.51660.696466
47-0.061483-0.51810.696988


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.237896-2.00460.975587
1-0.193077-1.62690.945905
20.2673062.25240.013696
3-0.005796-0.04880.519407
4-0.168237-1.41760.919657
5-0.232944-1.96280.973207
6-0.00509-0.04290.517044
70.0323230.27240.393067
80.0888240.74840.228333
9-0.172509-1.45360.924766
10-0.213755-1.80110.962036
11-0.168174-1.41710.919581
12-0.132319-1.11490.865682
13-0.133556-1.12540.867888
140.0726710.61230.271134
150.006630.05590.477804
160.0368950.31090.378401
17-0.075583-0.63690.736872
180.0921690.77660.219979
19-0.095404-0.80390.787928
200.0272460.22960.409539
210.044060.37130.355776
220.0041360.03480.486149
230.0521790.43970.330755
24-0.052771-0.44470.671038
25-0.085273-0.71850.762604
260.0328980.27720.391213
27-0.05582-0.47030.680225
28-0.091068-0.76730.777291
290.0303560.25580.39943
300.0985260.83020.204605
31-0.03885-0.32740.627819
320.1128670.9510.172407
33-0.149902-1.26310.894656
340.011420.09620.461804
350.0007930.00670.497343
360.0216910.18280.427749
37-0.00233-0.01960.507804
38-0.118028-0.99450.838327
39-0.059493-0.50130.691144
40-0.023027-0.1940.576646
410.0968060.81570.208699
42-0.045594-0.38420.649005
430.0067870.05720.477277
440.0204770.17250.431752
450.0314990.26540.39573
46-0.019805-0.16690.566031
470.0049870.0420.483301
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196335312lruym1wpmyub0sr/1piao1196335897.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196335312lruym1wpmyub0sr/1piao1196335897.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196335312lruym1wpmyub0sr/28iik1196335897.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196335312lruym1wpmyub0sr/28iik1196335897.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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 1:par1) {
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(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-1,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(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:

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