Home » date » 2010 » Dec » 05 »

workshop 9

*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: Sun, 05 Dec 2010 10:41:36 +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/Dec/05/t1291545631156xadafskn54jk.htm/, Retrieved Sun, 05 Dec 2010 11:40:33 +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/2010/Dec/05/t1291545631156xadafskn54jk.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2938 2909 3141 2427 3059 2918 2901 2823 2798 2892 2967 2397 3458 3024 3100 2904 3056 2771 2897 2772 2857 3020 2648 2364 3194 3013 2560 3074 2746 2846 3184 2354 3080 2963 2430 2296 2416 2647 2789 2685 2666 2882 2953 2127 2563 3061 2809 2861 2781 2555 3206 2570 2410 3195 2736 2743 2934 2668 2907 2866 2983 2878 3225 2515 3193 2663 2908 2896 2853 3028 3053 2455 3401 2969 3243 2849 3296 3121 3194 3023 2984 3525 3116 2383 3294 2882 2820 2583 2803 2767 2945 2716 2644 2956 2598 2171 2994 2645 2724 2550 2707 2679 2878 2307 2496 2637 2436 2426 2607 2533 2888 2520 2229 2804 2661 2547 2509 2465 2629 2706 2666 2432 2836 2888 2566 2802 2611 2683 2675 2434 2693 2619 2903 2550 2900 2456 2912 2883 2464 2655 2447 2592 2698 2274 2901 2397 3004 2614 2882 2671 2761 2806 2414 2673 2748 2112 2903 2633 2684 2861 2504 2708 2961 2535 2688 2699 2469 2585 2582 2480 2709 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0712990.95660.170032
20.237893.19160.000835
30.367164.9261e-06
40.248073.32820.00053
50.2637683.53880.000256
60.2454143.29260.000598
70.0290190.38930.348746
80.401045.38050
90.233673.1350.001004
100.0542210.72740.233949
110.0652070.87480.191414
120.456766.12810
130.0052670.07070.47187
140.2123632.84910.002447
150.0994681.33450.091863
160.0809171.08560.13955
170.2022212.71310.003657
180.0541510.72650.234234
19-0.10326-1.38540.083825
200.234433.14520.000971
21-0.008878-0.11910.452662
22-0.045965-0.61670.269113
230.0439930.59020.277889
240.0506380.67940.248885
25-0.074279-0.99660.160158
260.1047131.40490.080892
27-0.132517-1.77790.038554
280.061440.82430.205427
290.0162420.21790.413875
30-0.122678-1.64590.050765
31-0.066783-0.8960.185728
320.0916171.22920.110306
33-0.150893-2.02440.022201
340.0184760.24790.402253
35-0.071173-0.95490.170457
36-0.030075-0.40350.343528
37-0.028164-0.37790.352989
38-0.058366-0.78310.21731
39-0.144522-1.9390.027034
400.0973481.30610.0966
41-0.078551-1.05390.146677
42-0.117993-1.5830.057583
430.0299030.40120.344378
440.0176020.23610.406793
45-0.096587-1.29590.098343
460.0961151.28950.099436
47-0.108751-1.4590.073148
480.1322871.77480.038809


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0712990.95660.170032
20.2339963.13940.00099
30.3588584.81462e-06
40.2224482.98450.001618
50.1628982.18550.015071
60.0847261.13670.128583
7-0.218152-2.92680.001933
80.1921652.57820.005366
90.1714072.29970.011307
10-0.05511-0.73940.23032
11-0.267665-3.59110.000212
120.361184.84571e-06
13-0.055632-0.74640.228205
140.0191430.25680.3988
15-0.048351-0.64870.258681
16-0.089388-1.19930.116
17-0.092995-1.24770.10689
18-0.027804-0.3730.354782
19-0.016685-0.22380.411565
20-0.056773-0.76170.22362
21-0.071789-0.96310.168383
22-0.084195-1.12960.130076
230.1090181.46260.072656
24-0.013357-0.17920.42899
25-0.062324-0.83620.202087
260.0006510.00870.496519
27-0.018886-0.25340.400133
280.103831.3930.082666
29-0.056063-0.75220.226467
30-0.0571-0.76610.222316
31-0.037988-0.50970.305454
320.0897471.20410.115068
33-0.006035-0.0810.467779
340.1109661.48880.06915
35-0.053033-0.71150.238843
36-0.022355-0.29990.382291
370.0064280.08620.465684
38-0.035203-0.47230.318643
390.0114970.15420.438795
40-0.002273-0.03050.487853
410.024240.32520.3727
42-0.080293-1.07720.141408
430.1527982.050.020907
440.0503390.67540.250154
45-0.032348-0.4340.332406
460.035650.47830.316509
470.0250070.33550.368817
480.1551752.08190.019383
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545631156xadafskn54jk/174yv1291545693.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545631156xadafskn54jk/174yv1291545693.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545631156xadafskn54jk/274yv1291545693.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/05/t1291545631156xadafskn54jk/274yv1291545693.ps (open in new window)


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