[R] Bug : Autocorrelation in sample drawn from stats::rnorm (hmh)

hmh hugomh @end|ng |rom gmx@|r
Fri Oct 5 10:36:58 CEST 2018


On 05/10/2018 10:28, Annaert Jan wrote:
> you discard any time series structure;
But that is PRECISELY what a call a bug:
There should not be any "time series structure" in the output or rnorm, 
runif and so on but there is one.

rnorm(N,0,1)
should give on average the same output as
sample(rnorm(N,0,1))

Which is not the case. rnorm(N,0,1) should draw INDEPENDENT samples i.e. 
without time series structure !


-- 
- no title specified

Hugo Mathé-Hubert

ATER

Laboratoire Interdisciplinaire des Environnements Continentaux (LIEC)

UMR 7360 CNRS -  Bât IBISE

Université de Lorraine  -  UFR SciFA

8, Rue du Général Delestraint

F-57070 METZ

+33(0)9 77 21 66 66
- - - - - - - - - - - - - - - - - -
Les réflexions naissent dans les doutes et meurent dans les certitudes. 
Les doutes sont donc un signe de force et les certitudes un signe de 
faiblesse. La plupart des gens sont pourtant certains du contraire.
- - - - - - - - - - - - - - - - - -
Thoughts appear from doubts and die in convictions. Therefore, doubts 
are an indication of strength and convictions an indication of weakness. 
Yet, most people believe the opposite.


	[[alternative HTML version deleted]]




More information about the R-help mailing list