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 14:18:26 -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/t1228857555r07cy020ljnwu5y.htm/, Retrieved Tue, 09 Dec 2008 21:19:15 +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/t1228857555r07cy020ljnwu5y.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 «
123.9 124.9 112.7 121.9 100.6 104.3 120.4 107.5 102.9 125.6 107.5 108.8 128.4 121.1 119.5 128.7 108.7 105.5 119.8 111.3 110.6 120.1 97.5 107.7 127.3 117.2 119.8 116.2 111 112.4 130.6 109.1 118.8 123.9 101.6 112.8 128 129.6 125.8 119.5 115.7 113.6 129.7 112 116.8 127 112.1 114.2 121.1 131.6 125 120.4 117.7 117.5 120.6 127.5 112.3 124.5 115.2 105.4
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0249270.19310.423772
2-0.140592-1.0890.14025
30.3017032.3370.011398
4-0.218303-1.6910.048016
5-0.072002-0.55770.289553
60.3906523.0260.001823
7-0.156269-1.21050.115426
8-0.222456-1.72310.045007
90.1696781.31430.09687
10-0.264026-2.04510.022617
11-0.056501-0.43770.331605
120.5859814.5391.4e-05
130.0335920.26020.397799
14-0.117154-0.90750.183894
150.1864091.44390.076982
16-0.178253-1.38070.08624
17-0.025037-0.19390.42344
180.2857122.21310.015352
19-0.118255-0.9160.181667
20-0.175325-1.35810.089764
210.0394120.30530.380602
22-0.246415-1.90870.030542
23-0.047248-0.3660.357834
240.281372.17950.016616
250.0130310.10090.459969
26-0.145622-1.1280.131908
270.0695770.53890.295961
28-0.170399-1.31990.095941
29-0.092189-0.71410.238969
300.114880.88990.188549
31-0.084474-0.65430.257699
32-0.172933-1.33950.092724
33-0.065058-0.50390.308075
34-0.13178-1.02080.155732
35-0.086951-0.67350.251601
360.1807721.40030.083294
370.0538070.41680.33916
38-0.095436-0.73920.23132
390.0654650.50710.306975
40-0.025845-0.20020.421004
41-0.073503-0.56940.285622
420.0715780.55440.290669
43-0.004238-0.03280.486962
44-0.109491-0.84810.199873
45-0.062083-0.48090.31617
46-0.052994-0.41050.341454
47-0.114657-0.88810.189009
480.0624420.48370.31519
490.0398280.30850.379383
50-0.064311-0.49810.3101
510.0330180.25580.399507
520.0311070.2410.405205
53-0.041501-0.32150.374489
540.0809220.62680.266579
550.0436470.33810.368237
56-0.00533-0.04130.483602
570.0206120.15970.436844
58-0.024626-0.19070.424683
59-0.018864-0.14610.442157
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0249270.19310.423772
2-0.141301-1.09450.139053
30.3157212.44560.008707
4-0.30545-2.3660.010614
50.099220.76860.222586
60.2516841.94950.027955
7-0.130108-1.00780.158796
8-0.185056-1.43340.078462
90.022940.17770.429782
10-0.161874-1.25390.107376
110.0969770.75120.22774
120.4595713.55980.000367
130.1483381.1490.127554
14-0.091225-0.70660.241268
15-0.143917-1.11480.134696
16-0.007525-0.05830.476855
170.0494930.38340.351399
18-0.109028-0.84450.200865
19-0.007241-0.05610.477729
20-0.01236-0.09570.462024
21-0.049272-0.38170.352033
22-0.018839-0.14590.442234
230.0922570.71460.238807
24-0.095732-0.74150.230629
25-0.010221-0.07920.46858
26-0.183477-1.42120.080217
270.0800120.61980.268878
28-0.129488-1.0030.159942
29-0.108315-0.8390.2024
30-0.195331-1.5130.067761
310.0609330.4720.319326
32-0.078212-0.60580.273457
33-0.024057-0.18630.426402
340.0673460.52170.301914
35-0.013595-0.10530.458242
360.014430.11180.455688
37-0.024088-0.18660.426307
380.0554620.42960.33451
390.0322350.24970.401838
40-0.006034-0.04670.481439
410.0166220.12880.448993
42-0.019323-0.14970.440763
430.0224610.1740.431234
440.0524490.40630.342995
450.0349610.27080.393734
460.004160.03220.4872
47-0.056548-0.4380.331472
48-0.103054-0.79830.213936
49-0.03764-0.29160.385814
50-0.007422-0.05750.477174
51-0.018052-0.13980.44463
52-0.085736-0.66410.254582
530.0260580.20180.420359
540.0454150.35180.363117
55-0.008026-0.06220.475318
560.0580780.44990.327212
57-0.001713-0.01330.494728
58-0.083987-0.65060.258907
590.0039740.03080.487774
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228857555r07cy020ljnwu5y/1ma7m1228857501.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228857555r07cy020ljnwu5y/1ma7m1228857501.ps (open in new window)


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