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 04:16:28 -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/t12288214272pfkobp5gd8r2or.htm/, Retrieved Tue, 09 Dec 2008 11:17:09 +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/t12288214272pfkobp5gd8r2or.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 «
5.1 4.9 5.2 5.1 4.6 3.7 3.9 3.1 2.8 2.6 2.2 1.8 1.3 1.2 1.4 1.3 1.3 1.9 1.9 2.1 2.0 1.9 1.9 1.9 1.8 1.7 1.6 1.7 1.9 1.7 1.3 2.0 2.0 2.3 2.0 1.7 2.3 2.4 2.4 2.3 2.1 2.1 2.5 2.0 1.8 1.7 1.9 2.1 1.4 1.6 1.7 1.6 1.9 1.6 1.1 1.3 1.6 1.6 1.7 1.6 1.7 1.6 1.5 1.6 1.1 1.5 1.4 1.3 0.9 1.2 0.9 1.1 1.3 1.3 1.4 1.2 1.7 2.0 3.0 3.1 3.2 2.7 2.8 3.0 2.8 3.1 3.1 3.2 3.1 2.7 2.2 2.2 2.1 2.3 2.5 2.3 2.6
 
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
1-0.208543-2.04330.021882
20.0384820.3770.353487
3-0.033678-0.330.371069
40.0300520.29440.384526
50.0633660.62090.268081
60.0439710.43080.333779
7-0.060096-0.58880.278684
8-0.14584-1.42890.078135
90.0717290.70280.24194
10-0.059585-0.58380.280357
110.1116851.09430.138284
12-0.381994-3.74280.000155
130.0751950.73680.231534
140.1709981.67540.048552
15-0.096136-0.94190.174295
160.1034651.01370.156626
17-0.118493-1.1610.124262
18-0.0382-0.37430.35451
190.0949060.92990.17738
200.1070271.04860.148487
21-0.096325-0.94380.173824
220.0814690.79820.213355
23-0.082167-0.80510.211385
240.0042210.04140.483548
250.0584090.57230.284233
26-0.186378-1.82610.03547
270.1207431.1830.119859
28-0.083188-0.81510.208524
290.0367690.36030.359723
30-0.021351-0.20920.417368
31-0.087289-0.85530.197271
32-0.006204-0.06080.475828
330.0140380.13750.445446
34-0.022304-0.21850.413739
35-0.029099-0.28510.388086
360.0950520.93130.177013
37-0.167212-1.63830.052313
380.1873481.83560.034754
39-0.081324-0.79680.213764
400.0327330.32070.374563
410.1160981.13750.129075
420.0095990.0940.462633
430.0126850.12430.450672
44-0.020656-0.20240.420021
450.0072120.07070.471906
460.0306670.30050.382234
470.0011080.01090.495682
48-0.048634-0.47650.317396
490.0278160.27250.392896
50-0.03445-0.33750.368223
51-0.050365-0.49350.311403
520.084640.82930.204496
53-0.105944-1.0380.15093
540.0163470.16020.436544
550.0905030.88670.188717
560.0091560.08970.464353
570.0461780.45240.325983
58-0.010309-0.1010.459878
590.0362370.35510.361665
600.0455250.44610.328282


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.208543-2.04330.021882
2-0.005236-0.05130.479596
3-0.027918-0.27350.392515
40.0184060.18030.428631
50.0775090.75940.224729
60.0754390.73920.230809
7-0.037982-0.37210.355303
8-0.175482-1.71940.044385
90.003560.03490.486123
10-0.052491-0.51430.304111
110.0853220.8360.202622
12-0.353336-3.4620.000401
13-0.05301-0.51940.302342
140.2478722.42860.008509
15-0.063105-0.61830.268922
160.0574570.5630.287386
17-0.04905-0.48060.315952
18-0.054356-0.53260.297777
190.0686140.67230.251511
20-0.007258-0.07110.471727
21-0.030626-0.30010.382385
220.100690.98660.16317
23-0.023836-0.23350.407917
24-0.169989-1.66550.049532
25-0.004177-0.04090.48372
26-0.032141-0.31490.376756
270.043540.42660.335312
28-0.016086-0.15760.437549
29-0.033534-0.32860.371601
30-0.052009-0.50960.305756
31-0.034828-0.34120.366833
320.021860.21420.41543
33-0.084547-0.82840.204752
34-0.003435-0.03370.486611
35-0.044059-0.43170.333467
36-0.012046-0.1180.453149
37-0.068539-0.67150.251744
380.0613950.60150.274449
390.0157710.15450.43876
400.0381270.37360.354777
410.0962410.9430.174033
420.0391990.38410.350886
43-0.038295-0.37520.354165
44-0.007881-0.07720.469306
45-0.012416-0.12170.451713
460.0602740.59060.278101
47-0.066387-0.65050.258476
480.0034440.03370.486576
49-0.03246-0.3180.375571
500.061970.60720.272582
51-0.049955-0.48950.312818
520.0017890.01750.493027
530.0867980.85040.198598
54-0.036619-0.35880.360268
550.0622860.61030.271561
560.0344780.33780.368121
570.0557550.54630.29307
580.0511760.50140.30861
590.0297860.29180.38552
600.0077480.07590.469821
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288214272pfkobp5gd8r2or/1p13d1228821386.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288214272pfkobp5gd8r2or/1p13d1228821386.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288214272pfkobp5gd8r2or/23eik1228821386.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t12288214272pfkobp5gd8r2or/23eik1228821386.ps (open in new window)


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