Home » date » 2009 » May » 15 »

Time Series analysis - King Size-sigarets - Vincent Bruyninckx

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 14 May 2009 16:31:44 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/15/t12423403655axpbow0y9mvxka.htm/, Retrieved Fri, 15 May 2009 00:32:47 +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/2009/May/15/t12423403655axpbow0y9mvxka.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 «
2,98 2,98 2,98 3,03 3,07 3,08 3,08 3,08 3,08 3,08 3,08 3,08 3,08 3,08 3,12 3,15 3,15 3,15 3,15 3,16 3,19 3,2 3,2 3,2 3,21 3,21 3,21 3,21 3,21 3,28 3,3 3,3 3,3 3,3 3,3 3,3 3,3 3,45 3,49 3,5 3,54 3,64 3,67 3,67 3,68 3,68 3,68 3,68 3,7 3,83 3,87 3,87 3,87 3,87 3,87 3,87 3,87 3,87 3,87 3,88 3,88 3,88 3,88 3,88 3,88 3,89 3,89 3,91 3,95 3,99 3,99 3,99
 
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.9655118.19260
20.9275217.87030
30.8885857.53990
40.853617.24310
50.8213086.9690
60.7898716.70230
70.7580546.43230
80.7255776.15670
90.6898825.85380
100.6522725.53470
110.6134195.2051e-06
120.5725564.85833e-06
130.5281224.48131.4e-05
140.4831684.09985.4e-05
150.4401973.73520.000186
160.3983243.37990.000587
170.3557653.01880.001754
180.312132.64850.004964
190.2674072.2690.013132
200.2217481.88160.031967
210.1756031.490.070291
220.1290541.09510.13857
230.0840340.71310.239058
240.0460620.39080.348531
250.0093680.07950.468432
26-0.028201-0.23930.405778
27-0.067261-0.57070.284981
28-0.107799-0.91470.181701
29-0.148951-1.26390.105174
30-0.186974-1.58650.058501
31-0.22301-1.89230.031236
32-0.253834-2.15390.0173
33-0.283082-2.4020.009443
34-0.312542-2.6520.004918
35-0.341182-2.8950.002508
36-0.361709-3.06920.001513
37-0.382874-3.24880.000881
38-0.396152-3.36150.000622
39-0.40812-3.4630.000451
40-0.42016-3.56520.000325
41-0.430276-3.6510.000246
42-0.434675-3.68830.000217
43-0.436107-3.70050.000209
44-0.433276-3.67650.000226
45-0.430209-3.65040.000246
46-0.428052-3.63210.000262
47-0.426889-3.62230.00027
48-0.426081-3.61540.000276


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9655118.19260
2-0.069188-0.58710.279492
3-0.031199-0.26470.395986
40.0393820.33420.369613
50.0151430.12850.449059
6-0.010318-0.08760.465237
7-0.022183-0.18820.425615
8-0.0238-0.2020.420262
9-0.063411-0.53810.296098
10-0.04481-0.38020.35245
11-0.038341-0.32530.372935
12-0.057377-0.48690.313917
13-0.082626-0.70110.242748
14-0.03643-0.30910.379064
15-0.003907-0.03320.486823
16-0.024411-0.20710.418244
17-0.046061-0.39080.348533
18-0.043776-0.37140.355697
19-0.043467-0.36880.35667
20-0.045324-0.38460.350839
21-0.040636-0.34480.365622
22-0.044727-0.37950.352708
23-0.020808-0.17660.430174
240.0633090.53720.296394
25-0.023928-0.2030.41984
26-0.051288-0.43520.332363
27-0.048871-0.41470.339804
28-0.051537-0.43730.3316
29-0.046966-0.39850.345714
300.0028090.02380.490524
31-0.022131-0.18780.425785
320.0209410.17770.429732
33-0.024796-0.21040.416974
34-0.045178-0.38340.351295
35-0.026875-0.2280.410128
360.0787440.66820.253081
37-0.054347-0.46120.32304
380.0896550.76080.224645
39-0.003788-0.03210.487224
40-0.037258-0.31610.376403
410.0025250.02140.491483
420.0565980.48020.316253
430.0041640.03530.485958
440.0272660.23140.408845
45-0.016331-0.13860.445088
46-0.031518-0.26740.394948
47-0.02925-0.24820.402345
48-0.039613-0.33610.368876
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/15/t12423403655axpbow0y9mvxka/1xvts1242340302.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/15/t12423403655axpbow0y9mvxka/1xvts1242340302.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/15/t12423403655axpbow0y9mvxka/29au61242340302.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/15/t12423403655axpbow0y9mvxka/29au61242340302.ps (open in new window)


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