Home » date » 2007 » Nov » 29 » attachments

Q2 Tijdreeks 4 Methode 2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 03:25:26 -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/29/t11963313060o9jnce2o9avdpf.htm/, Retrieved Thu, 29 Nov 2007 11:15:13 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
40.3 38.4 46.9 56.1 57.4 58.5 66.6 71.8 80.7 78.2 85.0 87.6 88.6 95.0 96.3 83.3 96.9 103.4 99.3 103.8 113.4 111.5 114.2 90.6 90.8 96.4 90.0 92.1 97.2 95.1 88.5 91.0 90.5 75.0 66.3 66.0 68.4 70.6 83.9 90.1 90.6 87.1 90.8 94.1 99.8 96.8 87.0 96.3 107.1 115.2 106.1 89.5 91.3 97.6 100.7 104.6 94.7 101.8 102.5 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
017.7460
10.8380966.49190
20.6574265.09242e-06
30.535324.14665.4e-05
40.4490183.47810.000473
50.3505972.71570.004313
60.2389711.85110.034542
70.1385661.07330.143711
80.0834380.64630.260272
90.0465230.36040.35992
10-0.016797-0.13010.551543
11-0.102936-0.79730.785802
12-0.205815-1.59420.941931
13-0.288337-2.23340.98537
14-0.311221-2.41070.990499
15-0.332959-2.57910.993812
16-0.370769-2.8720.997185
17-0.352918-2.73370.995891
18-0.316652-2.45280.99145
19-0.306549-2.37450.989606
20-0.290986-2.2540.986068
21-0.230584-1.78610.960432
22-0.1544-1.1960.881795
23-0.075815-0.58730.720385
24-0.058321-0.45180.673462
25-0.015078-0.11680.546294
260.0534120.41370.340275
270.1138380.88180.190706
280.1612881.24930.108198
290.1939551.50240.069123
300.2294551.77730.04029
310.2492171.93040.029142
320.2790852.16180.017317
330.3058352.3690.010537
340.2756712.13530.018413
350.233061.80530.038025
360.1869521.44810.076394
370.1257250.97390.167018
380.0363050.28120.389757
39-0.011414-0.08840.535079
40-0.043354-0.33580.630911
41-0.06075-0.47060.680173
42-0.106761-0.8270.794233
43-0.151467-1.17330.877336
44-0.169665-1.31420.903112
45-0.154211-1.19450.88151
46-0.166862-1.29250.899431
47-0.21272-1.64770.947681
48-0.234704-1.8180.962972
49-0.211323-1.63690.946557
50-0.162048-1.25520.892867
51-0.13412-1.03890.848487
52-0.161365-1.24990.89191
53-0.178882-1.38560.914503
54-0.172971-1.33980.907323
55-0.149792-1.16030.874736
56-0.12019-0.9310.822204
57-0.11654-0.90270.814857
58-0.08646-0.66970.747197
59-0.046017-0.35640.63862


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.8380966.49190
1-0.151144-1.17080.876837
20.0953550.73860.23151
30.0165610.12830.449178
4-0.091193-0.70640.758657
5-0.083794-0.64910.740614
6-0.046661-0.36140.640478
70.0508420.39380.347554
8-0.014988-0.11610.546019
9-0.10902-0.84450.799119
10-0.107499-0.83270.795836
11-0.167571-1.2980.900372
12-0.075849-0.58750.720473
130.069810.54070.295341
14-0.077076-0.5970.723632
15-0.07055-0.54650.706618
160.1275730.98820.163517
17-0.054062-0.41880.661557
18-0.118843-0.92060.819516
190.0338210.2620.397118
200.1447851.12150.133272
210.0375240.29070.386158
220.053750.41630.339321
23-0.154152-1.19410.881422
240.1105690.85650.197574
250.0156790.12150.45187
260.0086360.06690.473445
270.0552980.42830.334971
280.0053880.04170.483425
290.0902150.69880.243687
30-0.090976-0.70470.758136
310.0195450.15140.440086
320.1119770.86740.194597
33-0.112371-0.87040.80623
340.0037240.02880.488542
35-0.06075-0.47060.680171
36-0.112951-0.87490.807445
37-0.096615-0.74840.771421
380.1474891.14240.128904
39-0.075967-0.58840.720776
400.0884030.68480.248065
41-0.072196-0.55920.710956
42-0.022469-0.1740.568791
43-0.016632-0.12880.55104
440.1434051.11080.135541
45-0.039543-0.30630.619782
46-0.088141-0.68270.751301
470.026530.20550.418939
480.104380.80850.210991
49-0.05005-0.38770.650191
50-0.087244-0.67580.749113
51-0.067161-0.52020.697589
52-0.047696-0.36940.643453
53-0.101706-0.78780.783045
540.0157450.1220.45167
55-0.03724-0.28850.613006
56-0.00098-0.00760.503017
570.0612730.47460.31839
58-0.080708-0.62520.732882
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963313060o9jnce2o9avdpf/1akla1196331924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963313060o9jnce2o9avdpf/1akla1196331924.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963313060o9jnce2o9avdpf/2ipxs1196331924.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963313060o9jnce2o9avdpf/2ipxs1196331924.ps (open in new window)


 
Parameters:
par1 = 60 ; 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