Home » date » 2009 » May » 14 »

Kristof Nollekens - Datareeks - Autocorrelation Function Opgave 2a

*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 07:55:26 -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/14/t1242309384pus8254n5jej1ez.htm/, Retrieved Thu, 14 May 2009 15:56:26 +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/14/t1242309384pus8254n5jej1ez.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 «
4000 3600 1600 2500 3800 3500 4100 2000 3300 4000 4100 4200 1100 1900 4800 4000 3250 1200 3600 3400 3600 3300 1300 2500 3800 3800 3000 1600 2100 3900 4000 3900 2300 3600 3600 4200 4400 1900 2700 3600 4100 5250 1200 3000 4000 5200 2100 3400 5200 6900 2300 4100 4300 4500 4700 2200 2900 4400 5100 2300 3500 4100 4700 5400 2500 3500 3900 4100 4500 1800 4900 4500 3700 3100 1700 4000 4200 4300 3600 2600 4600 4000 2900 1800 3000 4200 4400 4900 2300 2400 3600 3900 2800 3800 4400 4200 5400 2300 3500 3800 4400 4400 2500 3700 3500 3300 3700 2200 3200 3100 4800 4400 2500 3100 4700 4300 4600 3100 3200 4300 4000 4500 2600 3600 4700 3800 4100 1700 3200 4000 3700 3600 2500 3800 4500 3500 4100 2300 3400 4800 4900 2600 3300 3900 3800 5000 1700 2700 4000 3300 4000 2500 3600 3800 5900 3600 3300 4000 4200 4300 2900 3900 5200 4000 4700 2200 2400 3700 3700 3000 2100 etc...
 
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.1824592.89640.002053
2-0.045344-0.71980.236154
30.0173890.2760.391369
40.2695554.27911.3e-05
50.5710139.06460
60.0483830.76810.221584
7-0.066891-1.06190.144658
80.0258070.40970.341196
90.3101364.92331e-06
100.4576397.26480
11-0.016911-0.26840.394287
12-0.063378-1.00610.157666
130.0464020.73660.231024
140.307654.88381e-06
150.3237025.13860
160.0085950.13640.445791
170.0014790.02350.490647
180.1117861.77450.03859
190.316465.02370
200.2450213.88966.4e-05
21-0.01904-0.30220.381356
220.0046390.07360.470674
230.094351.49780.067724
240.3108524.93461e-06
250.1404192.22910.013345
26-0.066677-1.05850.14543
27-0.014622-0.23210.408316
280.0488640.77570.219331
290.2523614.00614.1e-05
300.1168961.85570.032334
31-0.068415-1.08610.139247
32-0.031046-0.49280.311277
330.1255751.99340.023646
340.1874212.97520.001606
350.047670.75670.224956
36-0.091879-1.45850.072969
37-0.000557-0.00880.496475
380.1316792.09030.018795
390.1762282.79750.002774
400.0433270.68780.246107
41-0.076704-1.21760.112251
420.0165950.26340.396212
430.0794661.26150.10415
440.1292392.05160.020621
45-0.023549-0.37380.354426
46-0.070972-1.12660.130482
47-0.009293-0.14750.441417
480.085941.36430.086852


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1824592.89640.002053
2-0.081343-1.29130.098894
30.0428790.68070.248347
40.265164.20931.8e-05
50.5299348.41240
6-0.082509-1.30980.095731
7-0.024009-0.38110.351714
8-0.056043-0.88970.187248
90.1140031.80970.035764
100.2149943.41290.000374
11-0.02907-0.46150.322429
12-0.005611-0.08910.464548
13-0.057738-0.91660.180124
140.0282530.44850.327088
150.0502140.79710.213063
160.1182331.87690.030845
170.0787581.25020.106184
180.036120.57340.283449
190.0276620.43910.330473
200.0074490.11820.452984
21-0.015504-0.24610.402898
22-3e-04-0.00480.4981
23-0.047529-0.75450.225625
240.0743041.17950.119648
25-0.056563-0.89790.185045
26-0.073554-1.16760.122028
27-0.058909-0.93520.175301
28-0.117142-1.85960.032056
290.0196480.31190.377687
300.0921581.4630.072363
310.0143290.22750.410124
32-0.040767-0.64710.259062
330.0547220.86870.192921
34-0.120874-1.91880.028069
35-0.00959-0.15220.439563
36-0.034231-0.54340.293669
370.0482230.76550.222341
380.0188590.29940.382447
390.0287880.4570.324032
400.0062970.10.460228
41-0.009661-0.15340.439116
420.0015690.02490.490075
43-0.085679-1.36010.087504
440.0626680.99480.160386
45-0.031743-0.50390.307382
460.0343980.54610.292755
47-0.073062-1.15980.12361
480.0039740.06310.474873
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242309384pus8254n5jej1ez/1qrpc1242309324.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242309384pus8254n5jej1ez/1qrpc1242309324.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242309384pus8254n5jej1ez/2wvo31242309324.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242309384pus8254n5jej1ez/2wvo31242309324.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