Home » date » 2008 » Dec » 02 »

nsts Q8

*The author of this computation has been verified*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 02 Dec 2008 12:48:42 -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/02/t1228247377w2gycht35ndv3m0.htm/, Retrieved Tue, 02 Dec 2008 19:49:39 +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/02/t1228247377w2gycht35ndv3m0.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 «
109.57 107.08 110.33 110.36 106.5 104.3 107.21 109.34 108.2 109.86 108.68 113.38 117.12 116.23 114.75 115.81 115.86 117.8 117.11 116.31 118.38 121.57 121.65 124.2 126.12 128.6 128.16 130.12 135.83 138.05 134.99 132.38 128.94 128.12 127.84 132.43 134.13 134.78 133.13 129.08 134.48 132.86 134.08 134.54 134.51 135.97 136.09 139.14 135.63 136.55 138.83 138.84 135.37 132.22 134.75 135.98 136.06 138.05 139.59 140.58
 
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.0465380.35750.361009
2-0.187322-1.43880.077739
3-0.147004-1.12920.1317
40.0019860.01530.493941
50.0715490.54960.292342
6-0.136628-1.04950.149123
70.0515430.39590.346799
8-0.091914-0.7060.241482
90.0642660.49360.311697
10-0.06536-0.5020.308755
11-0.09732-0.74750.228856
120.0834260.64080.262065
13-0.046323-0.35580.361624
140.1269870.97540.166671
150.0223770.17190.43206
16-0.040631-0.31210.378035
170.0367620.28240.389322
18-0.016215-0.12460.45065
19-0.006553-0.05030.480013
20-0.107151-0.8230.206899
21-0.004312-0.03310.486845
220.1251220.96110.170218
23-0.019571-0.15030.44051
24-0.19213-1.47580.07266
25-0.074166-0.56970.285529
260.0800470.61490.270509
27-0.106908-0.82120.207426
28-0.043998-0.3380.368298
290.1372791.05450.147986
30-0.01081-0.0830.467052
31-0.03112-0.2390.405951
32-0.132588-1.01840.156317
330.0728840.55980.288856
340.1421341.09180.13969
350.0278990.21430.415527
36-0.076294-0.5860.280046


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0465380.35750.361009
2-0.189899-1.45860.074984
3-0.132862-1.02050.155821
4-0.022853-0.17550.430628
50.0215510.16550.434545
6-0.172119-1.32210.095624
70.0812280.62390.267542
8-0.153955-1.18260.120866
90.0663410.50960.306124
10-0.123734-0.95040.172889
11-0.083987-0.64510.260676
120.0386350.29680.383845
13-0.090641-0.69620.244511
140.0942310.72380.236023
150.0405720.31160.378208
16-0.067793-0.52070.302253
170.0949340.72920.234381
18-0.024608-0.1890.425363
19-0.047123-0.3620.359339
20-0.034089-0.26180.397178
21-0.06374-0.48960.313118
220.135151.03810.151728
23-0.064258-0.49360.31172
24-0.211262-1.62270.054989
250.0496290.38120.352209
26-0.081385-0.62510.267148
27-0.223247-1.71480.045816
280.0156340.12010.452411
290.0237720.18260.42787
30-0.128399-0.98630.164018
31-0.036781-0.28250.389267
32-0.201717-1.54940.063315
330.0887230.68150.249112
340.0236390.18160.428269
35-0.071473-0.5490.292541
36-0.017317-0.1330.447318
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/02/t1228247377w2gycht35ndv3m0/144eh1228247321.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/02/t1228247377w2gycht35ndv3m0/144eh1228247321.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/02/t1228247377w2gycht35ndv3m0/299om1228247321.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/02/t1228247377w2gycht35ndv3m0/299om1228247321.ps (open in new window)


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