Home » date » 2008 » Dec » 21 »

*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, 21 Dec 2008 10:25:45 -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/21/t1229880384twtyqsqeggmkptm.htm/, Retrieved Sun, 21 Dec 2008 18:26:26 +0100
 
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/21/t1229880384twtyqsqeggmkptm.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},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106.7 101.1 97.8 113.8 107.1 117.5 113.7 106.6 109.8 108.8 102.0 114.5 116.5 108.6 113.9 109.3 112.5 123.4 115.2 110.8 120.4 117.6 111.2 131.1 118.9 115.7 119.6 113.1 106.4 115.5 111.8 109.6 121.5 109.5 109.0 113.4 112.7 114.4 109.2 116.2 113.8 123.6 112.6 117.7 113.3 110.7 114.7 116.9 120.6 111.6 111.9 116.1 111.9 125.1 115.1 116.7 115.8 116.8 113.0 106.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.1793871.38950.084903
20.1527561.18320.12069
30.2505611.94080.02849
4-0.067615-0.52370.301193
50.0440910.34150.36695
60.287452.22660.014871
70.0450960.34930.364038
8-0.008063-0.06250.475203
90.2400521.85940.033935
10-0.196806-1.52450.066325
11-0.10115-0.78350.218207
120.1365531.05770.147209
13-0.215849-1.6720.04987
14-0.028489-0.22070.413047
15-0.045306-0.35090.363432
16-0.165213-1.27970.102783
17-0.09799-0.7590.225403
180.0774020.59960.275531
19-0.175125-1.35650.090009
20-0.017651-0.13670.445852
21-0.009642-0.07470.470356
22-0.230301-1.78390.039748
23-0.069058-0.53490.29734
240.0630280.48820.313588
25-0.021341-0.16530.434628
260.0337840.26170.397228
270.0858390.66490.254329
280.0337120.26110.397443
290.0652280.50530.307616
300.1170960.9070.184011
310.0349730.27090.393699
320.0477310.36970.356445
330.0122760.09510.46228
340.023750.1840.427329
35-0.019614-0.15190.439876
360.0575860.44610.32858
37-0.019458-0.15070.440351
38-0.072672-0.56290.287796
39-0.128706-0.9970.161395
40-0.08561-0.66310.254893
41-0.08575-0.66420.254549
42-0.046974-0.36390.35862
43-0.045621-0.35340.362521
44-0.049341-0.38220.351834
45-0.053599-0.41520.339746
46-0.119335-0.92440.179499
47-0.100029-0.77480.220745
480.0058280.04510.48207
49-0.010394-0.08050.46805
500.011660.09030.464167
51-0.082168-0.63650.263446
52-0.056391-0.43680.331912
53-0.088404-0.68480.248061
54-0.056389-0.43680.331917
55-0.029167-0.22590.411013
56-0.025791-0.19980.421166
570.0482690.37390.354901
580.0464110.35950.360241
590.024490.18970.425093
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1793871.38950.084903
20.1245850.9650.169201
30.2143411.66030.051038
4-0.167885-1.30040.099214
50.0257660.19960.421242
60.2830372.19240.01612
70.0071480.05540.478016
8-0.144912-1.12250.133064
90.1770931.37180.087623
10-0.21665-1.67820.049259
11-0.091519-0.70890.240564
120.104460.80910.210814
13-0.153599-1.18980.119411
14-0.002369-0.01840.49271
15-0.167975-1.30110.099094
160.0618160.47880.316901
17-0.005186-0.04020.484045
180.0400710.31040.37867
19-0.057351-0.44420.329234
200.0594570.46060.323392
21-0.107828-0.83520.20345
22-0.031853-0.24670.402978
23-0.079126-0.61290.271126
240.1637571.26850.104767
250.0551940.42750.335262
26-0.093481-0.72410.235908
270.0507190.39290.347906
280.2015611.56130.061858
290.0064650.05010.480115
30-0.053227-0.41230.340797
310.0839910.65060.258898
32-0.069499-0.53830.296169
33-0.130169-1.00830.158684
34-0.000691-0.00540.497873
350.0264430.20480.4192
36-0.046232-0.35810.360759
37-0.144149-1.11660.134314
38-0.060658-0.46990.320082
39-0.063456-0.49150.312424
40-0.002755-0.02130.491522
410.0167610.12980.448567
420.0166210.12870.448995
43-0.041986-0.32520.373073
440.0622570.48220.315694
45-0.017718-0.13720.445648
46-0.058012-0.44940.327395
470.0618230.47890.316881
480.0669050.51820.303097
49-0.033668-0.26080.397572
500.039930.30930.379083
51-0.094874-0.73490.232634
52-0.042177-0.32670.372514
53-0.045013-0.34870.364278
54-0.114025-0.88320.190317
55-0.035517-0.27510.392088
56-0.091903-0.71190.23965
570.1077150.83440.203695
580.0492170.38120.352189
59-0.036851-0.28540.388142
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229880384twtyqsqeggmkptm/18gma1229880342.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229880384twtyqsqeggmkptm/18gma1229880342.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229880384twtyqsqeggmkptm/2n7hd1229880342.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229880384twtyqsqeggmkptm/2n7hd1229880342.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