Home » date » 2007 » Dec » 18 » attachments

Autocorrelation Function - grondstoffen (2)

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 18 Dec 2007 08:15:48 -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/18/t1197989955m4372qo3gr69uxp.htm/, Retrieved Tue, 18 Dec 2007 15:59:17 +0100
 
User-defined keywords:
tijdreeks met outliers
 
Dataseries X:
» Textbox « » Textfile « » CSV «
75.9 77.7 86.9 90.7 91 89.5 92.5 94.1 98.5 96.8 91.2 97.1 104.9 110.9 104.8 94.1 95.8 99.3 101.1 104 99 105.4 107.1 110.7 117.1 118.7 126.5 127.5 134.6 131.8 135.9 142.7 141.7 153.4 145 137.7 148.3 152.2 169.4 168.6 161.1 174.1 179 190.6 190 181.6 174.8 180.5 196.8 193.8 197 216.3 221.4 217.9 229.7 227.4 204.2 196.6 198.8 207.5 190.7 201.6 210.5 223.5 223.8 231.2 244
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.18540
10.9415937.70730
20.8883647.27160
30.8466446.93010
40.8051046.59010
50.7676136.28320
60.7314865.98750
70.7069195.78640
80.6720335.50080
90.6468725.29491e-06
100.6257225.12181e-06
110.5907294.83534e-06
120.5378334.40242e-05
130.4842943.96419.1e-05
140.4404443.60520.000297
150.3893513.1870.001092
160.3297892.69940.004392
170.28122.30170.012233
180.2357631.92980.028933
190.1888531.54580.063428
200.1536891.2580.106379
210.1152990.94380.17434
220.0728050.59590.276613
230.0247080.20220.420168
24-0.021934-0.17950.570973
25-0.061115-0.50020.690729
26-0.103283-0.84540.799555
27-0.136649-1.11850.86633
28-0.17385-1.4230.920315
29-0.208404-1.70590.953667
30-0.234919-1.92290.970627
31-0.261779-2.14280.982115
32-0.280864-2.2990.987684
33-0.303059-2.48060.992184
34-0.324184-2.65360.995031
35-0.341543-2.79560.996624


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9415937.70730
10.0155770.12750.449463
20.0752290.61580.270065
3-0.012476-0.10210.540517
40.0231310.18930.425201
5-0.004579-0.03750.514893
60.0907910.74320.229992
7-0.095176-0.7790.780652
80.0836790.68490.247871
90.0112460.09210.463466
10-0.109156-0.89350.8126
11-0.190174-1.55660.937867
12-0.056482-0.46230.677328
130.0053160.04350.482712
14-0.082819-0.67790.749916
15-0.139901-1.14510.871887
160.0149620.12250.451448
17-0.026187-0.21440.584537
18-0.041237-0.33750.631617
190.0442630.36230.359132
20-0.068533-0.5610.711654
21-0.020217-0.16550.565469
22-0.047363-0.38770.650261
23-0.057836-0.47340.681269
240.0156090.12780.449359
25-0.005226-0.04280.516995
260.0462610.37870.353069
27-0.080054-0.65530.742731
28-0.021593-0.17670.569879
290.0364010.2980.38333
30-0.036092-0.29540.61571
310.0276320.22620.410876
32-0.003725-0.03050.512117
33-0.021009-0.1720.56801
340.0061330.05020.480057
35-0.099348-0.81320.790509
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197989955m4372qo3gr69uxp/1cgh21197990946.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197989955m4372qo3gr69uxp/1cgh21197990946.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197989955m4372qo3gr69uxp/2rlxd1197990946.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/18/t1197989955m4372qo3gr69uxp/2rlxd1197990946.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 36 ; 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