Home » date » 2007 » Nov » 27 » attachments

Workshop 3, Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 27 Nov 2007 03:35:39 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/27/t11961594426rsr6vq23auclvu.htm/, Retrieved Tue, 27 Nov 2007 11:30:44 +0100
 
User-defined keywords:
Q2, reeks 1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101.5 99.2 107.8 92.3 99.2 101.6 87.0 71.4 104.7 115.1 102.5 75.3 96.7 94.6 98.6 99.5 92.0 93.6 89.3 66.9 108.8 113.2 105.5 77.8 102.1 97.0 95.5 99.3 86.4 92.4 85.7 61.9 104.9 107.9 95.6 79.8 94.8 93.7 108.1 96.9 88.8 106.7 86.8 69.8 110.9 105.4 99.2 84.4 87.2 91.9 97.9 94.5 85.0 100.3 78.7 65.8 104.8 96.0 103.3 82.9 91.4 94.5 109.3 92.1 99.3 109.6 87.5 73.1 110.7 111.6 110.7 84.0 101.6 102.1 113.9 99.0 100.4 109.5 93.0 76.8 105.3
 
Text written by user:
 
Output produced by software:


Summary of compuational 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
0190
10.0234060.21070.416842
2-0.327401-2.94660.997903
3-0.105708-0.95140.827878
40.1781841.60370.056341
50.0583170.52490.300559
60.0532730.47950.316452
70.0140340.12630.449902
80.1697721.52790.065211
9-0.16321-1.46890.927132
10-0.377226-3.3950.999467
11-0.023143-0.20830.582237
120.7228526.50570
13-0.055348-0.49810.690129
14-0.297943-2.68150.99556
15-0.160678-1.44610.923997
160.064790.58310.280721
170.0232130.20890.41752
18-0.002366-0.02130.508468
19-0.02632-0.23690.593328
200.1477691.32990.093638
21-0.137971-1.24170.891042
22-0.340388-3.06350.998515
230.0045770.04120.48362
240.5654345.08891e-06
25-0.030999-0.2790.609518
26-0.20008-1.80070.962265
27-0.147069-1.32360.905323
280.0447910.40310.343963
290.05990.53910.295649
30-0.030668-0.2760.608379
31-0.025308-0.22780.589801
320.1527231.37450.086538
33-0.118946-1.07050.856217
34-0.29473-2.65260.995195
35-0.015397-0.13860.554933
360.4363683.92739e-05
37-0.016474-0.14830.558748
38-0.136867-1.23180.889206
39-0.130533-1.17480.878242
400.0321210.28910.386628
410.0303140.27280.39284
42-0.02678-0.2410.594925
43-0.04555-0.40990.658537
440.1269171.14220.128358
45-0.110821-0.99740.839227
46-0.235955-2.12360.981622
47-0.017275-0.15550.561583


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0234060.21070.416842
1-0.328129-2.95320.997942
2-0.098504-0.88650.811024
30.083710.75340.2267
4-0.009799-0.08820.535028
50.1402751.26250.1052
60.0623650.56130.288078
70.2494642.24520.013741
8-0.155195-1.39680.916848
9-0.350125-3.15110.99886
10-0.157931-1.42140.920477
110.6167975.55120
12-0.182189-1.63970.947527
130.0534730.48130.315816
14-0.148956-1.34060.908101
15-0.153825-1.38440.914984
16-0.067222-0.6050.726565
17-0.099212-0.89290.812723
18-0.021127-0.19010.575163
19-0.038988-0.35090.63671
200.1273311.1460.12759
210.0255450.22990.409373
220.0894320.80490.211621
230.0092850.08360.466803
240.0069060.06220.475297
25-0.011511-0.10360.541126
26-0.080163-0.72150.763649
27-0.027717-0.24950.598179
28-0.025094-0.22580.589053
29-0.07796-0.70160.757544
30-0.00608-0.05470.521753
310.0029350.02640.489496
32-0.018099-0.16290.564494
330.0208990.18810.425638
34-0.087494-0.78740.78334
350.0338160.30430.380823
36-0.048297-0.43470.667522
370.0401040.36090.359544
380.0310940.27980.390155
39-0.000198-0.00180.50071
40-0.095559-0.860.803845
410.054790.49310.311635
42-0.140206-1.26190.894688
43-0.066945-0.60250.725739
44-0.059951-0.53960.70451
45-0.007993-0.07190.528587
460.0388290.34950.363825
47-0.097708-0.87940.809099
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961594426rsr6vq23auclvu/109jv1196159737.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961594426rsr6vq23auclvu/109jv1196159737.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961594426rsr6vq23auclvu/2q6k01196159737.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961594426rsr6vq23auclvu/2q6k01196159737.ps (open in new window)


 
Parameters:
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 1:par1) {
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(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-1,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(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:

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