Is there a relation between police protection and fire protection? A random sample of large population areas gave the following information about the number of local police and the number of local fire-fighters (units in thousands). (Reference: Statistical Abstract of the United States.)
| Area | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| Police | 9.5 | 13.8 | 9.0 | 3.1 | 5.4 | 4.8 | 13.0 | 14.9 | 10.2 | 4.9 | 3.9 | 4.7 | 13.5 |
| Firefighters | 2.0 | 4.0 | 1.7 | 1.2 | 2.2 | 1.3 | 3.3 | 5.2 | 3.5 | 2.7 | 1.4 | 1.9 | 3.6 |
Use a 5% level of significance to test the claim that there is a monotone relationship (either way) between the ranks of number of police and number of firefighters.
(a) Rank-order police using 1 as the largest data value. Also rank-order firefighters using 1 as the largest data value. Then construct a table of ranks to be used for a Spearman rank correlation test.
| Area | Police Rank x |
Firefighters Rank y |
d = x - y | d2 |
| 1 2 3 4 5 6 7 8 9 10 11 12 13 |
Σd2 = |
(b) What is the level of significance?
State the null and alternate hypotheses.
Ho: ρs < 0; H1: ρs = 0Ho: ρs = 0; H1: ρs > 0 Ho: ρs = 0; H1: ρs ≠ 0Ho: ρs = 0; H1: ρs < 0
(c) Compute the sample test statistic. (Use 3 decimal
places.)
(d) Find the P-value interval of the sample test
statistic.
P-value < ---Select--- 0.001 0.002 0.01
0.05
(e) Conclude the test.
At the α = 0.05 level, we reject the null hypothesis and conclude the data are not statistically significant.At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are not statistically significant. At the α = 0.05 level, we reject the null hypothesis and conclude the data are statistically significant.At the α = 0.05 level, we fail to reject the null hypothesis and conclude the data are statistically significant.
(f) Interpret your conclusion in the context of the
application.
Fail to reject the null hypothesis, there is sufficient evidence that a monotonic relationship exists between number of fire fighters and police.Fail to reject the null hypothesis, there is insufficient evidence that a monotonic relationship exists between number of fire fighters and police. Reject the null hypothesis, there is sufficient evidence that a monotonic relationship exists between number of fire fighters and police.Reject the null hypothesis, there is insufficient evidence that a monotonic relationship exists between number of fire fighters and police.
In: Statistics and Probability
You will design and create your own GUI application for the Bank project. This project should be designed and written by Java programming.
The requirements of the program:
1. The program will be best implemented as a multi-file program for each class.
2. The parameters and return types of each function and class member should be decided in advance. You may need to add more member variables and functions to the classes than those listed below. Also, you can throws any user-defined exceptions or any possible exceptions.
3. You will create the following class:
A. Design a generic class to hold the information about a Bank. Bank has customers
B. Design a class to hold the information about a Customer. A Customer has an account number and at least one/ or more banking account(s), and all the information about the customer.
C. Design an abstract class to hold the information about a BankingAccount. Balance, number of deposits this month, number of withdrawals, annual interest rate, monthly service charges, etc…
The class should have the following member functions: Constructor, deposit, withdraw, monthly process, etc…
D. Design a SavingsAccount class, derived from the generic BankingAccount class. If the balance of a savings account falls below $25, it becomes inactive. No more withdrawals may be made until the balance is raised above $25, at which time the account becomes active again.
The savings account class should have the following members functions for withdrawing, deposit, status, etc…
E. Next, design a CheckingAccount class, also derived from the generic BankingAccount class. Implement the base class’s withdraw function, this function will determine if a withdrawal (a check written) will cause the balance to go below $0. If the balance does below $0, a service charge of $15 will be taken from the account. If there isn’t enough in the account to pay the service charge, the balance will become negative and the customer will own the negative amount to the bank. service charge for the check written over 5 will add the monthly fee of $5 plus $0.10 per withdrawal (check written). if the check written is below and equal to 5 checks, it will be no charge.
F. Design and create a GUI BankGUIFrame class that allows the user to enter the customer’s information as well as the amounts of withdrawals and deposits for a saving account and checking account. The program should display statistics for the month, including beginning balance, the total amount of deposits, total amount of withdrawals, service charges, and ending balance. Use GUI components. Event handlings for some GUI components.
G. Write a driver BankGUITest class that demonstrates how each of conditions work.
H. The program also need to prevent any exceptions to occur.
In: Computer Science
Read the following research and summarize and answer the questions
Ethical issues related to caring for low birth weight infants
Abstract
Background:
Currently preterm births are the leading causes of newborn deaths and newborn mortality in developed countries. Infants born prematurely remain vulnerable to many acute complications and long-term disabilities. There is a growing concern surrounding the moral and ethical implications of the complex and technological care being provided to extremely low birth weight infants in neonatal intensive care units in the developed nations.
Research purpose:
The purpose of this study was to describe the ethical and moral issues that neonatal intensive care nurses experience when caring for low birth weight preterm infants and their families.
Research design:
A phenomenological method design was used to describe the lived experiences of nurses with ethical and moral issues encountered in the neonatal intensive care unit. One-on-one, semi-structured interviews using open-ended questions were used to gather data from the participants.
Research participants:
The setting for this study was a 97-bed neonatal intensive care. A total of 16 female nurses were interviewed.
Ethical considerations:
Approval to conduct the research study was obtained from the institutional review board of the hospital where the study was conducted. Formal signed consent was obtained from each participant. To ensure confidentiality, each participant was asked to choose a confederate name to be used in the interview and the transcriptions.
Findings:
The thematic analysis identified five recurring themes: (a) at the edge of viability, (b) infant pain and discomfort, (c) crucial decisions, (d) communicating with parents, and (e) letting go.
Conclusion:
Neonatal intensive care unit nurses indicated that they often had challenges to their own sense of morality as they struggled to protect the infant from pain and unnecessary discomfort, provide care to an infant and their family whom they thought was faced with a lifetime of challenges and poor health, accepting decisions made by parents, and feeling as if parents were not adequately informed about outcomes.
.What problem was this study designed to address and is it an important one to nursing?
What is the main research question?
What study design used in this study?
a. What qualitative method is used in this study?
a. Is the way of obtaining subjects appropriate? Is the sample size appropriate for this type of study?
b. Is the setting in which data were collected an appropriate one for this study?
a. Are the methods used appropriate for a qualitative research study?
c. Were steps taken to protect the rights of study subjects?
d. What evidence is there that data saturation was achieved?
a. What procedures were used to analyze the type of data collected?
b. What were the study findings?
In: Nursing
Do bonds reduce the overall risk of an investment portfolio? Let
x be a random variable representing annual percent return
for the Vanguard Total Stock Index (all Stocks). Let y be
a random variable representing annual return for the Vanguard
Balanced Index (60% stock and 40% bond). For the past several
years, assume the following data. Compute the coefficient of
variation for each fund. Round your answers to the nearest
tenth.
| x: | 13 | 0 | 38 | 23 | 35 | 25 | 26 |
-13 |
-13 |
-16 |
| y: | 7 |
-2 |
26 | 16 | 24 | 16 | 16 |
-2 |
-3 |
-7 |
Select one:
a. for x-values: 108.6%, and for y-values: 132.4%
b. for x-values: 194.1%, and for y-values: 236.8%
c. for x-values: 132.4,% and for y-values: 194.1%
d. for x-values: 108.6%, and for y-values: 236.8%
e. for x-values: 194.1%, and for y-values: 132.4%
John runs a computer software store. He counted 124 people who walked by his store in a day, 50 of whom came into the store. Of the 50, only 24 bought something in the store. Estimate the probability that a person who walks by the store will come in and buy something. Round your answer to the nearest hundredth.
Select one:
a. none of these choices
b. 0.19
c. 0.60
d. 0.48
e. 0.14
What percentage of the general U.S. population have bachelor's
degrees? Suppose that the Statistical Abstract of the United
States, 120th Edition, gives the following percentage of bachelor's
degrees by state. For convenience, the data are sorted in
increasing order.
| 17 | 18 | 18 | 18 | 19 | 20 | 20 | 20 | 21 | 21 |
| 21 | 21 | 21 | 22 | 22 | 22 | 22 | 22 | 23 | 23 |
| 24 | 24 | 24 | 24 | 24 | 25 | 25 | 25 | 25 | 26 |
| 26 | 26 | 26 | 26 | 26 | 27 | 27 | 27 | 28 | 28 |
| 28 | 29 | 29 | 31 | 31 | 32 | 32 | 34 | 35 | 38 |
Illinois has a bachelor's degree percentage rate of about 18%. Into what quartile does this rate fall?
Select one:
a. second quartile
b. third quartile
c. first quartile
d. first quartile as well as second quartile
e. none of these choices
You draw two cards from a standard deck of 52 cards and do not replace the first one before drawing the second. Find the probability of drawing a 7 for the first card and a king for the second card. Round your answer to the nearest thousandth.
Select one:
a. 0.155
b. 0.019
c. 0.006
d. 0.039
e. 0.083
In: Statistics and Probability
Please make an Array-based implementation of a Binary Tree in Python based on the given file below. Make sure to keep the Abstract Data File of the starter code below when building the Array-based implementation.
Python Starter Code Given Below:
class ArrayBinaryTree(BinaryTree):
"""Linked representation of a binary tree structure."""
# -------------------------- nested _Node class --------------------------
class _Node:
def __init__(self, element, parent=None, left=None, right=None):
# -------------------------- nested Position class --------------------------
class Position(BinaryTree.Position):
"""An abstraction representing the location of a single element."""
def __init__(self, container, node):
def element(self):
def __eq__(self, other):
# ------------------------------- utility methods -------------------------------
def _validate(self, p):
"""Return associated node, if position is valid."""
def _make_position(self, node):
"""Return Position instance for given node (or None if no node)."""
# -------------------------- binary tree constructor --------------------------
def __init__(self):
"""Create an initially empty binary tree."""
# -------------------------- public accessors --------------------------
def __len__(self):
"""Return the total number of elements in the tree."""
def root(self):
"""Return the root Position of the tree (or None if tree is empty)."""
def parent(self, p):
"""Return the Position of p's parent (or None if p is root)."""
def left(self, p):
"""Return the Position of p's left child (or None if no left child)."""
def right(self, p):
"""Return the Position of p's right child (or None if no right child)."""
def num_children(self, p):
"""Return the number of children of Position p."""
# -------------------------- nonpublic mutators --------------------------
def _add_root(self, e):
"""Place element e at the root of an empty tree and return new Position."""
def _add_left(self, p, e):
"""Create anew left child for Position p, storing element e."""
def _add_right(self, p, e):
"""Create a new right child for Position p, storing element e. Return the Position of new node. Raise ValueError if Position p is invalid or p already has a right child.
"""
def _replace(self, p, e):
"""Replace the element at position p with e, and return old element."""
def _delete(self, p):
"""Delete the node at Position p, and replace it with its child, if any. Return the element that had been stored at Position p.Raise ValueError if Position p is invalid or p has two children.
"""
def _attach(self, p, t1, t2):
"""Attach trees t1 and t2, respectively, as the left and right subtrees of the external Position p. As a side effect, set t1 and t2 to empty.
Raise TypeError if trees t1 and t2 do not match type of this tree. Raise ValueError if Position p is invalid or not external.
"""In: Computer Science
Suppose currently 10-year Treasury bond yields 1.2% and 10-year municipal bond offers 0.8% yield. Also, your federal income tax rate is 40% and state income tax rate is 14%. Calculate the risk premium (spread) of this municipal bond.
Show calc and steps
In: Finance
$100,000 Amortizing Loan
9% stated rate
20-year amortization
5-year balloon
Annual Payments
a) Calculate annual payment
b) Calculate balloon payment
c) Value at 12% yield
d) Prepare an amortization table
In: Finance
Problem 4-19
Maturity Risk Premiums
Assume that the real risk-free rate, r*, is 2% and that inflation is expected to be 7% in Year 1, 6% in Year 2, and 3% thereafter. Assume also that all Treasury securities are highly liquid and free of default risk. If 2-year and 5-year Treasury notes both yield 10%, what is the difference in the maturity risk premiums (MRPs) on the two notes; that is, what is MRP5minus MRP2? Round your answer to two decimal places.
%
In: Finance
One year ago, you sold a put option on 35,000 Euros with an expiration date of one year for a premium of $0.03 per unit. The exercise price was $1.25/Euro. Assume that one year ago, the spot rate of the Euro was $1.23, the one-year forward rate was $1.24. Today, the euro spot rate is $1.21.
Determine the total dollar amount of your net profit or loss in the put option.
In: Finance
Exercise 1: Tariffs and Elasticity
A country imports 5 billion tonnes of coal per year and domestically produces another 4.5 billion tonnes of coal per year. The world price of coal is $50 per tonne. Assuming linear schedules, economists estimate the price elasticity of domestic supply to be 0.3 and the price elasticity of domestic demand to be 0.2 at the current equilibrium. Consider the changes in social surplus that would result from imposition of a $20 per tonne import fee on coal that would involve annual administrative costs of $125 million. Assume that the world price will not change as a result of the country imposing the import fee, but that the domestic price will increase by $20 per tonne. Assume national standing. Calculate the following:
(a) Quantity consumed after the imposition of the import fee.
(b) Quantity produced after the imposition of the import fee.
(c) Quantity imported after the imposition of the import fee.
(d) Estimate the annual social net benefits of the import fee.
In: Economics