Home » date » 2010 » Apr » 29 »

autocorrelate met trend- verkoopcijfers X - Lehaen Joni

*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, 29 Apr 2010 08:12:20 +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/Apr/29/t1272528804aykzptybqnjac89.htm/, Retrieved Thu, 29 Apr 2010 10:13:24 +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/Apr/29/t1272528804aykzptybqnjac89.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 «
154 96 73 49 36 59 95 169 210 278 298 245 200 118 90 79 78 91 167 169 289 347 375 203 223 104 107 85 75 99 135 211 335 460 488 326 346 261 224 141 148 145 223 272 445 560 612 467 518 404 300 210 196 186 247 343 464 680 711 610 613 392 273 322 189 257 324 404 677 858 895 664 628 308 324 248 272
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3051022.65980.004766
20.303992.65010.004892
3-0.100856-0.87920.191021
4-0.29839-2.60130.005579
5-0.487021-4.24583e-05
6-0.386231-3.36710.000597
7-0.428973-3.73970.000178
8-0.219159-1.91060.029915
90.0195080.17010.432705
100.1770391.54340.063445
110.376863.28540.000771
120.6252915.45120
130.2546582.22010.014698
140.1861191.62260.054413
15-0.043144-0.37610.353938
16-0.247422-2.1570.017084
17-0.330869-2.88450.002549
18-0.332563-2.89920.002444
19-0.316542-2.75960.003625
20-0.129017-1.12470.132119
21-0.048485-0.42270.336862
220.1636941.42710.07883
230.2159621.88270.031783
240.4817944.20023.6e-05
250.1825031.5910.057877
260.2199161.91720.029487
27-0.030176-0.26310.396605
28-0.131304-1.14470.127967
29-0.272736-2.37770.009969
30-0.222004-1.93540.028332
31-0.25086-2.18690.015911
32-0.126061-1.0990.137625
33-0.083068-0.72420.235593
340.0902290.78660.216981
350.1365871.19070.118731
360.3508513.05860.001535
370.1723151.50220.068594
380.1674731.460.074206
390.0227890.19870.421526
40-0.12491-1.08890.13981
41-0.157705-1.37480.08661
42-0.167519-1.46040.074151
43-0.169131-1.47440.072246
44-0.136576-1.19060.11875
45-0.059375-0.51760.303114
460.0426210.37160.355627
470.0823310.71770.237559
480.2626332.28960.012411


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3051022.65980.004766
20.232552.02730.023068
3-0.283246-2.46930.007892
4-0.34544-3.01150.001764
5-0.325442-2.83710.002916
6-0.097519-0.85010.198957
7-0.271762-2.36920.010184
8-0.295808-2.57880.005923
9-0.097947-0.85390.197926
10-0.121305-1.05750.146814
11-0.039995-0.34870.36415
120.3860423.36546e-04
13-0.154921-1.35060.090421
14-0.229335-1.99930.024576
150.1293761.12790.131461
160.1244651.08510.140662
170.0105530.0920.463469
18-0.10007-0.87240.192871
190.0316420.27580.391708
200.1307321.13970.128996
21-0.213954-1.86520.033006
220.03310.28860.386851
23-0.136631-1.19110.118656
240.1074130.93640.176015
250.0583590.50880.306196
26-0.05149-0.44890.327397
27-0.052801-0.46030.323305
280.0030880.02690.489297
290.043120.37590.354016
300.1335091.16390.124051
31-0.072302-0.63030.26519
32-0.061371-0.5350.2971
33-0.024635-0.21480.415265
340.1020550.88970.188219
35-0.023738-0.20690.418305
36-0.084878-0.740.230804
370.0061610.05370.478652
38-0.019786-0.17250.431754
39-0.026363-0.22980.409422
40-0.093466-0.81480.208861
410.0162890.1420.443727
420.0392410.34210.366611
43-0.010465-0.09120.463774
44-0.093513-0.81520.208744
450.005370.04680.481392
460.0427730.37290.355135
47-0.031958-0.27860.390654
48-0.024434-0.2130.415944
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Apr/29/t1272528804aykzptybqnjac89/17dtt1272528737.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/29/t1272528804aykzptybqnjac89/17dtt1272528737.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Apr/29/t1272528804aykzptybqnjac89/2i5sw1272528737.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/29/t1272528804aykzptybqnjac89/2i5sw1272528737.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