This page intentionally left blank
PROBABILITY WITH R
This page intentionally left blank
PROBABILITY WITH R
An Introduction with Computer
Science Applications
JANE M. HORGAN
School of Computing Dublin
City University Dublin, Ireland
WILEY
A John Wiley & Sons, Inc. Publication
Copyright © 2009 by John Wiley & Sons, Inc. All rights reserved
Published by John Wiley & Sons, Inc., Hoboken, New Jersey
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as
permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior
written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to
the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax
(978) 750-4470, or on the web at www.copyright.com. Requests to the Publisher for permission should
be addressed to the Permissions Department, John Wiley & Sons, Inc., I ll River Street, Hoboken, NJ
07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permission.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in
preparing this book, they make no representations or warranties with respect to the accuracy or
completeness of the contents of this book and specifically disclaim any implied warranties of
merchantability or fitness for a particular purpose. No warranty may be created or extended by sales
representatives or written sales materials. The advice and strategies contained herein may not be suitable
for your situation. You should consult with a professional where appropriate. Neither the publisher nor
author shall be liable for any loss of profit or any other commercial damages, including but not limited to
special, incidental, consequential, or other damages.
For general information oh our other products and services or for technical support, please contact our
Customer Care Department within the United States at (800) 762-2974, outside the United States at (317)
572-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may
not be available in electronic formats. For more information about Wiley products, visit our web site at
www.wiley.com.
Library of Congress Cataloging-in-Publication Data:
Horgan, Jane M.,
Probability with R : an introduction with computer science applications /
Jane M. Horgan.
p. cm.
Includes bibliographical references and index.
ISBN 978-0-470-28073-7 (cloth)
1. Computer science-Mathematics. 2. Probabilities. 3. R (Computer program language) I. Title.
QA76.9.M35H863 2009
004.01'5113-dc22
2008022817
Printed in the United States of America
10 9 8 7 6 5 4 3 21
To Kathleen, mother of all the Horgans
This page intentionally left blank