After analyzing several months of sales data, the owner of an
appliance store produced the following joint probability
distribution of the number of refrigerators and stoves sold
hourly
0 1 2 Stoves
0 0.08 0.14 0.12 0.34
1 0.09 0.17 0.13 0.39
2 0.05 0.18 0.04 0.27
REF 0.22 0.49 0.29 1
b. What are the laws for a discrete probability density
function?
c. If a customer purchases 2 stoves, what is the probability they
will also purchase two refrigerators?
d. What is the average number of refrigerators purchased?
e. What is the variance in the number of refrigerators
purchased?
f. Are the sale of stores and refrigerators independent?
g. What is the conditional probability distribution for sales in
refrigerators if the customer did not purchase a stove?
h. What is the expected value and variance for sales in
refrigerators, if the customer did not purchase a stove?
In: Math
Consider the following database schema:
Product(maker, model, type)
PC(model, speed, ram, hd, rd, price)
Laptop(model, speed, ram, hd, screen, price)
Printer(model, color, type, price)
Give SQL statement for each of the following:
In: Computer Science
A survey shows that 81% of households in the United States own a computer. You randomly select 12 households and ask if they own a computer. Answer the following questions. 1) Identify n 2) Identify p 3) Calculate 1 - p 4) Find the probability that exactly 6 of them respond yes 5) Find the probability that at least 6 of them respond yes 6) Find the probability that fewer than 6 of them respond yes 7) Find the probability that between 5 and 10 of them (inclusive) respond yes 8) Find the probability that no more than 8 of them respond yes 9) Find the probability that more than 9 of them respond yes 10) What is the expected (mean) number of “yes” response? 11) What is the standard deviation of the expected (mean) number of “yes” response?
In: Statistics and Probability
Scenario You are a lawyer and one of your clients was hit by a car while crossing the street at a crosswalk. Her injuries required medical treatment and her hospital stay incurred $10,000 in medical expenses. Although the long term prognosis is for a full recovery, there is some chance of permanent damage. Your client has been advised by medical staff, if her pain continues, to return for further examination. Just after leaving the hospital, your client received an offer from the driver's insurance company for $100,000 to settle any claims arising from the accident. If she accepts the offer she will receive the $100,000 immediately and will be required to sign away any rights to more damages in the future. If she refuses the offer, she can sue and take the insurance company to trial. Her trial costs will be $10,000. The probability that she will win in court is 90%. If she wins, there is a 20% probability she will be awarded $400,000 and an 80% probability she will be awarded $25,000 in damages.
However, now there are two clients: your client and the insurance company. The insurance company starts by deciding how large a settlement to offer; $50,000, $100,000, or $150,000. You then decide whether to accept the offer or challenge in court. Use the idea of zero-sum game to determine what offer the insurance company will make. Assume the trial costs for the insurance company are $10,000 as well. Justify your answer using a new decision tree that corresponds to this problem. What factors might you also consider when faced with these two scenarios?
In: Statistics and Probability
A)In a certain state's lottery, 40 balls numbered 1 through 40
are placed in a machine and eight of them are drawn at random. If
the eight numbers drawn match the numbers that a player had chosen,
the player wins $1,000,000. In this lottery, the order in which the
numbers are drawn does not matter.
Compute the probability that you win the million-dollar prize if
you purchase a single lottery ticket. Write your answer as a
reduced fraction.
A single lottery ticket costs $2. Compute the Expected Value, to the state, if 10,000 lottery tickets are sold. Round your answer to the nearest dollar.
A single lottery ticket costs $2. Compute the Expected Value, to you, if you purchase 10,000 lottery tickets. Round your answer to the nearest dollar.
B)There are nine female board members and twenty-one male board
members.
i.How many ways are there to make a committee of eight board
members?
ii.How many ways are there to make a committee of eight board members if exactly three must be female?
iii.Determine the probability of selecting a committee of eight board members where exactly three of the members were female. Write your answer as a decimal, rounded to the nearest thousandth.
C)Suppose a jar contains 8 red marbles and 38 blue marbles. If
you reach in the jar and pull out 2 marbles at random, find the
probability that both are red. Write your answer as a reduced
fraction.
Answer:
Thank you :)
In: Statistics and Probability
I am working on these questions but I would like someone to review them before I submit and add any addition information I may have missed or worse gotten wrong! I provided the questions and then my answers to them.
1) Explain what is blacklisting and whitelisting?
2) iptables:
Compare -j DROP vs -j REJECT. Which option would you use to implement a firewall rule that blocks incoming packets and why?
3) State the iptables command you would use to add a firewall rule where outgoing packets(connections) to ports 20, 21 (ftp) were blocked.
4) ICMP is a protocol for sending various messages to report network conditions. Ping is the sends ICMP Echo request packets to the target host and waits for ICMP echo reply from the host.
Your Task: State a firewall rule that will block other systems from pinging your system.
My answers.
1. Explain what is blacklisting and whitelisting?
White lists and black lists are two ways of filtering data. If you have a white list then you will filter in only data on the white list; if you have a black list you will filter out only data on that list.
2. iptables:
Compare -j DROP vs -j REJECT. Which option would you use to implement a firewall rule that blocks incoming packets and why?
Since DROP silently drops without a response, and REJECT denies and send an ICMP message to indicate the denial I think you would want to reject and never receive them to drop them using sudo ufw reject ssh
3. State the iptables command you would use to add a firewall rule where outgoing packets(connections) to ports 20, 21 (ftp) were blocked.
sudo firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -p tcp --dport 20,22 -j ACCEPT
sudo firewall-cmd --direct --add-rule ipv4 filter OUTPUT 1 -j REJECT
4. ICMP is a protocol for sending various messages to report network conditions. Ping is the sends ICMP Echo request packets to the target host and waits for ICMP echo reply from the host.
Your Task: State a firewall rule that will block other systems from pinging your system.
sudo iptables -A INPUT -p tcp --dport 110 -j DROP
This doesn't not allow and connection to ping the system.
In: Computer Science
Which of the following is an advantage associated with
internal recruiting?
A.)it allows for more accurate prediction of the person's chance of
success
B) it brings in "new blood"
C) it decreases costs associated with employee counselling
D)it allows new ideas to be introduced into the organization
E)it removes undesirable employees
In: Economics
The current healthcare reform (i.e. Trumpcare) removes the ACA penalty on uninsured and provides more tax credits (health spending and saving deduction) ) to encourage purchase of health insurance. How will it work better or worse in covering more insured? Please explain briefly in language of economics.
In: Economics
Create a program in C++ implementing the LinkedStack
7. Write a client that removes all negative numbers from a stack of int objects. If the original stack contained the integers 30, –15, 20, –25 (top of stack), the new stack should contain the integers 30, 20.
In: Computer Science
In: Electrical Engineering