Home » date » 2008 » Dec » 06 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 06 Dec 2008 07:21:45 -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/06/t1228573335mzk6tc2ewqvgqhv.htm/, Retrieved Sat, 06 Dec 2008 14:22:17 +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/06/t1228573335mzk6tc2ewqvgqhv.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:
kleuter
 
Dataseries X:
» Textbox « » Textfile « » CSV «
104.3 119.8 116.8 118.2 107.4 110.8 94.8 96.5 113.4 109.8 118.7 117.2 110.3 111.6 128.1 121.3 107.3 120.5 98.5 97.7 113.2 114.6 118.3 123.9 113.6 117.5 130.1 124.7 114.2 127.3 105.9 101.5 120.2 117.1 131.1 130 120.6 123.1 135.3 134.1 123.7 134.6 108.3 110.4 127.8 126.6 131.4 141.1 127 127.3 143.6 149.4 126.6 136.5 116 118 131.4 140.7 144.9 143.9 127.1
 
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.5653114.41522.1e-05
20.3699122.88910.002671
30.3344322.6120.005658
40.1242540.97050.167826
50.1892341.4780.072281
60.4170213.2570.00092
70.2463161.92380.029525
80.0926340.72350.236071
90.2678462.09190.020307
100.1964781.53450.065034
110.3043852.37730.010295
120.6031344.71067e-06
130.3052482.38410.010124
140.1044170.81550.208973
150.0928070.72480.235659
16-0.066617-0.52030.30237
17-0.032915-0.25710.398992
180.1473681.1510.127115
190.0237660.18560.426678
20-0.097571-0.76210.224483
210.0102010.07970.468379
22-0.036565-0.28560.388084
230.0222080.17350.431435
240.2561332.00050.024953
250.0376570.29410.384837
26-0.108126-0.84450.200847
27-0.136194-1.06370.145826
28-0.251463-1.9640.027046
29-0.218344-1.70530.046612
30-0.068188-0.53260.298135
31-0.13734-1.07270.143825
32-0.234214-1.82930.036124
33-0.153729-1.20070.117262
34-0.198178-1.54780.063419
35-0.154215-1.20450.116533
360.0129870.10140.459769
37-0.108557-0.84790.199916
38-0.215912-1.68630.048421
39-0.241793-1.88850.031861
40-0.283843-2.21690.015184
41-0.263983-2.06180.021749
42-0.136578-1.06670.145154
43-0.148005-1.1560.126104
44-0.213063-1.66410.050613
45-0.179581-1.40260.082906
46-0.182565-1.42590.0795
47-0.168809-1.31840.096142
48-0.077459-0.6050.273719
49-0.108894-0.85050.19919
50-0.162731-1.2710.104283
51-0.201308-1.57230.060531
52-0.176235-1.37640.086858
53-0.16158-1.2620.10588
54-0.073949-0.57760.282845
55-0.045322-0.3540.36229
56-0.042016-0.32820.37196
57-0.043813-0.34220.366691
58-0.043286-0.33810.368233
59-0.038788-0.30290.381482
60-0.012021-0.09390.462752


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5653114.41522.1e-05
20.0739770.57780.282769
30.1462481.14220.128911
4-0.194676-1.52050.06678
50.2229711.74150.043322
60.3661492.85970.002899
7-0.201524-1.5740.060335
8-0.250055-1.9530.027706
90.4047373.16110.001224
100.1886571.47350.072884
110.1162740.90810.183693
120.2262251.76690.041126
13-0.410104-3.2030.001081
14-0.109191-0.85280.19855
150.0025980.02030.491939
16-0.038141-0.29790.383399
17-0.015233-0.1190.452845
18-0.287204-2.24310.014266
19-0.01969-0.15380.439143
200.1990771.55480.062579
21-0.151784-1.18550.120214
220.0103740.0810.467843
23-0.074112-0.57880.282416
240.0866550.67680.250546
25-0.000636-0.0050.498026
26-0.088569-0.69170.24586
27-0.085938-0.67120.252313
280.0041850.03270.487015
29-0.000855-0.00670.497346
300.0175830.13730.445612
31-0.075237-0.58760.279478
32-0.070095-0.54750.293032
330.0099080.07740.469284
340.0427170.33360.3699
35-0.060472-0.47230.319199
36-0.10882-0.84990.19935
370.0640440.50020.309367
380.0317180.24770.402588
39-0.061518-0.48050.316306
400.0709760.55430.290687
41-0.082698-0.64590.260385
420.025260.19730.422129
430.0760390.59390.277393
44-0.044158-0.34490.365684
45-0.042132-0.32910.371618
46-0.019202-0.150.44064
47-0.048235-0.37670.353843
48-0.011801-0.09220.463432
490.0050830.03970.48423
500.0637990.49830.310036
51-0.059114-0.46170.322972
520.0061880.04830.480806
53-0.011117-0.08680.465548
540.1182270.92340.179723
55-0.014677-0.11460.454558
560.0769210.60080.275109
57-0.003314-0.02590.489717
58-0.092982-0.72620.235242
590.0112190.08760.465233
600.1013850.79180.21576
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228573335mzk6tc2ewqvgqhv/1nunc1228573304.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228573335mzk6tc2ewqvgqhv/1nunc1228573304.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228573335mzk6tc2ewqvgqhv/2uic41228573304.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/06/t1228573335mzk6tc2ewqvgqhv/2uic41228573304.ps (open in new window)


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