Home » date » 2008 » Dec » 11 »

Nick Follens MAR 203

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 11 Dec 2008 11:05:06 -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/11/t1229018817x6tlicdyuny4qbo.htm/, Retrieved Thu, 11 Dec 2008 18:06:59 +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/11/t1229018817x6tlicdyuny4qbo.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:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.4369 1.4975 1.577 1.5553 1.5557 1.575 1.5527 1.4748 1.4718 1.457 1.4684 1.4227 1.3896 1.3622 1.3716 1.3419 1.3511 1.3516 1.3242 1.3074 1.2999 1.3213 1.2881 1.2611 1.2727 1.2811 1.2684 1.265 1.277 1.2271 1.202 1.1938 1.2103 1.1856 1.1786 1.2015 1.2256 1.2292 1.2037 1.2165 1.2694 1.2938 1.3201 1.3014 1.3119 1.3408 1.2991 1.249 1.2218 1.2176 1.2266 1.2138 1.2007 1.1985 1.2262 1.2646 1.2613 1.2286 1.1702 1.1692 1.1222 1.1139 1.1372 1.1663 1.1582 1.0848 1.0807 1.0773 1.0622 1.0183 1.0014 0.9811
 
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
10.9334377.92050
20.8505057.21680
30.76516.49210
40.6927835.87850
50.6134785.20551e-06
60.5321134.51511.2e-05
70.4612173.91360.000102
80.4175483.5430.000349
90.3721263.15760.001162
100.3198082.71370.00416
110.263132.23270.014338
120.2118981.7980.038184
130.1730411.46830.073189
140.1373421.16540.123854
150.1110440.94220.174611
160.0945790.80250.212443
170.0807350.68510.247752
180.0607680.51560.303844
190.0353640.30010.382493
200.0070710.060.47616
21-0.016938-0.14370.443059
22-0.036433-0.30910.379054
23-0.057913-0.49140.312315
24-0.079207-0.67210.251836
25-0.093727-0.79530.214526
26-0.090717-0.76980.221981
27-0.077146-0.65460.257403
28-0.070149-0.59520.276778
29-0.061427-0.52120.301904
30-0.035022-0.29720.383596
31-0.009457-0.08020.468133
320.0082840.07030.472078
330.015040.12760.449402
340.0291860.24760.402556
350.0481430.40850.342057
360.0567530.48160.315789
370.0531120.45070.326791
380.0452730.38420.350998
390.036520.30990.378772
400.0231730.19660.422335
41-0.009615-0.08160.467603
42-0.045744-0.38820.349524
43-0.081696-0.69320.245203
44-0.107269-0.91020.182875
45-0.13396-1.13670.129718
46-0.16327-1.38540.085105
47-0.185015-1.56990.060411
48-0.203848-1.72970.043984


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9334377.92050
2-0.161627-1.37140.087247
3-0.049774-0.42240.337014
40.0588580.49940.309501
5-0.123423-1.04730.149237
6-0.053448-0.45350.325769
70.0487670.41380.340125
80.1375361.1670.123524
9-0.102455-0.86940.19377
10-0.077146-0.65460.257405
11-0.030951-0.26260.396792
12-0.028823-0.24460.403741
130.0436030.370.35624
14-0.002901-0.02460.490215
150.0710210.60260.274324
160.0194450.1650.434705
17-0.054781-0.46480.321726
18-0.072734-0.61720.269536
19-0.037922-0.32180.374276
20-0.021626-0.18350.427459
210.0060280.05110.479675
220.0337170.28610.387811
23-0.042382-0.35960.36009
24-0.041037-0.34820.36435
250.0072270.06130.475636
260.0981110.83250.203939
270.0629910.53450.297324
28-0.051409-0.43620.331993
290.0475310.40330.343956
300.1274071.08110.141633
31-0.075491-0.64060.26192
32-0.049808-0.42260.336911
330.0041620.03530.485963
340.0770750.6540.257597
35-0.014184-0.12040.452269
36-0.073845-0.62660.266453
37-0.004926-0.04180.483389
38-0.033834-0.28710.387435
39-0.053861-0.4570.324513
40-0.037632-0.31930.375207
41-0.087267-0.74050.230706
420.0024820.02110.491628
43-0.077255-0.65550.257107
440.0318270.27010.393943
45-0.031672-0.26870.394448
46-0.064354-0.54610.293354
470.0282450.23970.405635
48-0.058898-0.49980.309382
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229018817x6tlicdyuny4qbo/11biz1229018704.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229018817x6tlicdyuny4qbo/11biz1229018704.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229018817x6tlicdyuny4qbo/22x4k1229018704.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t1229018817x6tlicdyuny4qbo/22x4k1229018704.ps (open in new window)


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