Write your solution in one or more cells after each problem. Always show your work. You can use Python library functions or write your own functions and other support code. PROBLEM 1.a. What is the...

1 answer below »
Please see instructions and questions in the attached jupyter notebook


Write your solution in one or more cells after each problem. Always show your work. You can use Python library functions or write your own functions and other support code. PROBLEM 1.a. What is the probability that Deborah wins the next game if she had a short warm-up time? PROBLEM 1.b. Deborah won the last game! What is the probability that she had a short warm-up time before the game? PROBLEM 1.c. Given that the warm-up time was long, what is the probability that Robert will win the next game? PROBLEM 1.d. Can Deborah correctly claim that she has a better chance of winning a game if the warm-up time was long? PROBLEM 2.a. What is the probability that a randomly selected car from the dealership is new, given that it is a sedan? Calculate your answer directly using conditional probability. PROBLEM 2.b. Recalculate your answer to Problem 3.a but this time, use Bayes' Theorem. PROBLEM 3. Construct a 95% confidence interval for the mean based on the sample. PROBLEM 4. The Department of Applied Data Science gives a qualifying exam to applicants for admission. 60% of the applicants pass the exam and are admitted as students, and 80% of them sucessfully graduate. Because of doubts about the reliability of the exam, the department conducted an experiment where it admitted a random sample of applicants who did not pass the exam, and only 50% of those students sucessfully graduated. If the department decided to stop giving the exam, what percentage of admitted applicants would you expect to sucessfully graduate? PROBLEM 5. Applied Data Science students used machine learning to train a program to grade essay exams and deployed the program on the web. It can grade three exams in a five-minute period, and exams have been submitted to it at an averate rate of 1.2 exams every five minutes. What is the probability that more exams than the program can grade will be submitted in the next five minutes? PROBLEM 6. A sample of 36 data scientists have an average age of 41.7 years with a sample standard deviation of 6.9 years. What is a 95% confidence interval to estimate the average age of a data scientist? PROBLEM 7. After getting your data science degree, your dream job is to work for Amalgamated Number Crunchers, Inc. You believe you have a 60% chance of getting hired by them. Historically, 75% of ANC new hires had two interviews, and 45% of the unsuccessful candidates also had two interviews. What is the probability that you will be hired, given that you've just had two interviews? Prof. Moo claims that the average score on his final exams will not be 70. At the end of the school year, a random sample of 45 of his students had an average score of 72.6 with a standard deviation of 14.1. PROBLEM 8.a. What are the null and alternative hypotheses? PROBLEM 8.b. At the 0.01 level of significance, what can you conclude about Prof. Mak's claim? Explain and show your work, such as by printing intermediate values from your calculation.
Answered Same DayMar 14, 2021

Answer To: Write your solution in one or more cells after each problem. Always show your work. You can use...

Naveen answered on Mar 15 2021
132 Votes
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##
Write your solution in one or more cells after each problem.
Always show your work.
You can use Python library functions
or write your own functions and other support code.
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Two tennis-playing friends, Deborah and Robert, keep track of who won their games based on the lengths of their pregame warm-up times:
\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"
Warm-up timeDeborah winsRobert winsTotal
Short4610
Long162440
Total203050
"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# data analysis and wrangling\n",
"import pandas as pd\n",
"import numpy as np\n",
"import math\n",
"import statistics\n",
"from scipy.stats import binom"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"\n",
"
Warm-up timeDeborah winsRobert winsTotal
0Short4610
1Long162440
2Total203050
\n",
"
"
],
"text/plain": [
" Warm-up time Deborah wins Robert wins Total\n",
"0 Short 4 6 10\n",
"1 Long 16 24 40\n",
"2 Total 20 30 50"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# initialise data of lists. \n",
"data = {'Warm-up time':['Short', 'Long', 'Total'], 'Deborah wins':[4, 16, 20],'Robert wins':[6, 24, 30],'Total':[10, 40, 50]} \n",
" \n",
"# Creates pandas DataFrame. \n",
"df = pd.DataFrame(data) \n",
" \n",
"# print the data \n",
"df"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### PROBLEM 1.a. What is the probability that Deborah wins the next game if she had a short warm-up time?"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The probability that Deborah wins the next game if she had a short warm-up time is: 0.2\n"
]
}
],
"source": [
"# Define function \"probability\"\n",
"def pro(No_fav_cases,Total_No_Events):\n",
" return(round(No_fav_cases/Total_No_Events,2))\n",
"\n",
"\n",
"print(\"The probability that Deborah wins the next game if she had a short warm-up time is: \",pro(df.iloc[0,1],df.iloc[2,1]))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### PROBLEM 1.b. Deborah won the last game! What is the probability that she had a short warm-up time before the game?"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The probability that Deborah had a short warm-up time before the game is: 0.33\n"
]
}
],
"source": [
"# Define function \"before probability\"\n",
"def...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here