Home » date » 2008 » Dec » 07 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 07 Dec 2008 06:39:11 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/07/t1228657228mlhe53zim6g27og.htm/, Retrieved Sun, 07 Dec 2008 13:40:30 +0000
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2008/Dec/07/t1228657228mlhe53zim6g27og.htm/},
    year = {2008},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
132.7 128.6 127.8 128.9 124.6 129.2 130.5 124.3 125.8 123.5 120.7 123.1 122.0 121.0 121.2 117.4 113.0 113.1 116.1 121.3 108.6 114.3 113.5 111.2 109.3 108.2 102.7 110.4 108.1 112.8 108.1 102.6 109.2 108.2 107.1 108.4 103.6 104.0 111.5 105.4 105.5 101.3 103.8 100.3 108.2 105.6 103.0 100.5 104.3 99.1 91.5
 
Output produced by software:


Summary of computational 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
10.8044715.74510
20.7382425.27211e-06
30.7100965.07113e-06
40.6513194.65131.2e-05
50.619484.4242.6e-05
60.5839634.17035.9e-05
70.5102653.6440.000314
80.464973.32050.000833
90.4069512.90620.0027
100.363432.59540.006154
110.3138172.24110.0147
120.2186911.56180.062264
130.225651.61150.056625
140.1645971.17550.122635
150.1116970.79770.214378
160.0923730.65970.256216
170.0449650.32110.374719
180.0051470.03680.48541
190.01190.0850.466303
20-0.091769-0.65540.257591
21-0.093305-0.66630.2541
22-0.123905-0.88490.190192
23-0.145988-1.04260.151033
24-0.156187-1.11540.134954
25-0.206513-1.47480.073207
26-0.22194-1.5850.059577
27-0.22035-1.57360.06088
28-0.274874-1.9630.027556
29-0.263034-1.87840.033021
30-0.281804-2.01250.024732
31-0.340031-2.42830.009368
32-0.288448-2.05990.022263
33-0.293477-2.09580.020539
34-0.319412-2.28110.013377
35-0.344581-2.46080.008644
36-0.362315-2.58740.006281
37-0.344751-2.4620.008618
38-0.326853-2.33420.011781
39-0.33618-2.40080.010022
40-0.326294-2.33020.011895
41-0.331575-2.36790.010859
42-0.303267-2.16580.017515
43-0.281578-2.01090.02482
44-0.259583-1.85380.034778
45-0.235524-1.6820.049344
46-0.206652-1.47580.073074
47-0.194239-1.38710.085715
48-0.14827-1.05890.147326
49-0.128926-0.92070.180766
50-0.090399-0.64560.260723
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8044715.74510
20.2581111.84330.035552
30.1878081.34120.092896
40.0095990.06850.472809
50.0576790.41190.341066
60.0141430.1010.459973
7-0.109171-0.77960.219604
8-0.030682-0.21910.413719
9-0.073099-0.5220.301955
10-0.004637-0.03310.486855
11-0.04804-0.34310.366475
12-0.177268-1.2660.105642
130.1608641.14880.127999
14-0.092776-0.66260.255301
15-0.018524-0.13230.447639
160.0107320.07660.469605
17-0.030148-0.21530.415196
18-0.009311-0.06650.473622
190.060970.43540.33255
20-0.251357-1.7950.039287
210.0990460.70730.24129
22-0.070331-0.50230.308822
230.0490920.35060.36367
24-0.049612-0.35430.362286
25-0.066404-0.47420.318684
260.0141140.10080.460054
270.0167880.11990.452521
28-0.135121-0.9650.16956
290.0773590.55250.291525
30-0.087169-0.62250.26819
31-0.061945-0.44240.330044
320.0682960.48770.313915
330.0568230.40580.343295
34-0.10767-0.76890.222745
35-0.110425-0.78860.217
36-0.047239-0.33740.368618
370.0699550.49960.309761
38-0.001389-0.00990.496062
390.0355430.25380.400324
40-0.138392-0.98830.163831
410.1009370.72080.23715
42-0.002172-0.01550.493843
43-0.037061-0.26470.396167
440.1398290.99860.161357
45-0.049808-0.35570.361767
460.0002620.00190.499258
470.0326930.23350.408165
48-0.042427-0.3030.381565
490.0768420.54880.292783
500.0493430.35240.363003
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228657228mlhe53zim6g27og/1mp0b1228657150.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228657228mlhe53zim6g27og/1mp0b1228657150.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228657228mlhe53zim6g27og/2flcc1228657150.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228657228mlhe53zim6g27og/2flcc1228657150.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 0.2 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 0.2 ; 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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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