In: Statistics and Probability
The management at an environmental consulting firm claims the mean weekly salary is $275 with a standard deviation of $34.10.
If we want to address the question “If management’s claims are true, what is the probability that an individual worker would make an average weekly salary less than $264.50?”, write the probability statement.
If we want to address the question “If management’s claims are true, what is the probability that an individual worker would make an average weekly salary less than $264.50?”, what is the probability? Be sure to show how you calculated your probability.
If we want to address the question “If management’s claims are true, what is the probability that a group of 27 workers would make an average weekly salary less than $264.50?”, write the probability statement.
If we want to address the question “If management’s claims are true, what is the probability that a group of 27 workers would make an average weekly salary less than $264.50?”, what is the probability? Be sure to show how you calculated your probability.
In: Math
1. Imagine that you’re sledding alone down a steep hill on a toboggan and that you left the top of the hill at the same time as an identical toboggan, loaded with 4 people.
a. Which toboggan will reach the bottom of the hill first?
b. If you took a toboggan down a 2% grade slope, for a 1000 foot run, and then you took the toboggan down a steeper route of 15% grade down the hill, how would that affect the speed of your descent? Explain.
c. Before each downhill run, you must pull the toboggan back to the top of the hill. If the Hill is 1000 vertical feet, how many runs will you do in 2 hours?
d. Why can you sled down a hill? But you can’t you skate down a hill?
e. How do snow shoes help you walk in snow? Why are their different sized snow shoes?
2. a. Why is hip movement and turning the knees important in improving a golf swing?
b. During the back swing, are you accelerating?
c. At the moment you reach the bottom of the swing you make contact with the ball. Explain how energy is transferred from the club to the ball
d. Why is there more stress on a golfers shoulders at the start of the swing, than when hitting the ball?
e. Why do you need to follow through on the swing?
f. What has happened when a golf shot is hooked?
g. What is the sweet spot on a club and what does it do?
h. What is a ping sound and how is it produced when hitting a golf ball?
In: Physics
•What is a port?
•What is Apache? Modules and Directives? The first application we really looked at in the VM world
What is Vagrant and what is the relationship to VirtualBox?
•What is the relationship between your virtual machine and your local machine?
What vagrant provides and what virtual box provides?
If there is no virtualbox will Vagrant work? Vice versa
•Describe the difference between the messaging formats and why we might choose one over the other
•What role did tshark play in examining TCP and UDP messages?
•What did netcat provide? Describe your answer
Apache
•What is a symbolic link and why do we care about them with respect to Apache?
•If you were modifying Apache to run SSL (https), this generally requires that port 443 is open. While you can certainly set up things on the virtual machine to function at port 443, what else would have have to do to observe SSL working on our local machine? (Hint: think port forwarding).
•When deploying a module like Dav or Apache, describe the relationship between symbolic linking, modules, and configuration files.
Subnets
•How would you use the broadcast IP to send a message to all computers in the subnet?
•Describe two reasons why an administrator would want to manage the size of subnets.
•provide 3 sentence
•netcat - relationship with ports
•ping & route - relationship with subnets
•ifconfig - describe what you see // reconfigure
•ls, pwd, cd, mv, nano, ssh, ln, sudo, mkdir, cd
In: Computer Science
Task 1: Remove Number
Complete the function remove number such that given a list of integers and an integer n, the function removes every instance of n from the list. Remember that this function needs to modify the list, not return a new list.
Task 2: Logged List
The log2() function is one of an algorithm designer’s favourite functions. You’ll learn more about this later, but briefly – if your input size is 1048576 elements, but you only look at log2(1048576) elements, you’ll really just look at 20 elements.
Bongo, an algorithm designer, designs algorithms that take lists as inputs. Being an efficient designer, all his algorithms are designed such that they look at log2(n) elements if the number of elements in the input list is n.
To assist him, we’ve designed the logged list function. This function takes a list l as input and returns a new list such that it has all the elements in original list l which occur at indices that are powers of 2. For example: indices 1, 2, 4, 8, 16, 32, etc.
However, something is wrong. The function isn’t just returning a list with elements at all indices that are powers of 2. Fix the function so it works correctly!
You must make sure that the fixes are minor fixes. Just like major lab 2, this means that your code will not need a lot of changes.
Task 3: Move Zeros
It’s trivial that the value of a number remains the same no matter how many zeros precede it. However, adding the zeros at the end of the number increases the value * 10.
Jasmine is tired of seeing “001/100” on her tests (well yes, no one really writes 001, but Jasmine’s teacher finds it funny to do so). So, she managed to login to her teacher’s computer and now wants to design a function that can move the 0’s in her grade to the end before her teacher uploads her grades.
Although we don’t agree with Jasmine’s tactics, Krish (Jasmine’s mentor) told us to help her out by finishing the ‘move zeros’ function. This function should move all the 0’s in the given list to the end while preserving the order of the other elements. Remember that this function needs to modify the list, not return a new list!
Task 4: Find Number
Tony (your team member at work) implemented a function find number which is supposed to return the index of a number in a list if the number is in the list, else return -1. However, it doesn’t work the way it’s expected to...
Fix the function so it works correctly. Just like Task 2, your fixes should be minor fixes. Don’t try adding more code, you only need to see how you can change the existing code a bit.
See the Starter code below:
# DO NOT ADD ANY OTHER IMPORTS
from typing import List
def remove_number(lst: List[int], number: int) -> None:
"""
Remove every instance of number in lst. Do this
*in-place*, i.e. *modify* the list. Do NOT
return a new list.
>>> lst = [1, 2, 3]
>>> remove_number(lst, 3)
>>> lst
[1, 2]
"""
pass
def logged_list(lst: List[object]) -> List[object]:
"""
Return a new list such that it has all the objects
in lst which occur at indices which are powers of 2
>>> logged_list([0, 1, 2, 3, 4, 5, 6, 7, 8])
[1, 2, 4, 8]
"""
# TODO: FIX
i = 0
new_lst = []
while i < len(lst) - 1:
new_lst.append(lst[i])
i += 2
return new_lst
def move_zeros(lst: List[int]) -> None:
"""
Move all the 0's in lst to the END of the lst *in-place*,
i.e. *modify* the list, DONT return a new list
>>> lst = [1, 0, 2, 3]
>>> move_zeros(lst)
>>> lst
[1, 2, 3, 0]
"""
pass
def find_number(lst: List[int], number: int) -> int:
"""
Return the first index of the number if the number is in the
lst else return -1
>>> find_number([1, 2, 3], 3)
2
>>> find_number([1, 2, 3], 4)
-1
"""
# TODO: this code needs to be fixed. Fix
found = False
i = 0
while not found:
if lst[i] == number:
found = True
else:
found = False
i += 1
if found:
return i
return -1
if __name__ == '__main__':
# uncomment the code below once you are done the lab
# import doctest
# doctest.testmod()
pass
In: Computer Science
Given a standardized normal distribution (with a mean of 0 and a standard deviation of 1), complete parts (a) through (d).
a. What is the probability that Z is less than 1.53? The probability that Z is less than 1.53 is _______ (Round to four decimal places as needed.)
b. What is the probability that Z is greater than 1.84? The probability that Z is greater than 1.84 is _______ (Round to four decimal places as needed.)
c. What is the probability that Z is between 1.53 and 1.84? The probability that Z is between 1.53 and 1.84 is _______ (Round to four decimal places as needed.)
d. What is the probability that Z is less than 1.53 or greater than 1.84? The probability that Z is less than 1.53 or greater than 1.84 is _______ (Round to four decimal places as needed.)
In: Math
In Montana, the probability it will snow tomorrow is .55. The weather forecast correctly says that it will snow tomorrow when it will actually snow tomorrow with probability .9. The weather forecast also correctly predicts it will not snow tomorrow when it actually will not snow tomorrow with probability .95. Use a tree diagram to calculate the following questions:
What is the probability that the weather forecast says that it will snow tomorrow AND it actually will snow tomorrow?
What is the probability that the weather forecast says that it will snow tomorrow?
What the probability that it will snow tomorrow in Montana, given that the weather forecast says it will snow tomorrow.
What the probability that it will NOT snow tomorrow in Montana, given that the weather forecast says it will NOT snow tomorrow.
What the probability that it will snow tomorrow in Montana, given that the weather forecast says it will NOT snow tomorrow.
In: Statistics and Probability
A young engineering student tries to decide what she will do on Sunday evening. She has three options; going to cinema (C), going to bowling saloon (B), going to a restaurant (R). She may choose C option with probability 0.4, B option with probability 0.2 and R option with probability 0.4. If she chooses cinema option, she may go to three movies; a thriller (CT), a cartoon (CC) and romantic comedy (CR). Conditional probabilities associated with these three movie options are 0.6, 0.35 and 0.05. If she chooses to go to bowling saloon, she has two options; Rocker House (BR) with probability 0.7 and Empire Bowling (BE) with probability 0.3. Restaurant options are Chinese (RC) with probability 0.1, Burger House (RB) with probability 0.2 and Urfa Kebap (RU) with probability 0.7. a) (16 Points) Draw the decision trees diagram for these options.A young industrial engineering student tries to decide what she will do on Sunday evening. She has three options; going to cinema (C), going to bowling saloon (B), going to a restaurant (R). She may choose C option with probability 0.4, B option with probability 0.2 and R option with probability 0.4. If she chooses cinema option, she may go to three movies; a thriller (CT), a cartoon (CC) and romantic comedy (CR). Conditional probabilities associated with these three movie options are 0.6, 0.35 and 0.05. If she chooses to go to bowling saloon, she has two options; Rocker House (BR) with probability 0.7 and Empire Bowling (BE) with probability 0.3. Restaurant options are Chinese (RC) with probability 0.1, Burger House (RB) with probability 0.2 and Kebap (RK) with probability 0.7
. a) Draw the decision trees diagram for these options.
b) Compute the probabilities for whole options
In: Statistics and Probability
Arnold believes he faces health costs in the current year of
either $1000 with
probability 0.8 or costs of $5000 with probability 0.2.
(a) Find the mean and variance of the costs that Arnold faces. (For
the variance, you could turn this into a sample of 10 individuals.
You may also use proportions instead and have the total number of
observations be 1).
(b) Given your answer in part (a), should Arnold purchase an
insurance policy that
completely covers his losses if the annual premium of the policy is
$2000? Explain your
answer.
(c) The company that offered this insurance policy insures 10,000
people with exactly the
same distribution of health losses as that of Arnold. Calculate the
standard error that the
insurance company faces in the average claim per individual
insured. (Hint: use your
answer in part (a)).
(d) It can be shown that 95 percent of the time the average claim
size will equal the
expected average claim plus or minus 1.96 times the standard error
of the average
claim. Give this range for the insurance company considered in part
(c). Is the insurance
company taking a large risk in selling this insurance policy?
In: Statistics and Probability
Create a histogram on excel for a coin toss. Flip the coin 6 times, each time moving down to the left (for heads) and to the right (for tails).
Consider it a success if when flipping a coin, the coin lands with the head side facing up. Then the probability of a success is .5 (p=.5) and the probability of failure is .5 (q=.5) for each event of flipping a coin. In this lab you will repeat a procedure of 6 events by flipping a coin six time (n=6). And you will record the number of successes (heads) and failures (tails) for each procedure.
My results: 384 coin tosses= 64 rounds
3 rounds resulted in 6 times landing on Heads.
8 rounds resulted in 5 Heads 1 Tail
14 rounds resulted in 4 Heads 2 Tails
20 rounds resulted in 3 Heads 3 Tails
11 rounds resulted in 2 Heads 4 Tails
8 rounds resulted in 1 Head 5 Tails
0 rounds resulted in 6 Tails
I need to create a frequency table for excel, In order to create a histogram.
In: Statistics and Probability