Home » date » 2007 » Dec » 07 » attachments

Autocorrelation Function 3 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:34:05 -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/t119703372013mgrr0zp1xt4oz.htm/, Retrieved Fri, 07 Dec 2007 14:22:00 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103.7 103.75 103.85 104.02 104.13 104.17 104.18 104.2 104.5 104.78 104.88 104.89 104.9 104.95 105.24 105.35 105.44 105.46 105.47 105.48 105.75 106.1 106.19 106.23 106.24 106.25 106.35 106.48 106.52 106.55 106.55 106.56 106.89 107.09 107.24 107.28 107.3 107.31 107.47 107.35 107.31 107.32 107.32 107.34 107.53 107.72 107.75 107.79 107.81 107.9 107.8 107.86 107.8 107.74 107.75 107.83 107.8 107.81 107.86 107.83
 
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 time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.68110
10.3371642.58980.006039
2-0.071059-0.54580.706373
3-0.220783-1.69590.952409
4-0.101327-0.77830.780252
50.1124960.86410.195517
60.387992.98020.002089
70.0827130.63530.263835
8-0.218194-1.6760.950483
9-0.22224-1.70710.953465
10-0.090968-0.69870.756269
110.3616062.77750.003666
120.4779863.67150.00026
130.2913562.2380.014506
14-0.103432-0.79450.784948
15-0.196342-1.50810.931571
16-0.11201-0.86040.803465
170.1547431.18860.11968
180.145841.12020.13358
19-0.03642-0.27970.609674
20-0.151991-1.16750.87614
21-0.214471-1.64740.947602
22-0.073163-0.5620.711869
230.1379091.05930.146891
240.2672392.05270.022273
25-0.013273-0.1020.540429
26-0.132082-1.01450.842766
27-0.160084-1.22960.888142
28-0.005503-0.04230.516788
290.0357720.27480.392226
300.0284880.21880.413772
31-0.09032-0.69380.754724
32-0.174814-1.34280.907755
33-0.110715-0.85040.800736
34-0.024118-0.18530.573167
350.0456460.35060.363564
36-0.032535-0.24990.598235
37-0.031564-0.24240.595362
38-0.138718-1.06550.854508
39-0.100032-0.76840.777332
40-0.011007-0.08450.533545
410.0187760.14420.442908
42-0.057948-0.44510.671063
43-0.06426-0.49360.688287
44-0.095986-0.73730.768063
45-0.074943-0.57570.71648
460.0016190.01240.495061
47-0.023309-0.1790.570739


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3371642.58980.006039
1-0.208433-1.6010.942641
2-0.143375-1.10130.862377
30.0237380.18230.427972
40.1204140.92490.179387
50.3185792.44710.0087
6-0.201499-1.54770.936484
7-0.148451-1.14030.870611
80.0258810.19880.421553
9-0.030697-0.23580.592793
100.427093.28050.000871
110.1142920.87790.191782
120.2053441.57730.060039
13-0.053251-0.4090.657999
14-0.076724-0.58930.721055
150.0241590.18560.426709
16-0.136205-1.04620.850135
17-0.105471-0.81010.789441
18-0.115161-0.88460.81001
190.1183110.90880.183587
200.0192710.1480.441414
21-0.105004-0.80660.788418
22-0.064096-0.49230.687845
23-0.030018-0.23060.590779
24-0.213678-1.64130.946972
25-0.076294-0.5860.719954
260.0112280.08620.465783
270.1144380.8790.19148
28-0.036382-0.27950.609563
29-0.053217-0.40880.657906
300.0757330.58170.281487
31-0.069327-0.53250.701814
320.0045310.03480.486176
33-0.048706-0.37410.64517
34-0.056684-0.43540.66757
35-0.024495-0.18810.574296
360.0447280.34360.366198
370.0481020.36950.356546
38-0.085383-0.65580.742762
39-0.024547-0.18850.574452
40-0.050481-0.38780.650204
410.0326720.2510.401359
420.0343410.26380.396435
43-0.117801-0.90480.815387
440.0416340.31980.375125
45-0.012505-0.09610.538098
460.0004480.00340.498632
47-0.070866-0.54430.705868
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703372013mgrr0zp1xt4oz/1hpkj1197034438.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703372013mgrr0zp1xt4oz/1hpkj1197034438.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703372013mgrr0zp1xt4oz/2dbth1197034438.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t119703372013mgrr0zp1xt4oz/2dbth1197034438.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