Questions
Win/Loss and With/Without Joe: Joe plays basketball for the Wildcats and missed some of the season...

Win/Loss and With/Without Joe: Joe plays basketball for the Wildcats and missed some of the season due to an injury. The win/loss record with and without Joe is summarized in the contingency table below.

Observed Frequencies: Oi's

Wins Losses Totals
With Joe 15 7 22
Without Joe 6 12 18
Totals 21 19 40


The Test: Test for a significant dependent relationship between wins/losses and whether or not Joe played. Conduct this test at the 0.01 significance level.

(a) What is the test statistic? Round your answer to 3 decimal places.

χ2

=

(b) What is the conclusion regarding the null hypothesis?

reject H0 fail to reject H0    


(c) Choose the appropriate concluding statement.

We have proven that Joe causes the team to do better. The evidence suggests that the outcome of the game is dependent upon whether or not Joe played.      There is not enough evidence to conclude that the outcome of the game is dependent upon whether or not Joe played. We have proven that the outcome of the game is independent of whether or not Joe played.

In: Math

Sixteen men enter an elevator which has a carrying capacity of 1164 kg. Suppose that the...

Sixteen men enter an elevator which has a carrying capacity of 1164 kg. Suppose that the men’s weights can be considered as independent normal random variables with mean 70 kg and standard deviation 10 kg. Then the probability of the carrying capacity being exceeded is  

Group of answer choices

41%

27.0%

67.4%

13.6%

7.2%

Flag this Question

Question 58 1 pts

United Airlines Flight 433 is a nonstop flight from Boston’s Logan airport to San Francisco International Airport. An important factor in scheduling such flights is the actual airborne flying time from takeoff to touchdown. Suppose the airborne flying time is distributed as normal with mean 370 minutes and standard deviation 16 minutes. 31 records of the times (in minutes) that it takes flight 433 to fly from Boston’s Logan airport to San Francisco International Airport are randomly selected from the 2016 database. What is the sampling distribution of the average airborne flying time?

Group of answer choices

μ ∼ N ( 370 , 2.87 ) i.e. the population is normal with mean 370 and standard deviation 2.87.

x ¯ ∼ t ( 30 ) i.e. the sample mean is t distributed on 30 degrees of freedom.

x ¯ ∼ N ( 370 , 16 ) i.e. the sample mean is normal with mean 370 and standard deviation 16.

x ¯ ∼ N ( 370 , 2.87 ) i.e. the sample mean is normal with mean 370 and standard deviation 2.87.

μ ∼ t ( 31 ) i.e. the population mean is t distributed on 31 degrees of freedom.

In: Statistics and Probability

This program needs to be in C++. I have barely gotten anywhere but am already stuck....

This program needs to be in C++. I have barely gotten anywhere but am already stuck. Any help with this one would be greatly appreciated.

Write a program that simulates playing a simplified version of the game "Candy Land." In "Candy Land" players take turns drawing cards that have a colored square on them. The player then travels on the board according to the color on the card. The first person to reach the end of the board wins.

In this version we will practice using arrays and enums. We will use an array of ints to represent the players of the game. You should have an int array of size 4, then you will prompt the user for the number of players from 2 - 4 and this will determine how much of the array you will use. You will create an enum type CARD. The values of the enum will be the possible color of the card. Value 0 should represent an empty deck, and you should have 6 colors (RED, PINK, ...).

To draw a card you will read a number from cards.txt. Write a function that takes an ifstream as an input parameter and returns a CARD. Read a number from the file and convert the number to a variable of the CARD type.

After prompting for the number of players use a loop to draw cards for each player. After drawing a card, move the player by adding the card value to the player total. The game will end either when the first player reaches 20 or there are no more cards (input file reaches the end). The winner is the first player to have a score of 20 or more, or the player with the most points after all the cards have been drawn.

The program should output for each player's turn the current player, the card they drew, how many spaces they move, and their location after moving (total score).

In: Computer Science

A company is planning to survey the passengers on a particular bus service. Over the years,...

A company is planning to survey the passengers on a particular bus service. Over the years, the average number of passengers per trip on the bus has been 60 and the standard deviation of the number of passengers per trip has been 18.
q13. If 36 bus trips were randomly selected, what is the probability that the average number of passengers (for the sample of 36 trips) would be more than 66 ie. P X( 66) > ?
(a) 0.0228
(b) 0.4772
(c) 0.3694
(d) 0.1306
(e) cannot be determined unless the number of passengers per trip is normally distributed

Q14. If 9 Bus trips were randomly selected, what is the probability that the average number of passengers (for the sample of 9 trips) would be between 54 and 66 ie. P X (54 66) < < ?
(a) 0.6826
(b) 0.2611
(c) 0.3413
(d) 0.9545
(e) cannot be determined unless the number of passengers per trip is normally distributed

Q15. If 9 bus trips were randomly selected, then the standard error of the mean ( X σ ) for the variable X, the number of passengers per trip, is (a) 0.1111
(b) 18
(c) 2
(d) 6
(e) Cannot be determined as the sample size is too small (n < 30)








In: Statistics and Probability

Create a Java class named Trivia that contains three instance variables, question of type String that...

Create a Java class named Trivia that contains three instance variables, question of type String that stores the question of the trivia, answer of type String that stores the answer to the question, and points of type integer that stores the points’ value between 1 and 3 based on the difficulty of the question.

Also create the following methods:

  1. getQuestion( ) – it will return the question.
  2. getAnswer( ) – it will return the answer.
  3. getPoints( ) – it will return the point
  4. setQuestion( String ) – sets the value of the question variable
  5. setAnswer( String ) – sets the value of the answer variable
  6. setPoints( int ) – sets the value of the points variable
  7. Constructor to initialize the instance variables.
  8. Overload Constructor to set the instance variables.
  9. Add any other methods you need such as equal( ), toString( ), display( ), calcPoints( )...

Create Java application that contains a main method that plays a simple Trivia game. The game should have 5 questions. Each question has a corresponding answer and point value between 1 and 3. Implement the game using an array of 5 Trivia objects.

Next, open a binary file and store those 5 Trivia objects into a binary file then close the file. Open the file again to read each question one at a time and store them into an array of objects.

Randomly, display a question and allow the player to enter an answer.

If the player’s answer matches the actual answer, the player wins the number of points for that question. If the player’s answer is incorrect, the player wins no points for the question. Make sure the answer is not case sensitive and it is only one word or two words at most. The program should show the correct answer if the player is incorrect. After the player has answered all five questions, the game is over and your program should display the player’s total score.

You need to turn in the code, a sample output of those 5 questions, the player's answers and the total.

Make sure it is readable, formatted and commented.

In: Computer Science

Using Python, Assignment Write a program that plays a game of craps. The program should allow...

Using Python,

Assignment
Write a program that plays a game of craps. The program should allow the player
to make a wager before each “turn”. Before each turn, allow the user to either
place a bet or exit the game. After each turn display the player’s current balance.
Specifics
Each player will start with $500.00. Initially, and after each turn give the user the
option of betting or leaving the program. Implement this any way you wish, but
make it clear to the user what their options are. If the user chooses to place a
bet, ask for the amount that will be wagered and start that “turn,” or bet. Each
turn will consist of one or more rolls of the dice. For each roll, the program should
display the result of both die and the total value of the roll. Then indicate the
outcome from that roll (win/lose/continue rolling). Once a turn, or bet is finished,
indicate the outcome of the bet and the updated balance. When the user
chooses to exit the program display their final balance. The use of vertical
whitespace in the output may be very useful in making the output readable.
Rules for craps
Total value of dice after first roll:
7 or 11 – player wins
2, 3, or 12 – player loses
Any other value and the player rolls again – the total of the dice is now their
“point”
Total value of dice following the initial roll:
The players “point” – player wins
7 – player loses
Any other value and the player rolls again until rolling a 7 or their point
Requirements
Extra credit will be considered for text based displays that show the face of each
die rather than just the value of the dice. Deductions will be applied for poor or no
use of subroutines; there should be ample opportunities for subroutines in this
program.
At the very least you should have a subroutine which returns a random number between 1 and 6.

In: Computer Science

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat...

USA Today reported that approximately 25% of all state prison inmates released on parole become repeat offenders while on parole. Suppose the parole board is examining five prisoners up for parole. Let x = number of prisoners out of five on parole who become repeat offenders.

x 0 1 2 3 4 5
P(x) 0.230 0.372 0.224 0.149 0.024 0.001

(a) Find the probability that one or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)

(b) Find the probability that two or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)

(c) Find the probability that four or more of the five parolees will be repeat offenders. (Round your answer to three decimal places.)

(d) Compute μ, the expected number of repeat offenders out of five. (Round your answer to three decimal places.)

μ =________prisoners

(e) Compute σ, the standard deviation of the number of repeat offenders out of five. (Round your answer to two decimal places.)
σ = _______prisoners

In: Statistics and Probability

Approximately 6.85 left-handed people are killed each day by using an object or machinery designed for...

Approximately 6.85 left-handed people are killed each day by using an object or machinery designed for right-handed people. Let X be the number of left-handed people killed this way in one day.

a. What values can X take? Why is this a Poisson situation? What is the parameter?

b. What is the probability that exactly 7 left-handed people will be killed using a right-handed object tomorrow?

c. What is the expected number of left-handed people killed using a right-handed object over the next week?

d. What is the standard deviation of the number of left-handed people killed using a right-handed object over the next week?

e. What is the probability that at least 2 left-handed people will be killed using a right-handed object tomorrow?

f. What is the probability that you will have to check more than 3 days until you find the first day which has at least 2 left-handed people killed using a right-handed object? What distribution are you using now and what is the parameter?

In: Statistics and Probability

A Three students independently collect different samples of size 20 to test a null hypothesis that...

A Three students independently collect different samples of size 20 to test a null hypothesis that the average number of eggs in a fairy wren's nest is 2. In reality, the null hypothesis is true, but the students do not know this. Each student sets the level of significance of his/her hypothesis test at 0.05.

What is the probability that at least one student will commit a Type I error?

a. 0.86
b. 0.05
c. 0.95
d. 0.14

B In a two-tailed hypothesis test of means, if the null mean is false, and the distance between the true mean and the null mean increases,
a. The power of the test decreases
b. The probability of making a Type 2 error decreases
c. The probability that a sample mean will fall in the retention region increases
d. The probability of making a Type I error decreases
e. (a) and (c)

C Three students independently collect different samples of size 20 to test a null hypothesis that the average number of eggs in a fairy wren's nest is 2. In reality, the null hypothesis is true, but the students do not know this. Each student sets the level of significance of his/her hypothesis test at 0.05.

What is the probability that at least one student will commit a Type I error?
a. 0.86
b. 0.05
c. 0.95
d. 0.14


In: Statistics and Probability

Harper's Index reported that the number of (Orange County, California) convicted drunk drivers whose sentence included...

Harper's Index reported that the number of (Orange County, California) convicted drunk drivers whose sentence included a tour of the morgue was 542, of which only 1 became a repeat offender.

(a) Suppose that of 1074 newly convicted drunk drivers, all were required to take a tour of the morgue. Let us assume that the probability of a repeat offender is still p = 1/542. Explain why the Poisson approximation to the binomial would be a good choice for r = number of repeat offenders out of 1074 convicted drunk drivers who toured the morgue.

The Poisson approximation is good because n is large, p is small, and np < 10.The Poisson approximation is good because n is large, p is small, and np > 10.     The Poisson approximation is good because n is large, p is large, and np < 10.The Poisson approximation is good because n is small, p is small, and np < 10.



What is λ to the nearest tenth?


(b) What is the probability that r = 0? (Use 4 decimal places.)


(c) What is the probability that r > 1? (Use 4 decimal places.)


(d) What is the probability that r > 2? (Use 4 decimal places.)


(e) What is the probability that r > 3? (Use 4 decimal places.)

In: Math