Home » date » 2009 » Nov » 24 »

ws8

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 24 Nov 2009 13:12:27 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/24/t1259093992pz1toz22z0cak6o.htm/, Retrieved Tue, 24 Nov 2009 21:19:54 +0100
 
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/2009/Nov/24/t1259093992pz1toz22z0cak6o.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
153.3 154.5 155.2 156.9 157 157.4 157.2 157.5 158 158.5 159 159.3 160 160.8 161.9 162.5 162.7 162.8 162.9 163 164 164.7 164.8 164.9 165 165.8 166.1 167.2 167.7 168.3 168.6 168.9 169.1 169.5 169.6 169.7 169.8 170.4 170.9 171.9 171.9 172 172 172.4 173 173.7 173.8 173.8 173.9 174.6 175 175.9 176 175.1 175.6 175.9 176.7 176.1 176.1 176.2 176.3 177.8 178.5 179.4 179.5 179.6 179.7 179.7 179.8 179.9 180.2 180.4 180.4 181.3 181.9 182.5 182.7 183.1 183.6 183.7 183.8 183.9 184.1 184.4 184.5 185.9 186.6 187.6 187.8 187.9 188 188.3 188.4 188.5 188.5 188.6 188.6 189.4 190 191.9 192.5 193 193.5 193.9 194.2 194.9 194.9 194.9 194.9 195.5 196 196.2 196.2 196.2 196.2 197 197.7 198 198.2 198.5 198.6 199.5 200 201.3 202.2 202.9 203.5 203.5 204 204.1 204.3 204.5 204.8 205.1 205.7 206.5 206.9 207.1 207.8 208 208.5 208.6 209 209.1 209.7 209.8 209.9 210 210.8 211.4 211.7 212 212.2 2 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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.98488614.74040
20.97008114.51880
30.95530614.29770
40.94109714.08510
50.92696313.87350
60.9128113.66170
70.89847313.44710
80.88405313.23130
90.86967813.01610
100.8553212.80130
110.84117712.58960
120.82693512.37640
130.81285512.16570
140.79900811.95850
150.78540511.75490
160.77184611.55190
170.75842911.35110
180.74509611.15160
190.73227210.95960
200.71962310.77030
210.7071710.58390
220.69499410.40170
230.68269110.21760
240.67037910.03330
250.6578749.84620
260.6454159.65970
270.632929.47270
280.6206819.28950
290.608499.1070
300.5963188.92490
310.584118.74220
320.5718978.55940
330.5596018.37530
340.5473578.19210
350.5350248.00750
360.5226667.82260


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.98488614.74040
20.0026850.04020.483991
3-0.0064-0.09580.461891
40.011320.16940.432811
5-0.004443-0.06650.473523
6-0.007869-0.11780.453174
7-0.0132-0.19760.421786
8-0.010363-0.15510.438444
9-0.006193-0.09270.463117
10-0.007327-0.10970.456388
11-0.000704-0.01050.495798
12-0.010813-0.16180.435793
13-0.002341-0.0350.486043
140.0003690.00550.497797
150.0005450.00820.496747
16-0.005857-0.08770.465113
17-0.002615-0.03910.484407
18-0.004418-0.06610.473669
190.0094660.14170.443734
20-0.001191-0.01780.492896
21-0.000667-0.010.496024
220.0026080.0390.484452
23-0.010939-0.16370.435047
24-0.007437-0.11130.455734
25-0.013623-0.20390.419313
26-0.006408-0.09590.46184
27-0.008701-0.13020.448252
280.0006350.00950.496215
29-0.005436-0.08140.467613
30-0.006854-0.10260.459197
31-0.00811-0.12140.45175
32-0.007328-0.10970.45638
33-0.010208-0.15280.439352
34-0.005986-0.08960.464345
35-0.010623-0.1590.436909
36-0.008726-0.13060.448105
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259093992pz1toz22z0cak6o/1zsac1259093545.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259093992pz1toz22z0cak6o/1zsac1259093545.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t1259093992pz1toz22z0cak6o/28k4q1259093545.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259093992pz1toz22z0cak6o/28k4q1259093545.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; 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