Home » date » 2009 » Aug » 16 »

*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, 16 Aug 2009 09:12:19 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/16/t1250435562q3r0j42eoura6r3.htm/, Retrieved Sun, 16 Aug 2009 17:12:45 +0200
 
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/2009/Aug/16/t1250435562q3r0j42eoura6r3.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
72.84 73.96 73.26 73.86 73.04 212.8 157.92 111.55 99.01 89.5 100.95 116.06 131.5 137.43 138.53 137.26 136.81 182.98 149.45 109.34 93.37 84.09 83.83 82.94 82.88 81.41 79.87 79.66 76.07 182.69 165.78 142.5 120.6 105.73 98.72 98.41 96.08 97.3 97.5 97.02 98.75 232.81 240.83 193.4 148.28 138.34 135.34 134.02 133.86 131.67 132.43 130.21 129.98 206.16 195.17 159.16 136.33 125.18 121.21 119.38 119.26 119.75 118.78 116.97 121.69 223.51 228.58 205.22 189.4 180.14 177.59 176.39 171.16 173.11 171.74 175.97 179.64 254.62 240.5 212.01 176.36 153.24 146.69 141.52 142.6 143.19 142.32 142.03 144.92 177.31 194.4 189.19 180.44 175.84 178.54 176.55
 
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.7348797.20030
20.4516684.42541.3e-05
30.2681142.6270.005014
40.1682551.64860.051254
50.112951.10670.135598
60.1184381.16050.124371
70.1104431.08210.140956
80.0988980.9690.167491
90.119551.17140.122178
100.2056032.01450.023378
110.3818353.74120.000156
120.5584525.47170
130.3877433.79910.000127
140.19081.86950.032304
150.0788470.77250.220847
160.0379240.37160.355513
170.0257310.25210.400746
180.0270160.26470.395902
190.0152920.14980.440606
200.007150.07010.472147
210.028020.27450.392129
220.1126971.10420.136132
230.2946892.88740.0024
240.5024794.92332e-06
250.3799573.72280.000166
260.2091782.04950.02157
270.0830890.81410.2088
280.0103590.10150.459685
29-0.040652-0.39830.345643
30-0.059308-0.58110.281268
31-0.086999-0.85240.198053
32-0.097193-0.95230.17167
33-0.083888-0.82190.206577
34-0.019185-0.1880.425647
350.1215181.19060.118368
360.2911172.85240.002657
370.174571.71040.045208
38-0.001253-0.01230.495115
39-0.130809-1.28170.101524
40-0.196224-1.92260.028747
41-0.238863-2.34040.010667
42-0.237096-2.32310.011144
43-0.232017-2.27330.012619
44-0.224672-2.20130.015054
45-0.211758-2.07480.020341
46-0.167603-1.64220.051913
47-0.068916-0.67520.250574
480.0559620.54830.292373


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7348797.20030
2-0.192147-1.88260.031388
30.0307440.30120.381944
40.0183930.18020.428681
50.0050370.04940.480369
60.092450.90580.18365
7-0.032627-0.31970.374955
80.0258760.25350.400199
90.0842610.82560.205543
100.1717691.6830.047814
110.3168773.10470.001252
120.2590372.5380.006379
13-0.528398-5.17721e-06
140.0629470.61680.269429
150.0587510.57560.283101
160.0442050.43310.33295
170.0215680.21130.416542
18-0.194316-1.90390.029959
190.0136440.13370.446968
200.1338331.31130.096443
210.0403310.39520.346801
220.0868410.85090.198482
230.0917690.89920.185411
240.1832731.79570.037844
25-0.203526-1.99410.024487
260.0157950.15480.438668
27-0.086746-0.84990.198737
28-0.048818-0.47830.316758
29-0.02141-0.20980.417145
30-0.065279-0.63960.261976
31-0.066287-0.64950.258792
320.0607880.59560.276422
33-0.032936-0.32270.373809
340.0100080.09810.461047
35-0.049392-0.48390.314763
36-0.031195-0.30560.380267
37-0.09904-0.97040.167144
38-0.082271-0.80610.211093
39-0.058965-0.57770.282398
40-0.041389-0.40550.342996
41-0.079327-0.77720.219463
420.0246510.24150.404829
43-0.008222-0.08060.46798
44-0.016394-0.16060.436363
45-0.041767-0.40920.341642
46-0.073284-0.7180.237241
47-0.106684-1.04530.149257
48-0.131166-1.28520.100914
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250435562q3r0j42eoura6r3/18q481250435537.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250435562q3r0j42eoura6r3/18q481250435537.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250435562q3r0j42eoura6r3/2004o1250435537.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/16/t1250435562q3r0j42eoura6r3/2004o1250435537.ps (open in new window)


 
Parameters (Session):
par2 = grey ; par3 = FALSE ; par4 = Unknown ;
 
Parameters (R input):
par1 = 48 ; 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