Homework 1

CHE 116: Numerical Methods and Statistics

1/18/2018


1. Probability

The probability of an event or element in a sample space is written as $P(A)$, where $A$ is the event or element in the sample space. Answer the following problems symbolically and simplified. Each problem is worth 1 point.

  1. Our sample space contains three elements: $Q = \{A, B, C\}$. What is the probability of observing $P(A\, \textrm{OR}\, \textrm{B}\, \textrm{OR}\, C)$

  2. If we observe two sequential independent samples with the same sample space as above, what is the probability of observing $A$ and then $B$?

  3. You have a sample space with the numbers 1-10, where each element in the sample space has the same probability. If event $E$ is elements $\{2, 5, 7\}$, then what is the probability of the event $E$, $P(E)$?

  4. What is the probability of not event $E$ from the previous question?

  5. State the number of observations/samples for the probabilities specified in questions 1.1-1.4.

2. Die Probability

You are rolling a die with 6 sides. Event $A$ is that you roll a number less than 5. Event $B$ is that you roll a $6$. Event $C$ rolling a number less than 2. Answer these problems using python code. Each problem is worth 1 point.

  1. What is the probability of event $A$?
  2. If you roll once, what is the probability of rolling event $A$ or $C$?
  3. If you roll event $A$, on your next roll what is the probability of event $B$?
  4. What is the probability of rolling event $A$ and event $B$ in the course of two rolls?
  5. What is the probability of rolling event $A$ followed by event $B$?
  6. Why are your answers different for questions 2.4 and 2.5? Answer this in words using Markdown.

3. Sample Spaces

Answers these problems symbolically

Each problem is worth 4 points

  1. You play a game where each time you flip a coin and draw a card from a 52 card deck. Both of these actions make up an observation. What is the size of the sample space?
  2. What is the sample space for number of students attending lecture if there are 80 students enrolled?
  3. You dial random 10 digit phone numbers. What's the sample size?
  4. You have a 10 character password which can contain lowercase letters and numbers. What's the sample space size?
  5. You double the length of your password. What's the sample size now?
  6. Based on the previous problem, would a password that is a complete sentence (35 characters) with only lowercase letters plus a space be more or less secure than the previous problem? Justify your answer.