Home » date » 2008 » Dec » 09 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 09 Dec 2008 10:52:41 -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/09/t12288452006kmzszm0osovcff.htm/, Retrieved Tue, 09 Dec 2008 17:53:22 +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/09/t12288452006kmzszm0osovcff.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 «
106,7 110,2 125,9 100,1 106,4 114,8 81,3 87 104,2 108 105 94,5 92 95,9 108,8 103,4 102,1 110,1 83,2 82,7 106,8 113,7 102,5 96,6 92,1 95,6 102,3 98,6 98,2 104,5 84 73,8 103,9 106 97,2 102,6 89 93,8 116,7 106,8 98,5 118,7 90 91,9 113,3 113,1 104,1 108,7 96,7 101 116,9 105,8 99 129,4 83 88,9 115,9 104,2 113,4 112,2 100,8 107,3 126,6 102,9 117,9 128,8 87,5 93,8 122,7 126,2 124,6 116,7 115,2 111,1 129,9 113,3 118,5 137,9 103,6 101,7 127,4 137,5 128,3 118,2 117,1 124,2 126 132,1
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.35753.35370.000589
20.0863450.810.210066
30.3702813.47350.000399
40.2153422.02010.023208
50.3198843.00080.001752
60.5417095.08171e-06
70.258032.42050.008776
80.1526771.43220.077809
90.2678692.51280.006899
100.0171980.16130.4361
110.2098261.96830.026088
120.6534346.12980
130.1974431.85220.033676
14-0.05432-0.50960.305814
150.1740951.63320.053005
160.0491450.4610.322959
170.1323141.24120.108912
180.3203433.00510.001729
190.101410.95130.172026
200.0095340.08940.46447
210.1040850.97640.165771
22-0.107775-1.0110.15739
230.0787510.73870.231013
240.3818673.58220.000279
250.0397190.37260.355173
26-0.136183-1.27750.102392
270.0005440.00510.49797
28-0.093079-0.87320.192476
29-0.030552-0.28660.387545
300.1102981.03470.151826
31-0.041039-0.3850.35059
32-0.107769-1.0110.157404
33-0.061419-0.57620.282989
34-0.196884-1.84690.034059
35-0.080185-0.75220.226969
360.2001341.87740.031887
37-0.060262-0.56530.28665
38-0.215584-2.02240.023088
39-0.098298-0.92210.179496
40-0.167647-1.57270.059692
41-0.117267-1.10010.137153
420.0020510.01920.492347
43-0.101906-0.9560.170855
44-0.160271-1.50350.068149
45-0.153847-1.44320.076256
46-0.259593-2.43520.008451
47-0.151735-1.42340.079077
480.0768330.72080.236485
49-0.12803-1.2010.116481
50-0.288592-2.70720.004075
51-0.18606-1.74540.042203
52-0.218774-2.05230.021557
53-0.180188-1.69030.047253
54-0.09919-0.93050.177333
55-0.161781-1.51760.066345
56-0.197187-1.84980.033851
57-0.164288-1.54120.063434
58-0.232729-2.18320.015842
59-0.141027-1.3230.094639
600.0359310.33710.368437


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.35753.35370.000589
2-0.047537-0.44590.328369
30.4078733.82620.000121
4-0.081366-0.76330.223668
50.4152053.8959.5e-05
60.2648662.48470.00743
70.0477850.44830.327531
80.0167240.15690.437849
9-0.03714-0.34840.364183
10-0.345897-3.24480.000831
110.1612991.51310.066916
120.4398124.12584.2e-05
13-0.160266-1.50340.068154
14-0.137771-1.29240.0998
15-0.120391-1.12940.130905
16-0.086092-0.80760.210745
17-0.074784-0.70150.24241
18-0.067571-0.63390.263905
190.1110811.0420.150125
200.0236250.22160.412559
210.0588740.55230.291077
22-0.073497-0.68950.246173
230.1176871.1040.136301
24-0.123462-1.15820.124962
25-0.006659-0.06250.475166
26-0.054042-0.5070.306727
27-0.069527-0.65220.257981
28-0.066055-0.61960.268546
29-0.093782-0.87980.190694
30-0.044767-0.420.337772
310.0167050.15670.437916
320.0093410.08760.465185
330.0247870.23250.408336
340.0702230.65880.255887
35-0.087397-0.81990.207256
360.1533611.43870.076898
37-0.075619-0.70940.239986
38-0.00183-0.01720.49317
39-0.048361-0.45370.325594
40-0.019495-0.18290.427657
41-0.02409-0.2260.41087
42-0.065374-0.61330.270643
430.0228980.21480.41521
44-0.058007-0.54420.293854
45-0.042614-0.39980.345152
46-0.103008-0.96630.168272
470.0449550.42170.337131
48-0.007449-0.06990.472223
49-0.046819-0.43920.330796
50-0.033923-0.31820.375532
51-0.026604-0.24960.401752
520.0260920.24480.403603
53-0.03163-0.29670.383693
54-0.032345-0.30340.381141
55-0.031721-0.29760.383366
560.0432770.4060.342874
570.0569040.53380.297411
580.1209531.13460.129804
590.0153380.14390.442961
60-0.019055-0.17880.429271
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288452006kmzszm0osovcff/1smem1228845159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288452006kmzszm0osovcff/1smem1228845159.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288452006kmzszm0osovcff/2n4fk1228845159.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288452006kmzszm0osovcff/2n4fk1228845159.ps (open in new window)


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