Homework 4: Probability and z scores
|
Variable 2: # of traffic violations |
|
2 |
|
5 |
|
5 |
|
3 |
|
2 |
|
1 |
|
1 |
|
6 |
|
2 |
|
4 |
In: Statistics and Probability
| Use the data and develop 95% and 99% prediction intervals for
the following A. the hours per week that an individual will spend in his vehicle B. the number of miles driven per week |
| Vehicle Driven | Type | Satisfaction with vehicle | Gender | Age | # of hours per week in vehicle | Miles driven per week | Number of Children | Average number of riders | Miles from work |
| Truck | Domestic | Yes | Male | 31 | 10 | 450 | 0 | 1 | 30 |
| Truck | Domestic | Yes | Male | 29 | 5 | 370 | 1 | 1 | 22 |
| Truck | Foreign | No | Male | 26 | 12 | 580 | 0 | 1 | 15 |
| Truck | Domestic | No | Male | 18 | 6 | 300 | 0 | 1 | 20 |
| SUV | Domestic | Yes | Male | 49 | 21 | 1000 | 0 | 1 | 22 |
| SUV | Foreign | Yes | Male | 50 | 16 | 840 | 2 | 1 | 45 |
| SUV | Domestic | Yes | Male | 48 | 15 | 1400 | 3 | 4 | 25 |
| SUV | Foreign | Yes | Male | 45 | 5 | 300 | 2 | 2 | 20 |
| SUV | Domestic | Yes | Male | 45 | 15 | 850 | 0 | 1 | 25 |
| SUV | Domestic | Yes | Male | 44 | 10 | 700 | 2 | 1 | 40 |
| SUV | Foreign | Yes | Male | 41 | 5 | 350 | 1 | 1 | 20 |
| SUV | Domestic | Yes | Male | 41 | 30 | 1500 | 4 | 3 | 15 |
| SUV | Foreign | No | Female | 39 | 6 | 280 | 1 | 1 | 17 |
| SUV | Foreign | Yes | Female | 36 | 4 | 400 | 0 | 1 | 20 |
| SUV | Foreign | Yes | Female | 33 | 3 | 420 | 0 | 1 | 25 |
| SUV | Domestic | Yes | Male | 31 | 10 | 675 | 0 | 1 | 35 |
| SUV | Domestic | No | Female | 31 | 15 | 800 | 1 | 1 | 50 |
| SUV | Domestic | No | Female | 29 | 4 | 300 | 1 | 1 | 20 |
| SUV | Domestic | Yes | Male | 28 | 3 | 400 | 1 | 1 | 15 |
| Mini Van | Domestic | Yes | Female | 55 | 8 | 400 | 0 | 2 | 0 |
| Mini Van | Domestic | No | Female | 43 | 10 | 700 | 2 | 3 | 0 |
| Mini Van | Domestic | Yes | Female | 41 | 10 | 720 | 1 | 2 | 15 |
| Mini Van | Foreign | Yes | Female | 38 | 10 | 450 | 4 | 5 | 0 |
| Mini Van | Foreign | Yes | Female | 39 | 15 | 1000 | 1 | 2 | 0 |
| Mini Van | Domestic | No | Male | 35 | 5 | 350 | 2 | 2 | 0 |
| Mini Van | Domestic | Yes | Female | 33 | 10 | 800 | 2 | 3 | 0 |
| Mini Van | Foreign | Yes | Female | 32 | 2 | 200 | 4 | 5 | 5 |
| Mini Van | Foreign | Yes | Female | 28 | 8 | 350 | 3 | 4 | 0 |
| Car | Domestic | Yes | Female | 21 | 4 | 150 | 0 | 1 | 0 |
| Car | Domestic | No | Female | 62 | 5 | 175 | 0 | 2 | 0 |
| Car | Domestic | Yes | Female | 61 | 5 | 355 | 0 | 1 | 15 |
| Car | Foreign | Yes | Male | 60 | 5 | 150 | 0 | 1 | 10 |
| Car | Domestic | No | Male | 58 | 10 | 600 | 0 | 1 | 35 |
| Car | Domestic | Yes | Female | 51 | 11 | 600 | 0 | 1 | 40 |
| Car | Domestic | Yes | Female | 47 | 4 | 300 | 0 | 1 | 21 |
| Car | Domestic | No | Male | 46 | 4 | 275 | 0 | 1 | 18 |
| Car | Domestic | No | Male | 44 | 6 | 285 | 2 | 3 | 16 |
| Car | Foreign | No | Female | 42 | 5 | 400 | 2 | 3 | 22 |
| Car | Foreign | Yes | Female | 41 | 5 | 350 | 2 | 2 | 23 |
| Car | Domestic | No | Female | 41 | 10 | 600 | 1 | 2 | 34 |
| Car | Domestic | Yes | Female | 39 | 10 | 700 | 1 | 2 | 45 |
| Car | Foreign | Yes | Female | 34 | 10 | 600 | 1 | 2 | 16 |
| Car | Foreign | Yes | Male | 33 | 5 | 400 | 1 | 2 | 22 |
| Car | Foreign | Yes | Male | 30 | 5 | 350 | 1 | 2 | 18 |
| Car | Domestic | Yes | Female | 29 | 5 | 250 | 0 | 1 | 19 |
| Car | Foreign | Yes | Female | 27 | 6 | 355 | 0 | 2 | 23 |
| Car | Foreign | Yes | Female | 26 | 5 | 175 | 0 | 1 | 11 |
| Car | Domestic | No | Female | 24 | 5 | 300 | 0 | 1 | 4 |
| Car | Domestic | Yes | Female | 22 | 5 | 350 | 0 | 1 | 3 |
| Car | Foreign | No | Female | 19 | 5 | 500 | 0 | 2 | 4 |
In: Statistics and Probability
Find the reduced row echelon form of the following matrices. Interpret your result by giving the solutions of the systems whose augmented matrix is the one given.
[ 0 0 3 -1 5
1 0 0 4 2
4 1 3 0 -8
1 2 7 9 0 ]
In: Math
Researchers were interested in the relationship between mental health and living with a pet. Students were surveyed and grouped by pet type as either “Cats”, “Dogs”, or “No Pets”, and completed a scale on depressive symptoms on a scale of 1-7, where 7 indicates high levels of depressive symptoms. Using the data in the frequency table below, please conduct a one-way ANOVA to determine if there are any significant differences between these groups. Use α = .05, report η², and if the ANOVA is significant conduct a post-hoc test using Scheffe procedure. Finally, please report your answer in words and show all work and calculations step by step (don't forget to include the ANOVA table).
You are strongly encouraged to do your work in tables to help structure your work and keep it easily visible in your images. All work must be done by hand.
|
Cats |
Dogs |
No Pets |
|||
|
x |
f |
x |
f |
x |
f |
|
1 |
0 |
1 |
0 |
1 |
4 |
|
2 |
0 |
2 |
3 |
2 |
5 |
|
3 |
1 |
3 |
4 |
3 |
2 |
|
4 |
3 |
4 |
2 |
4 |
1 |
|
5 |
5 |
5 |
2 |
5 |
0 |
|
6 |
2 |
6 |
1 |
6 |
0 |
|
7 |
1 |
7 |
0 |
7 |
0 |
In: Statistics and Probability
Java please. No "hard coding" please. Need to ask for the file and load the sample file information into the class.
There is a complete theory about how queues work. In this problem create a limited model to study the order in which a bunch of customers will be attended by their cashiers on a supermarket. The conditions for the experiment are:
• Each cashier spends the same amount of time with each customer (this is just an exercise, not real life).
• There will be a defined number of queues but never less than 2 and never more than 5.
• There is a variable number of customers, never less than 1 and never more than 20 and they are identified by a letter (A, B, C, …)
• The customers are distributed randomly among the different queues. • If two customers are served at the same time, we would consider that they will be ordered following the queue number they are at (first will be customer in queue 1, second customer in queue 2)
Write a program to give the order in which the customers are attended, for example:
• There are 4 queues:
• Cashier number 1 spends 3 minutes on each customer
• Cashier number 2 spends 2 minutes on each customer
• Cashier number 3 spends 4 minutes on each customer
• Cashier number 4 spends 1 minutes on each customer
• Customers are distributed as follows:
• Queue 1 (Cashier 1): Customer A, customer E, customer I
• Queue 2 (Cashier 2): B, F, J, N
• Queue 3 (Cashier 3): C, G, L
• Queue 4 (Cashier 4): D, H, M, O, P, Q
With this input the customers will have been served in the following order and timing:
D (after 1 minute)
B (after 2 minutes on queue 2)
H (after 2 minutes on queue 4)
A (after 3 minutes on queue 1)
M (after 3 minutes on queue 4)
F (after 4 minutes on queue 2)
C (after 4 minutes on queue 3)
O (after 4 minutes on queue 4)
P (after 5 minutes)
E (after 6 minutes on queue 1)
J (after 6 minutes on queue 2)
Q (after 6 minutes on queue 4)
N (after 8 minutes on queue 2)
G (after 8 minutes on queue 3)
I (after 9 minutes)
L (after 12 minutes)
The input from a data file will have the number of queues on the first line, followed by the information for each queue, first the time spent by the cashier on a customer, the number of customers on a queue and then the order of the customers separated by a space.
Output to the screen the list of served customers ordered by the time spent in the queue separated by spaces.
Must use a queue data structure.
Refer to the sample output below.
Sample File: the following information is on the queues.txt file
4
3 3 A E I
2 4 B F J N
4 3 C G L
1 6 D H M O P Q
Sample Run:
Enter file name: queues.txt
The list ordered by time spent: D B H A M F C O P E J Q N G I L
In: Computer Science
Give the subshell designations of electrons with the following quantum numbers.
a) n = 3, l = 0, ml = 0
b) n = 2, l = 1, ml = -1
c) n = 4, l = 3, ml = -2
d) n = 4, l = 2, ml = 0
In: Chemistry
The JM Partnership was formed to acquire land and subdivide it as residential housing lots. On March 1, 2019, Jessica contributed land valued at $600,000 to the partnership, in exchange for a 50% interest in JM. She had purchased the land in 2011 for $420,000 and held it for investment purposes (capital asset). The partnership holds the land as inventory.
On the same date, Matt contributed land valued at $600,000 that he had purchased in 2009 for $720,000. He also became a 50% owner. Matt is a real estate developer, but this land was held personally for investment purposes. The partnership holds this land as inventory.
In 2020, the partnership sells the land contributed by Jessica for $620,000. In 2021, the partnership sells the real estate contributed by Matt for $580,000.
a. What is each partner's initial basis in his or her partnership interest?
Jessica's initial basis is $420000. Matt's initial basis is $720000.
b. What is the amount of gain or loss recognized on the sale of the land contributed by Jessica? What is the character of this gain or loss?
The amount of the gain recognized on the sale of the land contributed by Jessica is $200000, and the type is ordinary income .
c. What is the amount of gain or loss recognized on the sale of the land contributed by Matt? What is the character of this gain or loss?
The amount of the loss recognized on the sale of the land contributed by Matt is $____________, and the type is part capital loss and part ordinary loss .
d. How would your answer in (c) change if the property was sold in 2026?
The amount of the loss recognized on the sale of the land contributed by Matt is $_________________, and the type is ordinary loss .
In: Accounting
The Cronch Café, located at the Gulf of Mexico, has an increase in business during the summer vacation season. The owner hires a large number of servers as seasonal help. When he interviews a prospective server, he would like to provide data on the amount a server can earn in tips. He believes that the amount of the bill and the number of diners are both related to the amount of the tip. He gathered this sample information. 1) Develop a multiple regression equation with the amount of tips as the dependent variable and the amount of the bill and the amount of diners as independent variables. Write out the regression equation. How much does another diner add to the amount of the tips? 2) Conduct a global test of hypothesis to determine if at least one of the independent variables is significant What is your conclusion? 3) Conduct an individual test on each of the variables. Should one or the other be deleted? Plot the residuals against the fitted values. Is it reasonable to conclude they are random?
| Customer | Amount of Tip ($) | Amount of Bill ($) | Diners |
| 1 | 5.15 | 74.5 | 2 |
| 2 | 4.5 | 28.23 | 4 |
| 3 | 1 | 10.65 | 1 |
| 4 | 2.4 | 19.82 | 3 |
| 5 | 5 | 28.62 | 3 |
| 6 | 4.25 | 24.83 | 2 |
| 7 | 0.5 | 6.25 | 1 |
| 8 | 6 | 49.2 | 4 |
| 9 | 5 | 43.26 | 3 |
| 10 | 4.65 | 62.23 | 1 |
| 11 | 5.6 | 84.81 | 1 |
| 12 | 6 | 34.99 | 3 |
| 13 | 4 | 33.91 | 4 |
| 14 | 3.35 | 23.06 | 2 |
| 15 | 0.75 | 4.65 | 1 |
| 16 | 3.3 | 23.59 | 2 |
| 17 | 3.5 | 22.3 | 2 |
| 18 | 3.25 | 32 | 2 |
| 19 | 5.4 | 50.02 | 4 |
| 20 | 2.25 | 17.6 | 3 |
| 21 | 4.35 | 63.16 | 6 |
| 22 | 3 | 20.27 | 2 |
| 23 | 1.25 | 19.53 | 2 |
| 24 | 3.25 | 27.03 | 3 |
| 25 | 3 | 21.28 | 2 |
| 26 | 6.25 | 43.38 | 4 |
| 27 | 5.6 | 28.12 | 4 |
| 28 | 2.5 | 26.25 | 2 |
| 29 | 6.85 | 53.08 | 7 |
| 30 | 8.6 | 87.85 | 8 |
In: Economics
The Conch Café, located in Gulf Shores, Alabama, features casual lunches with a great view of the Gulf of Mexico. To accommodate the increase in business during the summer vacation season, Fuzzy Conch, the owner, hires a large number of servers as seasonal help. When he interviews a prospective server, he would like to provide data on the amount a server can earn in tips. He believes that the amount of the bill and the number of diners are both related to the amount of the tip. He gathered the following sample information.
| Customer | Amount of Tip | Amount of Bill | Number of Diners | Customer | Amount of Tip | Amount of Bill | Number of Diners | |||||||||
| 1 | $ | 7.70 | $ | 46.02 | 1 | 16 | $ | 3.30 | $ | 23.59 | 2 | |||||
| 2 | 4.50 | 28.23 | 4 | 17 | 3.50 | 22.30 | 2 | |||||||||
| 3 | 1.00 | 10.65 | 1 | 18 | 3.25 | 32.00 | 2 | |||||||||
| 4 | 2.40 | 19.82 | 3 | 19 | 5.40 | 50.02 | 4 | |||||||||
| 5 | 5.00 | 28.62 | 3 | 20 | 2.25 | 17.60 | 3 | |||||||||
| 6 | 4.25 | 24.83 | 2 | 21 | 3.90 | 58.18 | 1 | |||||||||
| 7 | .50 | 6.25 | 1 | 22 | 3.00 | 20.27 | 2 | |||||||||
| 8 | 6.00 | 49.20 | 4 | 23 | 1.25 | 19.53 | 2 | |||||||||
| 9 | 5.00 | 43.26 | 3 | 24 | 3.25 | 27.03 | 3 | |||||||||
| 10 | 6.65 | 36.01 | 2 | 25 | 3.00 | 21.28 | 2 | |||||||||
| 11 | 5.75 | 62.39 | 4 | 26 | 6.25 | 43.38 | 4 | |||||||||
| 12 | 6.00 | 34.99 | 3 | 27 | 5.60 | 28.12 | 4 | |||||||||
| 13 | 4.00 | 33.91 | 4 | 28 | 2.50 | 26.25 | 2 | |||||||||
| 14 | 3.35 | 23.06 | 2 | 29 | 3.65 | 60.26 | 5 | |||||||||
| 15 | .75 | 4.65 | 1 | 30 | 9.20 | 64.13 | 6 | |||||||||
c-1. Conduct an individual test on each of the variables. What is the decision rule at the 0.05 level of significance? (Negative amounts should be indicated by a minus sign. Round your answers to 3 decimal places.)
In: Statistics and Probability
Determine whether the polynomial is reducible or irreducible in the given polynomial ring. Justify your answers.
(c) x^4 + 1 in Z5[x]
(e) 2x^3 − 5x^2 + 6x − 2 in Z[x]
(f) x^4 + 4x^3 + 6x^2 + 2x + 1 in Z[x]. Hint: Substitute x − 1 for x.
In: Advanced Math