Home » date » 2010 » May » 03 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 03 May 2010 18:52:54 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/May/03/t12729129009lcqfmwbppbo7v7.htm/, Retrieved Mon, 03 May 2010 20:55:02 +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/2010/May/03/t12729129009lcqfmwbppbo7v7.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
464 675 703 887 1139 1077 1318 1260 1120 963 996 960 530 883 894 1045 1199 1287 1565 1577 1076 918 1008 1063 544 635 804 980 1018 1064 1404 1286 1104 999 996 1015 615 722 832 977 1270 1437 1520 1708 1151 934 1159 1209 699 830 996 1124 1458 1270 1753 2258 1208 1241 1265 1828 809 997 1164 1205 1538 1513 1378 2083 1357 1536 1526 1376 779 1005 1193 1522 1539 1546 2116 2326 1596 1356 1553 1613 814 1150 1225 1691 1759 1754 2100 2062 2012 1897 1964 2186 966 1549 1538 1612 2078 2137 2907 2249 1883 1739 1828 1868 1138 1430 1809 1763 2200 2067 2503 2141 2103 1972 2181 2344 970 1199 1718 1683 2025 2051 2439 2353 2230 1852 2147 2286 1007 1665 1642 1518 1831 2207 2822 2393 2306 1785 2047 2171 1212 1335 2011 1860 1954 2152 2835 2224 2182 1992 2389 2724 891 1247 2017 2257 2255 2255 3057 3330 1896 2096 2374 2535 1041 1728 2201 2455 2204 2660 3670 2665 etc...
 
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
1-0.208239-2.840.002507
2-0.233893-3.18990.000835
30.0509880.69540.243842
40.182052.48280.00696
50.0087320.11910.452666
6-0.522238-7.12240
70.0062190.08480.466252
80.1847752.520.006288
90.0168380.22960.409313
10-0.226165-3.08450.001175
11-0.078865-1.07560.141755
120.6860789.35690
13-0.105039-1.43250.076834
14-0.2122-2.8940.002129
150.0642010.87560.191193
160.1887682.57450.005409
17-0.046521-0.63450.263278
18-0.468631-6.39130
190.0722310.98510.162926
200.0933171.27270.102361
210.0181440.24750.402414
22-0.186831-2.5480.005821
23-0.061368-0.8370.201847
240.616028.40140
25-0.092137-1.25660.10524
26-0.184869-2.52130.006266
270.0562410.7670.222021
280.1375111.87540.031152
29-0.057105-0.77880.218542
30-0.351307-4.79122e-06
310.0168990.23050.408989
320.0701960.95730.169817
330.0515230.70270.241567
34-0.172129-2.34750.009975
35-0.05862-0.79950.212517
360.5452967.43680
37-0.088716-1.20990.113923
38-0.124934-1.70390.045037
390.0207140.28250.388934
400.1273431.73670.042045
41-0.034809-0.47470.317767
42-0.361683-4.93271e-06
430.0781761.06620.143862
440.0103060.14060.444188
450.0365880.4990.309184
46-0.114463-1.56110.060104
47-0.052645-0.7180.236836
480.450316.14140


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.208239-2.840.002507
2-0.289824-3.95275.5e-05
3-0.082379-1.12350.131338
40.1227631.67430.047879
50.103571.41250.079736
6-0.486631-6.63680
7-0.350313-4.77762e-06
8-0.220146-3.00240.001523
9-0.018564-0.25320.400202
10-0.127103-1.73350.042336
11-0.327237-4.46297e-06
120.398635.43660
130.1597922.17930.015284
140.0612980.8360.202117
150.0401530.54760.292306
160.0464780.63390.263471
17-0.062408-0.85110.197897
18-0.107077-1.46030.072942
190.0766371.04520.148647
20-0.117644-1.60450.055155
21-0.02075-0.2830.388746
220.0263830.35980.359699
23-0.120118-1.63820.051536
240.158992.16830.015701
250.1224691.67030.048275
260.0540670.73740.230913
27-0.034113-0.46520.321153
28-0.13182-1.79780.036916
29-0.140324-1.91380.028593
300.0963171.31360.0953
310.0167850.22890.409594
32-0.033563-0.45770.323836
330.0788011.07470.141951
34-0.005498-0.0750.470153
35-0.130284-1.77680.038615
360.1193611.62790.052623
370.0080390.10960.456408
380.0066630.09090.463848
390.002610.03560.485819
40-0.032029-0.43680.331377
41-0.010534-0.14370.44296
42-0.048947-0.66750.252626
430.1202171.63950.051396
440.0082640.11270.455194
45-0.057899-0.78960.215374
46-0.009242-0.1260.449915
470.0110810.15110.440019
48-0.041454-0.56540.286256
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t12729129009lcqfmwbppbo7v7/1j19j1272912773.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t12729129009lcqfmwbppbo7v7/1j19j1272912773.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t12729129009lcqfmwbppbo7v7/2j19j1272912773.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t12729129009lcqfmwbppbo7v7/2j19j1272912773.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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