%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------------------------------------------------------------
% Simulation Example *****************************************************
% ------------------------------------------------------------------------
% Submitted:      Dr. Eric Suess,Statistics 6501,Winter 2002
% Submitted Date: January 1st, 2002
% Accepted Date:  January 9th, 2002
% ------------------------------------------------------------------------
% This is a first draft of the handout "System Problem" in LaTeX.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12]{report}

\usepackage{latexsym}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{newlfont}
%\usepackage{graphicx,fullpage,subfigure,pstricks}

\setlength{\oddsidemargin}{-0.4cm}
\setlength{\evensidemargin}{0cm}
\setlength{\topmargin}{-0.75cm}
\setlength{\textheight}{8.9in}
\setlength{\textwidth}{6.5in}
\renewcommand{\baselinestretch}{1}
\setlength{\parskip}{3mm}
\setlength{\parindent}{0mm} % indented paragraphs just don't
%\pagestyle{plain}

\begin{document}

\pagestyle{myheadings}
\markright{Statistics 6501, Winter 2009}

\large
\begin{center}
\textbf{Probability Examples}
\end{center}

\normalsize
\textbf{System Problems: In series, In parallel}

Suppose a system consists of components connected in {\it series}.  
The system fails if any one of the components fails.  If there are 
{\it n} independent components and each fails with probability {\it p},

\begin{enumerate}
\item what is the probability that the system will fail?
\item Suppose the system of comments is connected in {\it parallel}, 
what is the probability the system will fail?
\item Draw diagrams that accurately represent the systems.
\end{enumerate}

\normalsize
\textbf{Birthday Problem Simulation}

Simulate birthdays

b = sample(1:365,25, repl = T)

Check matches

x = 25 - length(unique(b))

\normalsize
\textbf{Hardy-Weinberg Law}

See Problems 72 and 73. 

\end{document}
% ------------------------------------------------------------------------
