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 06:47:05 -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/t12288305709f6uqer1vzynprf.htm/, Retrieved Tue, 09 Dec 2008 13:49:32 +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/t12288305709f6uqer1vzynprf.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 «
108.9 110.5 111.0 110.7 110.0 111.4 107.7 110.4 110.5 106.4 107.5 108.8 107.1 107.9 107.2 106.3 106.7 105.4 109.4 106.7 105.2 107.0 105.4 106.1 105.8 104.2 102.7 102.7 104.9 102.3 104.0 101.2 102.2 101.4 101.1 97.2 99.7 99.4 98.0 103.1 99.4 100.8 96.4 99.7 100.9 101.3 102.6 105.6 107.2 104.0 108.7 104.9 105.3 105.0 106.1 103.7 102.1 97.2 99.5 102.9
 
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
1-0.436006-3.3490.000709
20.1034840.79490.214936
3-0.027061-0.20790.418026
4-0.02259-0.17350.43142
5-0.01591-0.12220.451574
60.023810.18290.427755
70.0621630.47750.31739
8-0.179426-1.37820.086673
90.1535631.17950.121458
10-0.252314-1.93810.028703
110.3064772.35410.010958
12-0.256298-1.96870.026847
130.0538280.41350.340385
14-0.032518-0.24980.401816
150.0488960.37560.354288
160.0930560.71480.238784
17-0.090399-0.69440.245088
180.0208340.160.436701
19-0.167313-1.28520.10188
200.1986331.52570.066211
21-0.104596-0.80340.212479
220.06470.4970.310527
230.0937690.72030.237107
24-0.212866-1.63510.053681
250.0481810.37010.356323
260.1130690.86850.194319
27-0.066908-0.51390.30461
28-0.060033-0.46110.323204
290.112770.86620.194944
30-0.108747-0.83530.203459
310.0303060.23280.408368
320.1197790.920.180649
33-0.123644-0.94970.173062
340.0210040.16130.436191
35-0.082215-0.63150.265074
360.0925750.71110.239918
37-0.011393-0.08750.465281
38-0.005608-0.04310.482895
39-0.094045-0.72240.23646
400.0689940.530.299067
41-0.064348-0.49430.311476
420.0290430.22310.41212
430.097530.74910.228374
44-0.122511-0.9410.175264
450.0802420.61630.270018
46-0.011375-0.08740.465335
470.0145250.11160.455773
480.0426290.32740.372248
490.0170910.13130.448001
50-0.098852-0.75930.225349
510.0758670.58270.281144
52-0.01341-0.1030.459154
53-0.016106-0.12370.450981
54-0.000123-9e-040.499624
55-0.024979-0.19190.424251
56-0.023128-0.17760.429804
570.019320.14840.441266
580.0185870.14280.443479
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.436006-3.3490.000709
2-0.106948-0.82150.20734
3-0.029659-0.22780.410288
4-0.045153-0.34680.364978
5-0.055984-0.430.334373
6-0.0068-0.05220.47926
70.0899970.69130.24605
8-0.144822-1.11240.13524
90.0127230.09770.461241
10-0.22689-1.74280.043291
110.1548971.18980.119448
12-0.116803-0.89720.186634
13-0.12023-0.92350.179754
14-0.103942-0.79840.213921
150.0360330.27680.39146
160.1477631.1350.130485
17-0.004026-0.03090.487719
18-0.120626-0.92650.178968
19-0.168695-1.29580.10005
200.0165410.12710.449665
210.0670930.51540.304117
22-0.10836-0.83230.204289
230.1738751.33560.093411
24-0.15056-1.15650.126074
25-0.088308-0.67830.250114
260.1024560.7870.217221
27-0.068709-0.52780.299822
28-0.046352-0.3560.36154
290.0083710.06430.474476
300.0018350.01410.4944
31-0.097141-0.74620.229269
320.0845210.64920.259359
330.0307340.23610.407097
34-0.113278-0.87010.193885
35-0.029286-0.2250.411397
36-0.023785-0.18270.427831
37-0.054703-0.42020.33794
38-0.024878-0.19110.424556
39-0.150913-1.15920.125526
400.042380.32550.372967
41-0.078207-0.60070.275163
42-0.008089-0.06210.475334
43-0.049484-0.38010.352619
44-0.013537-0.1040.45877
450.0514450.39520.347076
46-0.03175-0.24390.404085
47-0.001925-0.01480.494127
480.0187710.14420.442923
49-0.016231-0.12470.450605
500.0601350.46190.322923
51-0.034915-0.26820.394746
52-0.081778-0.62810.266166
53-0.004815-0.0370.48531
54-0.013136-0.10090.459986
55-0.051477-0.39540.346986
56-0.042347-0.32530.373062
570.0322820.2480.402512
58-0.081235-0.6240.267525
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288305709f6uqer1vzynprf/1phxu1228830423.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288305709f6uqer1vzynprf/1phxu1228830423.ps (open in new window)


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


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