Home » date » 2007 » Dec » 06 » attachments

Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 06 Dec 2007 08:45:56 -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/06/t1196955266kjft48tzncs8q9z.htm/, Retrieved Thu, 06 Dec 2007 16:34:29 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3.926 3.517 4.142 4.353 5.029 4.755 3.862 4.406 4.567 4.863 4.121 3.626 3.804 3.491 4.151 4.254 4.717 4.866 4.001 3.758 4.78 5.016 4.296 4.467 3.891 3.872 3.867 3.973 4.64 4.538 3.836 3.77 4.374 4.497 3.945 3.862 3.608 3.301 3.882 3.605 4.305 4.216 3.971 3.988 4.317 4.484 4.247 3.52 3.687 3.405 3.99 4.047 4.549 4.559 3.926 4.206 4.517 4.387 3.219 3.129
 
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
016.85570
1-0.490556-3.36310.99923
20.0413570.28350.389007
30.0994050.68150.249453
4-0.1563-1.07150.855301
50.1056620.72440.236211
6-0.088792-0.60870.727182
7-0.015336-0.10510.541643
80.1730291.18620.120747
9-0.200536-1.37480.912145
100.0456980.31330.377724
110.1499071.02770.154673
12-0.281481-1.92970.970156
130.1908791.30860.098517
14-0.059214-0.4060.656689
150.0637820.43730.331959
16-0.17905-1.22750.887127
170.0387870.26590.395736
180.0838020.57450.28418
19-0.069089-0.47370.68103
20-0.054232-0.37180.644143
210.1656461.13560.130939
22-0.135923-0.93180.821909
230.1336630.91630.182082
24-0.193566-1.3270.904544
250.1411010.96730.169163
260.0762950.52310.301698
27-0.257544-1.76560.958023
280.2364521.6210.055851
29-0.048445-0.33210.629364
30-0.040197-0.27560.607959
310.0593730.4070.342913
320.0397390.27240.393239
33-0.035711-0.24480.59617
340.0496870.34060.367447
35-0.097731-0.670.746934
360.0345710.2370.406842
37-0.045278-0.31040.621189
38-0.057046-0.39110.65125
390.1761811.20780.116577
40-0.09832-0.6740.748209
41-0.048772-0.33440.630204
420.074870.51330.30508
43-0.007387-0.05060.520088
44-0.019011-0.13030.55157
45-0.009709-0.06660.526394
460.0093420.0640.474602
47NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.490556-3.36310.99923
1-0.262444-1.79920.960798
2-0.005269-0.03610.514332
3-0.121914-0.83580.796251
4-0.02624-0.17990.570994
5-0.097783-0.67040.747048
6-0.117199-0.80350.787127
70.1188220.81460.209704
8-0.050061-0.34320.633511
9-0.109598-0.75140.771911
100.1152150.78990.216784
11-0.159527-1.09370.860161
12-0.058711-0.40250.655431
13-0.020215-0.13860.554815
140.1070560.73390.233315
15-0.265003-1.81680.962184
16-0.165314-1.13330.868589
17-0.046671-0.320.624792
18-0.075667-0.51870.696814
19-0.145352-0.99650.83794
200.0341450.23410.407968
21-0.130467-0.89440.812177
220.0909270.62340.268029
23-0.197537-1.35420.908933
24-0.03735-0.25610.600488
250.06990.47920.317005
26-0.108997-0.74720.770682
27-0.141821-0.97230.832054
280.0110990.07610.469835
290.0397010.27220.393339
30-0.039117-0.26820.605129
310.0668320.45820.32447
320.0622870.4270.335659
330.0227980.15630.438234
340.0892340.61180.271824
35-0.214903-1.47330.926332
36-0.065807-0.45120.673022
37-0.069905-0.47920.683007
380.0632360.43350.333309
39-0.092731-0.63570.735984
40-0.038527-0.26410.603583
410.0053640.03680.485412
42-0.01123-0.0770.530519
430.0039720.02720.489197
440.0786750.53940.29609
45-0.012353-0.08470.533565
46NANANA
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196955266kjft48tzncs8q9z/1d6eu1196955953.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196955266kjft48tzncs8q9z/1d6eu1196955953.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196955266kjft48tzncs8q9z/2f41b1196955953.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196955266kjft48tzncs8q9z/2f41b1196955953.ps (open in new window)


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