Home » date » 2008 » Dec » 15 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 15 Dec 2008 08:56: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/15/t12293566992spnjfix4wboooh.htm/, Retrieved Mon, 15 Dec 2008 16:58:22 +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/15/t12293566992spnjfix4wboooh.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 «
118.3 127.3 112.3 114.9 108.2 105.4 122.1 113.5 110 125.3 114.3 115.6 127.1 123 122.2 126.4 112.7 105.8 120.9 116.3 115.7 127.9 108.3 121.1 128.6 123.1 127.7 126.6 118.4 110 129.6 115.8 125.9 128.4 114 125.6 128.5 136.6 133.1 124.6 123.5 117.2 135.5 124.8 127.8 133.1 125.7 128.4 131.9 146.3 140.6 129.5 132.4 125.9 126.9 135.8 129.5 130.2 133.8 123.3 140.6
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4027963.14590.00128
20.3925863.06620.001615
30.4576123.57410.000347
40.1724241.34670.091534
50.3737682.91920.002455
60.4087463.19240.001116
70.2457761.91960.029796
80.1565011.22230.113146
90.2590932.02360.0237
100.1723721.34630.091599
110.2718492.12320.018901
120.4925583.8470.000144
130.1921771.5010.069263
140.1685291.31630.096507
150.1590771.24240.109416
16-0.019854-0.15510.438643
170.1014170.79210.215688
180.1453181.1350.130414
19-0.026576-0.20760.418131
20-0.068001-0.53110.298637
21-0.056138-0.43850.331303
22-0.033001-0.25770.398734
230.0366040.28590.387965
240.0787520.61510.270398
25-0.018866-0.14740.44167
26-0.09601-0.74990.228111
27-0.106971-0.83550.203357
28-0.150427-1.17490.122305
29-0.132993-1.03870.151519
30-0.127158-0.99310.162283
31-0.158945-1.24140.109606
32-0.229198-1.79010.039201
33-0.240017-1.87460.032819
34-0.150548-1.17580.122118
35-0.18682-1.45910.074832
36-0.088558-0.69170.245888
37-0.117964-0.92130.180254
38-0.246985-1.9290.029192
39-0.166792-1.30270.098789
40-0.212433-1.65920.051109
41-0.213817-1.670.050025
42-0.211325-1.65050.05199
43-0.188451-1.47180.073101
44-0.232024-1.81220.037441
45-0.219998-1.71820.045412
46-0.17005-1.32810.094542
47-0.208978-1.63220.053898
48-0.128393-1.00280.159963
49-0.121311-0.94750.173568
50-0.173451-1.35470.090255
51-0.088801-0.69360.245295
52-0.131628-1.0280.153993
53-0.134306-1.0490.149166
54-0.056793-0.44360.329461
55-0.106142-0.8290.20517
56-0.079453-0.62050.268605
57-0.030046-0.23470.407626
58-0.05213-0.40720.342661
590.0127190.09930.460599
60-0.019316-0.15090.440291


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4027963.14590.00128
20.2749512.14740.01787
30.2998492.34190.011234
4-0.167189-1.30580.098264
50.2405051.87840.032554
60.2121241.65670.051353
7-0.000891-0.0070.497236
8-0.297892-2.32660.011662
90.1751521.3680.088169
100.1011610.79010.216267
110.142751.11490.134631
120.2553661.99450.025288
13-0.108932-0.85080.199107
14-0.212695-1.66120.050903
15-0.157944-1.23360.111045
16-0.092493-0.72240.236406
17-0.092977-0.72620.235255
180.0185840.14510.442538
19-0.030455-0.23790.406392
20-0.060457-0.47220.31924
21-0.080759-0.63070.26528
220.1903811.48690.071093
230.0038330.02990.488106
24-0.17067-1.3330.093748
25-0.047061-0.36760.357237
260.0377680.2950.384505
27-0.054579-0.42630.335705
28-0.034924-0.27280.392977
29-0.044339-0.34630.365154
30-0.079889-0.62390.267494
310.0942780.73630.232174
320.0454880.35530.361805
33-0.099194-0.77470.220746
34-0.043782-0.34190.366783
35-0.051045-0.39870.345762
360.0657170.51330.304811
37-0.016083-0.12560.450225
38-0.042284-0.33020.371173
390.0420240.32820.371934
40-0.062877-0.49110.312565
41-0.014758-0.11530.454307
42-0.074362-0.58080.281763
430.0671120.52420.301033
440.0404250.31570.376644
45-0.009166-0.07160.47158
46-0.133396-1.04190.150795
470.0342490.26750.394997
48-0.003628-0.02830.488745
49-0.017742-0.13860.445123
50-0.01798-0.14040.444392
510.1420011.10910.135877
520.0271170.21180.416489
53-0.025864-0.2020.420293
540.0558260.4360.332183
55-0.038654-0.30190.381878
56-0.013522-0.10560.45812
570.0532860.41620.33937
580.0190470.14880.441116
590.0563290.43990.330768
60-0.037609-0.29370.384979
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293566992spnjfix4wboooh/1wubr1229356599.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/15/t12293566992spnjfix4wboooh/1wubr1229356599.ps (open in new window)


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