Home » date » 2007 » Dec » 07 » attachments

Autocorrelation Function 4 d=1 D=0

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 07 Dec 2007 06:59:36 -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/Dec/07/t119703524481r5lljv50sn82q.htm/, Retrieved Fri, 07 Dec 2007 14:47:24 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
107.97 108.13 108.54 109.86 109.75 109.99 112.01 111.96 111.41 112.11 111.67 111.95 112.31 113.26 113.5 114.43 115.02 115.1 117.11 117.52 116.1 116.39 116.01 116.74 116.68 117.45 117.8 119.37 118.9 119.05 120.46 120.99 119.86 120.18 119.81 120.15 119.8 120.27 120.71 121.87 121.87 121.92 123.72 124.38 123.21 123.17 122.95 123.46 123.24 123.86 124.28 124.78 125.19 125.46 127.6 127.8 126.63 127.06 126.77 127.05
 
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
017.68110
1-0.119298-0.91630.818392
2-0.217671-1.6720.950086
30.1235250.94880.173294
40.0072580.05570.477866
5-0.198442-1.52430.933607
6-0.110358-0.84770.799979
7-0.155707-1.1960.881761
80.0144150.11070.456107
90.0372850.28640.387792
10-0.098366-0.75560.773541
11-0.08079-0.62060.731361
120.7000715.37731e-06
13-0.045738-0.35130.636699
14-0.196123-1.50640.931356
150.1190240.91420.182156
160.0415360.3190.375409
17-0.171089-1.31420.903061
18-0.098531-0.75680.773918
19-0.144901-1.1130.86489
200.0080790.06210.475363
210.0535730.41150.341096
22-0.114009-0.87570.807633
23-0.078438-0.60250.725423
240.5042793.87340.000136
25-0.022577-0.17340.568541
26-0.149764-1.15040.872682
270.1178260.9050.184563
280.0077890.05980.476247
29-0.10413-0.79980.786494
30-0.059549-0.45740.675469
31-0.071908-0.55230.708597
32-0.059796-0.45930.676147
330.0114990.08830.46496
34-0.058725-0.45110.673205
35-0.05937-0.4560.674978
360.3501882.68980.004641
370.0009150.0070.497207
38-0.105512-0.81050.789532
390.0671460.51580.303975
40-0.031603-0.24270.595477
41-0.030795-0.23650.593083
42-0.043847-0.33680.631268
43-0.043057-0.33070.628988
44-0.028908-0.2220.587477
450.0064130.04930.480438
46-0.006783-0.05210.520689
47-0.035714-0.27430.607603


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.119298-0.91630.818392
1-0.235251-1.8070.962069
20.0680650.52280.30153
3-0.018795-0.14440.55715
4-0.16957-1.30250.901096
5-0.186277-1.43080.921122
6-0.314759-2.41770.990637
7-0.136659-1.04970.85093
8-0.108604-0.83420.796234
9-0.208951-1.6050.943081
10-0.338847-2.60270.994161
110.5703564.3812.5e-05
120.0881680.67720.250454
130.1084290.83290.204141
14-0.02188-0.16810.566447
150.0585340.44960.32732
160.096950.74470.229709
170.0700480.5380.296284
18-0.003809-0.02930.51162
19-0.019896-0.15280.560471
200.133741.02730.154241
21-0.09943-0.76370.775966
22-0.056109-0.4310.665972
23-0.098698-0.75810.774299
24-0.074131-0.56940.714381
25-0.014333-0.11010.543644
26-0.036391-0.27950.60959
27-0.165757-1.27320.89603
28-0.02703-0.20760.581881
290.0019980.01530.493904
300.1372911.05460.147964
31-0.09451-0.72590.764629
32-0.120904-0.92870.821581
330.007210.05540.478012
340.0993490.76310.224217
350.0801620.61570.270217
36-0.033218-0.25520.600253
370.0393940.30260.381634
38-0.075418-0.57930.717703
39-0.023642-0.18160.571739
40-0.069881-0.53680.703276
41-0.096658-0.74240.769619
42-0.022967-0.17640.569714
430.0920780.70730.241094
440.0457840.35170.363169
450.0452610.34770.364668
460.0080620.06190.475415
47-0.135047-1.03730.848089
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703524481r5lljv50sn82q/1lh231197035971.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703524481r5lljv50sn82q/1lh231197035971.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703524481r5lljv50sn82q/2rfyr1197035971.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703524481r5lljv50sn82q/2rfyr1197035971.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 0 ; 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