13.07.2015 Views

R L'essentiel - Pearson

R L'essentiel - Pearson

R L'essentiel - Pearson

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

304 Statistiques avec R Partie IVComme exemple d’utilisation, étudions des prix de vente de maisons. Généralement,les médias évoquent les prix de vente médians dans une région ; nous allonsnous servir d’un bootstrap pour étudier la qualité de la médiane comme estimateur :> b bORDINARY NONPARAMETRIC BOOTSTRAPCall:boot(data = home.sale.prices.june2008, statistic = function(d,i) {median(d[i])}, R = 1000)Bootstrap Statistics :original bias std. errort1* 845000 -3334 23287.27La fonction boot nous montre donc que la médiane est un estimateur très légèrementbiaisé.© 2011 <strong>Pearson</strong> Education France – R, <strong>L'essentiel</strong> – Joseph Adler

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!