diff --git a/your-code/main.ipynb b/your-code/main.ipynb index b8b7a9c..bc2e385 100644 --- a/your-code/main.ipynb +++ b/your-code/main.ipynb @@ -24,7 +24,23 @@ "outputs": [], "source": [ "\"\"\"\n", - "your solution here\n", + "P(A U B) = P(A) + P(B) - P(A and B)\n", + "P(A U B) = 0.30 + 0.60 - 0.10\n", + "P(A U B) = 0.80\n", + "\n", + "P(A and not B) = P(A) - P(A and B) = 0.3 - 0.1 = 0.2\n", + "\n", + "P(A and (B U not B)) = P(A) = 0.3\n", + "\n", + "P(not A and not B) = 1 - P(A U B) = 1 - 0.8 = 0.2\n", + "\n", + "P(not (A and B)) = 1 - P(A and B) = 1 - 0.1 = 0.9\n", + " \n", + "1 - False\n", + "2 - True\n", + "3 - False\n", + "4 - False\n", + "5 - True\n", "\"\"\"" ] }, @@ -49,7 +65,10 @@ "outputs": [], "source": [ "\"\"\"\n", - "your solution here\n", + "1 -> 10/30 = 1/3\n", + "2 -> 10/29\n", + "3 -> 11/28\n", + "4 -> 12/30 = 4/10\n", "\"\"\"" ] }, @@ -68,17 +87,6 @@ "What is the probability of rain, given the day started cloudy?" ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "\"\"\"\n", - "your solution here\n", - "\"\"\"" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -116,7 +124,18 @@ "outputs": [], "source": [ "\"\"\"\n", - "your solution here\n", + "P(dizer sim AND Ser homem) = P(dizer que sim) X P(Ser homem) -> Se forem independentes \n", + "\n", + "P(dizer que sim) = 67.5%\n", + "\n", + "P(ser homem) = 48%\n", + "\n", + "P(dizer sim AND Ser homem) = 32.4%\n", + "\n", + "Homens que disseram que sim = 324 -> Propabilidade = 324/1000 = 32.4%\n", + "\n", + "These events are independent. \n", + "\n", "\"\"\"" ] }