{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Homework 2\n", "====\n", "#### CHE 116: Numerical Methods and Statistics\n", "\n", "1/25/2018\n", "\n", "----" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "1. Combinations and Permutations\n", "====\n", "1. [1 point] How many ways can you rearrange the sequence A, B, C?\n", "2. [1 point] How many ways can you rearrange the letters in the word 'shelter'? *Hint: there is a repeated letter*\n", "3. [2 points] How many ways can you rearrange the letters in the word 'sufficient'?\n", "4. [5 points] You are at DiBella's making a sandwich. They have 20 possible toppings. How many sandwich's are possible? Assume that the order in which toppings are applied doesn't matter.\n", "5. [5 points] DiBella's has a new policy that you cannot have more than 5 toppings. Now how many sandwich's are possible?\n", "6. [5 points] You are playing a video game where two teams compete in a 6 versus 6 format. The teams select characters from a set of 100 possible characters and the same character cannot appear on either team (all 12 are unique). How many unique match-ups (6 v 6 combinations) are possible? *Note: the teams are indistinguishable. If you exchange the 6 characters between the two teams it's still the same match-up.*" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "2. Scheduling\n", "====\n", "Use your ability to compute combinations and permutations to calculate number of possible schedules.\n", "\n", "1. [1 point] You have 8 chores to do this weekend. How many ways can you complete the chores? \n", "2. [2 points] Your friend is now helping you do the chores. Each chore takes exactly one hour, is unique, and you both want to be completed within 4 hours. How many ways can the both of you complete the chores?\n", "3. [5 points] Another friend has come to help you do chores. Now you decide that the chores should be complete within 3 hours. How many ways can the three of you complete the chores?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "3. Probability\n", "===\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "1. [1 point] Using the above graph, take all possible paths from the root (node A) to at least one other node to be the sample space. What is that sample space? An example of on path would be ACF. \n", "\n", "2. [1 point] Assume the probability of all paths to be equal. What is the probability of one of the paths?\n", "\n", "3. [2 points] Take a random variable $L$ to be the length (number of nodes) of the paths. What is $P(L = 3)$?\n", "\n", "4. [2 points] Take the random variable $C$ to be $1$ when a path contains node C and $0$ otherwise. What is $P(C = 1)$?\n", "\n", "5. [2 points] What is $P(C = 1, L = 3)$? \n", "\n", "6. [2 points] What about $P(C = 1 \\, | \\, L = 3)$? \n", "\n", "7. [5 points] Write out all possible paths with $L = 3$ and mark as bold those which have $C = 1$. Use this as justification for your answer to 3.6.\n", "\n", "8. [3 points] Are random variables C and L independent?\n", "\n", "9. [3 points] Define a third random variable, D, to indicate if node D is in the path. Are D and C conditionally independent of L?" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.2" } }, "nbformat": 4, "nbformat_minor": 2 }