PYTHON 3 Your team has been hired by the new burgers place called “The hungry snake.” Per the client, you have the following information: the client’s name, burger’s name, time of the day, and the total bill. By the end of the day, your program will provide the following information:
1. Top three best clients (highest bills)
2. Name of the client with the second-to-last lowest bill
3. Busiest hour of the day (number of clients)
Assumptions
1. Your program will not handle more than 100 clients per day
2. The restaurant only has six types of burgers
3. The restaurant works from 10:00 am until 10:00 pm
In: Computer Science
The 2019 Farmer’s Insurance Open is a golf tournament that took place between January 24th and January 27th of 2019. The 18th hole is considered to be one of the hardest of the tournament. Let X be the number of golf strokes taken to complete the 18th hole. The probability distribution for X is:
X: 2 . 3 . 4 . 5
P(X): 0.064 . 0.673 . ??? 0.019
Find the expected number of strokes needed to complete the hole.
A) 3.218
B) 2.242
C) 0.244
D) 0.756
In: Statistics and Probability
Using the accompanying table, which describes results from groups of 8 births from 8 different sets of parents. The random variable x represents the number of girls among 8 children.
| Number of Girls x | P(x) |
|---|---|
| 0 | 0.004 |
| 1 | 0.031 |
| 2 | 0.109 |
| 3 | 0.219 |
| 4 | 0.273 |
| 5 | 0.219 |
| 6 | 0.109 |
| 7 | 0.031 |
| 8 | 0.004 |
Find the probability of getting exactly 7 girls in 8 births. Round to the nearest thousandth.
In: Statistics and Probability
Suppose you take a 30 question test, multiple choice, with each question having 4 choices. A, B, C, D. If you randomly guess on all 30 questions, what is the probability you pass the exam (correctly guess on 60% or more of the questions)? Assume none of the questions have more than one correct answer. b) what the expected number of correct guesses? what is the standard deviation? c) what would be considered an unusual number of correct guesses on the test?
In: Statistics and Probability
A local bottling company has determined the number
of machine breakdowns
per month and their results are below:
Breakdowns (x) Probability
(x-mean)^2
0
............................0.15...............?
1
............................0.41...............?
2 ............................0.22
..............?
3
............................0.17...............?
4
............................0.04...............?
5
............................0.01...............?
Use the SUMPRODUCT function in Excel to answer parts a
and b.
a) The expected number (mean) of machine
breakdowns per month is:
b) The variance of the machine breakdowns per
month is:
c) The standard deviation of the machine
breakdowns per month is:
In: Statistics and Probability
The wait time for a computer specialist on the phone is on average 45.7 minutes with standard deviation 7.6 minutes. What is the probability that the wait time for help would be 50 minutes or more? Draw and label a picture of a normal distribution with both x and z number lines underneath as in class examples, marked with all relevant values. Show all calculations and state areas to 4 decimal places.
Below what number of minutes would the 4% of shortest wait times occur?
In: Statistics and Probability
For one statistics course, among the students who purchase textbook, 70% choose physical textbook, 30% choose electronic textbook. Assume three students who made the purchases are randomly selected. Let random variable X be the number of students chosen physical textbook minus the number of students chosen electronic textbook.
1. find the probability distribution of X.
2. calculate P(X=0) and P(X=3).
3. Find the mean of X
In: Statistics and Probability
A product, sold seasonably, yields a net profit of b dollars for each unit sold and a net loss of l dollars for each unit left unsold when the season ends. The number of units of the product that are ordered at a specific department store during any season is a random variable having probability mass function p(i), i ≥ 0. If s is the total number of units stocked, find the expected profit for this product as a function of b, l, s, and p().
In: Statistics and Probability
1) Nielsen Company - which publishes the Nielsen ratings for television shows - claims that the average American watches 34.5 hours of television per week.
a) State the appropriate null and alternate hypothesis to determine if the average number of hours of TV watched by an American per week is different than the Nielsen Claim.
b) To test the Nielsen claim, you randomly select 10 Americans and record the number of hours of television watched per week. The data appear in the TV worksheet of the Hypothesis Tests HW data workbook on Moodle. Use JMP to test the hypothesis of part a).
c) Using = 0.05, draw a conclusion for the hypothesis test. Make sure you state your conclusion in the context of the problem.
d) If the true average number of hours of television watched per week is 40, what is the probability that you would conclude the alternative hypothesis of part a) with a sample of n = 10 at = 0.05, i.e., determine the power of the test.
e) If the true average number of hours of television watched per week is 40, what sample size should you take so that you would conclude the alternative hypothesis of part a) at = 0.05 with probability of at least 0.90.
| Hours |
| 30 |
| 64 |
| 49 |
| 40 |
| 21 |
| 58 |
| 9 |
| 43 |
| 39 |
| 43 |
In: Statistics and Probability
According to the US Bureau of Labor Statistics, in the United States, the employment rate measures the number of people who have a job as a percentage of the working age population. In January 2020 the rate was 61.2%.
A) Recognizing that this is a binomial situation, give the meaning S and F in this context. That is, define what you will classify as a "success" S and what you will classify as a "failure" F as it refers to being employed.
B) Next, give the values of n, p, and q.
C) Construct the complete binomial probability distribution for this situation in a table.
D) Using your table, find the probability that exactly six working aged persons are employed.
E) Find the probability that at least 5 working aged persons are employed.
F) Find the probability that fewer than 6 working aged persons are employed.
G) Find the mean and standard deviation of this binomial probability distribution.
H) By writing a sentence, interpret the meaning of the mean value found in (G) as tied to the context of the percentage of working aged persons in the US.
I) Is it unusual to have 8 working aged persons in a group of 10 who are employed? Briefly explain your answer.
In: Statistics and Probability