Data from a random sample of 11 gravid female iguanas, including their postpartum weights and the number of eggs each produced, were collected.
(1): Construct a two-way scatter plot for “female mass” against the “number of eggs” and on a separate graph construct a two-way scatter plot for “female mass” against log of the “number of eggs”. Looking at the two graphs you plotted, explain as to which of these two do you consider to be closest to a linear relationship?
(2): Compute r, the Pearson correlation coefficient
(3): Compute and use the regression equation you came up with in the previous part (namely “f”) to predict the “number of eggs” for and “female mass” of 2 kg.
|
Specimen |
Mass (kg) |
Number of eggs |
|
1 |
0.90 |
33 |
|
2 |
1.55 |
50 |
|
3 |
1.30 |
46 |
|
4 |
1.00 |
33 |
|
5 |
1.55 |
53 |
|
6 |
1.80 |
57 |
|
7 |
1.50 |
44 |
|
8 |
1.05 |
31 |
|
9 |
1.70 |
60 |
|
10 |
1.20 |
40 |
|
11 |
1.45 |
50 |
In: Statistics and Probability
A company has orders for approximately 100,000 units of a product that it can sell at a price of €150.00 per unit. The company operates 300 days per year. It costs €5.00 to store one unit of the product for one month.
The company manufactures other products, and it must set up the manufacturing system for a production order for the product, which costs €300. The product can be produced at a rate of 600 per working day.
Determine:
In: Operations Management
You will implement two algorithms to find the shortest path in a graph.
def prim(G,start_node): Takes a graph G and node to start at. Prims edges used in MST.
def kruskal(G): Takes a graph G and prints the edges in the MST in order found.
You may represent the graphs as adjacency matrix or list. You MAY NOT include any graph libraries.
The graph you are working on will be give in a file with the following format. The graph is undirected. That means if an edge from 2 to 1 is in the file, it may be used in both directions.
Note: You should store the weights as floats.
The program will have a text interface. First ask for the file name of the graph to work with. Then implement 4 text commands.
prim x - Runs Pim's Algorithm starting at node X. X must be an integer
kruskal - Runs Kruskal's algorithm
help - prints this list of commands
exit - Exits the program
On a bad command print out "Unknown Command"
You must implement this using only standard python3 libraries. You may not use any outside libraries. For example, open source graph libraries.
When printing an edge, always print the smaller vertex first then the larger vertex.
Example Execution Traces are provided below.
Welcome to Minimum Spanning Tree Finder
Give the file name graph is in:
input1.txt
Commands:
exit or ctrl-d - quits the program
help - prints this menu
prim integer_value - run's Prim's algorithm starting at node given
kruskal - runs Kruskal's algorithm
Enter command:
Bad Command Unknown Command
Enter command:
help
Commands:
exit or ctrl-d - quits the program
help - prints this menu
prim integer_value - run's Prim's algorithm starting at node given
kruskal - runs Kruskal's algorithm
Enter command:
prim 0
Running Prim's Algorithm Starting Node: 0
Added 2
Using Edge [0, 2, 1.0]
Added 5
Using Edge [2, 5, 4.0]
Added 3
Using Edge [3, 5, 2.0]
Added 1
Using Edge [1, 2, 7.0]
Added 4
Using Edge [1, 4, 3.0]
Enter command:
exit
Bye
The content of the files is shown below.
input1.txt
6 0 3 5 3 5 2 5 4 10 4 1 3 1 0 8 0 2 1 2 3 6 2 5 4 2 4 9 2 1 7
input2.txt
9 0 1 4 0 7 10 1 7 13 7 8 9 7 6 1 1 2 8 8 2 3 8 6 6 2 3 7 2 5 5 6 5 2 3 5 14 3 4 11 5 4 12
input3.txt
8 4 5 35 4 7 37 5 7 28 0 7 16 1 5 32 0 4 38 2 3 17 1 7 19 0 2 26 1 2 36 1 3 29 2 7 34 6 2 40 3 6 52 6 0 58 6 4 93
In: Computer Science
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3
[The following information applies to the questions
displayed below.]
Sara’s Salsa Company produces its condiments in two types: Extra
Fine for restaurant customers and Family Style for home use. Salsa
is prepared in department 1 and packaged in department 2. The
activities, overhead costs, and drivers associated with these two
manufacturing processes and the company’s production support
activities follow.
| Process | Activity | Overhead cost | Driver | Quantity | ||
| Department 1 | Mixing | $ | 4,500 | Machine hours | 1,500 | |
| Cooking | 11,250 | Machine hours | 1,500 | |||
| Product testing | 112,500 | Batches | 600 | |||
| $ | 128,250 | |||||
| Department 2 | Machine calibration | $ | 250,000 | Production runs | 400 | |
| Labeling | 12,000 | Cases of output | 120,000 | |||
| Defects | 6,000 | Cases of output | 120,000 | |||
| $ | 268,000 | |||||
| Support | Recipe formulation | $ | 90,000 | Focus groups | 45 | |
| Heat, lights, and water | 27,000 | Machine hours | 1,500 | |||
| Materials handling | 65,000 | Container types | 8 | |||
| $ | 182,000 | |||||
Additional production information about its two product lines
follows.
| Extra Fine | Family Style | |||
| Units produced | 20,000 | cases | 100,000 | cases |
| Batches | 200 | batches | 400 | batches |
| Machine hours | 500 | MH | 1,000 | MH |
| Focus groups | 30 | groups | 15 | groups |
| Container types | 5 | containers | 3 | containers |
| Production runs | 200 | runs | 200 | runs |
Problem 17-5A Part 5
5. If the market price is $18 per case of Extra
Fine and $9 per case of Family Style, determine the gross profit
per case for each product. (Round your intermediate
calculations and final answers to 2 decimal
places.)
| Extra Fine | Loss | ___?___ |
| Family Style | Profit | ___?___ |
In: Accounting
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3
[The following information applies to the questions
displayed below.]
Sara’s Salsa Company produces its condiments in two types: Extra
Fine for restaurant customers and Family Style for home use. Salsa
is prepared in department 1 and packaged in department 2. The
activities, overhead costs, and drivers associated with these two
manufacturing processes and the company’s production support
activities follow.
| Process | Activity | Overhead cost | Driver | Quantity | ||
| Department 1 | Mixing | $ | 4,500 | Machine hours | 1,500 | |
| Cooking | 11,250 | Machine hours | 1,500 | |||
| Product testing | 112,500 | Batches | 600 | |||
| $ | 128,250 | |||||
| Department 2 | Machine calibration | $ | 250,000 | Production runs | 400 | |
| Labeling | 12,000 | Cases of output | 120,000 | |||
| Defects | 6,000 | Cases of output | 120,000 | |||
| $ | 268,000 | |||||
| Support | Recipe formulation | $ | 90,000 | Focus groups | 45 | |
| Heat, lights, and water | 27,000 | Machine hours | 1,500 | |||
| Materials handling | 65,000 | Container types | 8 | |||
| $ | 182,000 | |||||
Additional production information about its two product lines
follows.
| Extra Fine | Family Style | |||
| Units produced | 20,000 | cases | 100,000 | cases |
| Batches | 200 | batches | 400 | batches |
| Machine hours | 500 | MH | 1,000 | MH |
| Focus groups | 30 | groups | 15 | groups |
| Container types | 5 | containers | 3 | containers |
| Production runs | 200 | runs | 200 | runs |
Problem 17-5A Part 5
5. If the market price is $18 per case of Extra
Fine and $9 per case of Family Style, determine the gross profit
per case for each product. (Round your intermediate
calculations and final answers to 2 decimal
places.)
| Extra Fine | Loss | ___?___ |
| Family Style | Profit | ___?___ |
In: Accounting
Wilson Publishing Company produces books for the retail market. Demand for a current book is expected to occur at a constant annual rate of 6,800 copies. The cost of one copy of the book is $14. The holding cost is based on an 14% annual rate, and production setup costs are $130 per setup. The equipment on which the book is produced has an annual production volume of 23,000 copies. Wilson has 250 working days per year, and the lead time for a production run is 15 days. Use the production lot size model to compute the following values:
In: Economics
Prompt the user to enter an integer
Then, prompt the user to enter a positive integer n2.
Print out all the numbers that are entered after the last occurrence of n1 and whether each one is even or odd
If n1 does not occur or there are no values after the last occurrence of n1, print out the message as indicated in the sample runs below.
Sample:
Enter n1: -2
Enter n2: 7
Enter 7 values: -2 3 3 -2 4 3 6
4 is even
3 is odd
6 is even
Enter n1: 100
Enter n2: 6
Enter 6 values: 101 2 -7 100 9100
No values after 100
Enter n1: 5
Enter n2: 3
Enter 3 values: 4 5 104
9 does not occur
In: Computer Science
Two children, A (mass 25 kg ) and B (mass 50 kg ), are playing on a merry-go-round (which you can assume is a solid disk with mass 225 kg and radius 1.5m). Assume that any friction on the axle of the merry-go-round is negligible.
(A) A starts spinning the merry-go-round, giving it an angular velocity of 7 rad/s, then she stops pushing it. B runs with a speed of 6 m/s directly toward the center of the merry-go-round. He jumps and lands on the edge of the merry-go-round. What is the angular speed of the merry-go-round once B lands on it?
(B) After landing, B walks to the center of the merry-go-round. What is the angular speed of the merry-go-round when he gets to the center?
(C) While B is in the center of the merry-go-round, A runs up with a speed of 7 m/s tangentially in the same direction the merry-go-round is spinning, jumping onto the edge of the merry-go-round. What is the angular speed of the merry-go-round after A lands on it?
(D) A stays in place while B walks back to the edge of the merry-go-round. What is the angular speed of the merry-go-round when he gets there?
In: Physics
Python Practice Sample:
Generate lists containing the numbers between 1 and 50 as follows:
same is a list of all the two-digit numbers whose digits are the same (11, 22, etc.)
addsto6 is a list of all numbers the sum of whose digits is 6
rest contains the rest of the numbers.
A number can appear only in one of the lists; with same having higher priority. (So for example, 33 would appear in the same, but NOT the addsto6 list).
Same = [11, 22, 33, 44]
AddsTo6 = [6, 15, 24, 42]
Rest = [1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 16, 17, 18, 19, 20, 21, 23, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50]
In: Computer Science
Delicioso Ltd manufactures two types of Microwave Ovens – Conventional and Integrated. The company is currently using a traditional costing system with machine hours as the cost driver. The company is considering whether to use the activity-based costing (ABC) method to allocate overhead costs to products. Budgeted overhead costs of the upcoming accounting period follow:
|
Activity |
Total budgeted activity cost |
Activity driver |
|
Machining |
$300,000 |
Number of machine hours |
|
Setup |
$100,000 |
Number of production runs |
|
Inspection |
$105,000 |
Number of inspection hours |
The activity level for the year is: Conventional Integrated
Annual production in units 50,000 100,000
Direct material cost $150,000 $300,000
Direct labour costs $50,000 $100,000
Direct labour hours 2,500 5,000
Machine hours 25,000 50,000
Number of production runs 50 50
Inspection hours 1,000 500
1. Calculate the unit cost of each product if the conventional costing approach is used
2. determine the unit of producing each product if activity based costing is used .
In: Accounting