Home » date » 2007 » Dec » 03 » attachments

Workshop8_q4

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 03 Dec 2007 04:23:43 -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/03/t11966803150dceke74yo1nn97.htm/, Retrieved Mon, 03 Dec 2007 12:11:56 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.57374261731945e-11 -7.78930535948257e-10 -9.9175708985985e-11 -6.17827740269557e-10 2.80917788736100e-10 -1.99763641625773e-10 -5.62280802209156e-10 -3.834963850376e-10 -4.17216827233602e-10 -5.67882584539982e-10 2.58637700997753e-10 -1.90527862999576e-10 -1.71577262349281e-09 -3.35381605481246e-10 -8.96626940018993e-10 -4.10744385478952e-10 -1.49797381174457e-10 -1.15741365009681e-09 4.97758749117844e-10 5.61962186332171e-10 -8.28837144782243e-11 3.00919401758308e-10 -3.56842310474036e-10 -2.65445564649461e-10 1.41088100275876e-09 -1.03460467298531e-10 7.3845130614864e-11 -9.69944238759222e-11 5.131852651389e-10 -7.01634738041197e-10 -1.38560835918767e-10 -7.71959620063928e-10 -7.0799159060927e-10 9.21374878678968e-10 -2.34800895738451e-10 -1.51898308298110e-10 4.14446046879670e-10 1.60789644435293e-10 -5.59704597759589e-10 -1.62599611179260e-10 -2.51259688470892e-10 6.02392608325336e-10 1.40768937817837e-09 8.67663665864935e-10 2.48443566634038e-09 -1.58728692714916e-10 -2.38522160490848e-10 1.69115939544137e-09 4.90955643343371e-09 -4.72645086787659e-11 -8.42090559114202e-10 -9.78841734822696e-10 5.33492432359219e-10 9.43414526915943e-10 3.41369607077995e-10 1.95723637461107e-10 3.00517747585271e-10 -9.1302653563983e-10 -8.67566852412382e-10 5.08551441993418e-10 -4.81913846464095e-09 8.72479910544946e-10 4.49296782533904e-10 5.3731256719039e-10 -7.49441166608007e-10 7.73568132392035e-10 1.67536877808481e-10 2.03569599537960e-09 5.86636632995461e-11 -6.17168126334066e-10 -3.4433140227747e-10 -8.6322485209947e-10 -3.25333745267874e-09 3.08292515576174e-10 1.19026377148694e-09 9.77788786184594e-10 -4.57474202748115e-11 -1.02595722322947e-10 -9.7138521570781e-10 1.17167162511307e-09 -1.15353929661592e-09 -8.03674125843833e-10 6.27537221374364e-10 -8.74606140260688e-10 1.5572731935976e-09
 
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 time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
019.21950
10.0660990.60940.271941
2-0.010079-0.09290.53691
3-0.028989-0.26730.605042
40.0715070.65930.255754
50.0381190.35140.363063
60.0981640.9050.184005
7-0.154543-1.42480.921064
80.0627620.57860.282183
90.0763350.70380.241747
10-0.072872-0.67180.748249
110.0926280.8540.197756
12-0.067192-0.61950.731371
13-0.124536-1.14820.87294
140.0333210.30720.37972
150.0208280.1920.424091
16-0.245766-2.26590.986999
17-0.025781-0.23770.593654
18-0.005281-0.04870.51936
190.0256980.23690.406642
200.1696291.56390.060778
210.0509990.47020.319714
22-0.008885-0.08190.532548
230.0998790.92080.179871
24-0.1978-1.82360.964138
25-0.042506-0.39190.65194
260.0915190.84380.200584
27-0.065576-0.60460.726465
28-0.048847-0.45030.673196
290.0170340.1570.437791
30-0.090578-0.83510.796996
310.0271340.25020.401533
32-0.067278-0.62030.731632
33-0.081947-0.75550.773984
34-0.03404-0.31380.622791
35-0.072783-0.6710.747989
36-0.185372-1.7090.954454
370.0294720.27170.393248
380.0137730.1270.449629
39-0.099278-0.91530.818687
400.0261010.24060.405208
41-0.039081-0.36030.640246
42-0.027219-0.25090.598769
430.0902460.8320.203862
44-0.026961-0.24860.597852
45-0.033805-0.31170.621973
460.0337530.31120.378209
47-0.047284-0.43590.668005
480.035720.32930.37136
490.0476730.43950.330699
50-0.038413-0.35420.637949
510.0335860.30960.378795
520.0009060.00840.496676
53-0.057825-0.53310.70233
54-0.00203-0.01870.507443
550.0310010.28580.387859
56-0.005853-0.0540.521456
570.0395680.36480.358083
580.0272410.25110.401153
590.0143380.13220.447574


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0660990.60940.271941
1-0.014512-0.13380.553059
2-0.027479-0.25330.599694
30.0755310.69640.244052
40.0278510.25680.398988
50.0954890.88040.190573
6-0.16543-1.52520.934538
70.0889080.81970.207341
80.0636980.58730.279291
9-0.112189-1.03430.848043
100.140971.29970.098612
11-0.10875-1.00260.840556
12-0.100219-0.9240.820942
130.0397270.36630.357538
14-0.004402-0.04060.516138
15-0.234165-2.15890.983161
16-0.014399-0.13270.552647
170.0730390.67340.251265
18-0.028185-0.25990.602198
190.1783981.64470.051858
200.1165921.07490.142724
21-0.005303-0.04890.519438
220.0522680.48190.315562
23-0.214932-1.98160.974621
24-0.021196-0.19540.577234
250.0215420.19860.421523
26-0.041669-0.38420.649092
27-0.042502-0.39180.651924
28-0.057461-0.52980.701172
29-0.021453-0.19780.578159
30-0.045315-0.41780.661422
31-0.111995-1.03250.847627
320.0388060.35780.360701
33-0.072546-0.66880.747297
34-0.036462-0.33620.631213
35-0.08161-0.75240.773059
360.0383920.3540.362122
370.0653170.60220.274323
38-0.098504-0.90820.816819
39-0.047774-0.44050.669636
40-0.107821-0.99410.838492
41-0.019828-0.18280.572306
420.068910.63530.263463
43-0.01009-0.0930.536948
440.0455180.41970.337899
45-0.060764-0.56020.711598
460.0054860.05060.479891
47-0.067658-0.62380.732779
48-0.039701-0.3660.642372
490.0906680.83590.202772
50-0.038226-0.35240.637304
51-0.08321-0.76720.777443
52-0.023132-0.21330.584183
53-0.007476-0.06890.527394
540.0605950.55870.288933
550.0009640.00890.496463
560.027970.25790.398565
57-0.008244-0.0760.530203
580.0475630.43850.331066
59-0.009167-0.08450.533577
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/03/t11966803150dceke74yo1nn97/1gvxr1196681018.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/03/t11966803150dceke74yo1nn97/1gvxr1196681018.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/03/t11966803150dceke74yo1nn97/2aaxp1196681018.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/03/t11966803150dceke74yo1nn97/2aaxp1196681018.ps (open in new window)


 
Parameters:
par1 = 60 ; 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