物理攻击与对策代写 CS579/ECE599代写 算法代写 Python代写
341CS579/ECE599 Assignment Homework 1 物理攻击与对策代写 Please complete this assignment (100 pts total) and submit your report/program code on Canvas (all files compressed in one .zip witho...
View detailsSearch the whole station
数据科学考试代考 Read the following: You may use a calculator provided that it cannot access the internet or store large amounts of data.You may NOT use a
Consider the data set: [0, 1, 5, 7, x], where x ∈ R is an unknown quantity. What is the set of possible values that the median of this data set must belong to?
a. (−∞, ∞)
b. [1, 5]
c. [0, 7]
d. {5}
e. ∅
Suppose Courtney has a Python list emails consisting of all email addresses for students in the Computer Science Department. She conducted a survey of how many hours per week Computer Science students spend studying, by drawing a sample from her email list using the Python command below, and everyone she contacted responded. What type of sample did Courtney collect?
sample = np.random.choice(emails, replace=False, size=500)
a. Simple random sample
b. Systematic sample
c. Census sample
d. Stratified sample
e. Free samples at Trader Joe’s on Saturdays
Arugula, Butterhead, and Cress are three hedgehogs that live in a cabin in Rocky Mountain National Park. They have several hobbies, including eating lettuce and enjoying recreational activities in the park. These hedgehogs have a complicated group dynamic. They have a limited menu in the park, with the only two options being lettuce or insects, and they always eat one of those two things at mealtimes (but the hedgehogs do not necessarily all eat the same thing). At mealtimes, Arugula eats lettuce with a probability of 0.8, and with probability 0.6 Butterhead and Arugula are both eating lettuce.
3.(3 points) The probability that Arugula and Butterhead both eat insects at mealtimes is 0.1. What is the probability that Butterhead eats lettuce?
a. 0.1
b. 0.3
c. 0.5
d. 0.7
e. 0.9
4.(3 points) Arugula is eating lettuce. What’s the probability that Butterhead is eating lettuce? 数据科学考试代考
0.25
0.4
0.5
0.6
0.75
5.(3 points) Cress is a strong, independent hedgehog who don’t need no man, so she doesn’t care what the other two eat. Thus, Cress’s choice of meal is statisticallyindependent of the other two hedgehogs’ choices. She will eat insects with probability 0.9. What is the chance that all three hedgehogs eat the same thing at mealtime?
a. 0.06
b. 0.09
c. 0.15
d. 0.65
e. 0.85
Suppose Courtney, Jared and Nick open a lemonade stand because that is how Computer Science Mafia works. On average, they get 10 customers per hour. What is the probability that they will have 8 or more customers in an hour?
A game of Plinko is to be played on the board shown below. The pegs are unbiased, meaning that the disc has equal probability of moving left or right at each peg. Furthermore, the disc can only be dropped from directly above the top-most peg. Which one of the following expressions gives the expected value of your winnings (in dollars) with a single disc?
a. 42/16
b. 166/16
c. 130/16
d. 36/5
e. 28/5
Nick is playing a game of Flappy Birds, where the goal of the game is to get your bird to flap its wings as many times as possible per minute. He notices that the number of bird wing flaps per minute follows a Poisson distribution with rate 10 flaps per minute. Which distribution is the most appropriate for a random variable representing the amount of time between bird wing flaps?
a. Bernoulli
b. Uniform
c. Normal
d. Poisson
e. Exponential
f. Negative birdnomial
Consider the following function, where the probability p is some constant. What distribution does the return value of the function belong to?
def what_the_function(p):
x = 0
y = 0
while y < 5:
draw = np.random.choice([0,1], p=[1-p, p])
x += 1
if draw == 1:
y += 1
return x
a. Bernoulli
b. Binomial
c. Geometric
d. Negative binomial
e. Poisson
The bachelor Jarrod is waiting for the contestants to arrive at his mansion. Consider the following function simulating this scenario. What distribution does the return value of the function belong to? Note that the np.random.exponential function’s input 1/q corresponds to an exponentially-distributed random variable with rate λ =q.
def gonna_find_a_wife_on_this_reality_show(q):
j = 0
t = np.random.exponential(1/q)
while t <= 1:
t += np.random.exponential(1/q)
j += 1
return j
a. Bernoulli
b. Binomial
c. Geometric
d. Negative binomial
e. Poisson
f. Exponential
Consider simulating two flips of a potentially biased coin, where ‘H’ represents Heads and ‘T’ represents Tails. Which of the following quantities does the following function estimate?
def flippyFloppy(num_samples):
flips1 = np.random.choice([‘H’,‘T’], size=num_samples)
flips2 = np.random.choice([‘H’,‘T’], size=num_samples)
return np.sum(np.logical_and((flips1==‘H’),(flips2==‘H’))) / np.sum(flips1==‘H’)
a. P(both flips are heads | first flip is heads)
b. P(first flip is heads | both flips are heads)
c. P(both flips are heads ∪ first flip is heads)
d. P(neither flip is heads)
e. P(both flips are heads)
Let f(x) = kx3 for 0 ≤ x ≤ 1, and f(x) = 0 for x /∈ [0, 1], where k is some unknown constant. What value of k will make f a valid probability density function?
a. 1/4
b. 1/2
c. 3/4
d. 1
e. 2
f. 4
g. No such value of k exists
Consider the probability density function given by f(x) = 1/4 (1 + x) for 0 ≤ x ≤ 2 and 0 otherwise. What is the associated cumulative distribution function F(x) for 0 ≤ x ≤ 2?
No justification is necessary for this problem. Consider the following six data sets, each with 9 elements.
X1 = {1, 3, 4, 5, 6, 6, 7, 7, 9} X2 = {1, 4, 5, 5, 6, 6, 7, 7, 9} X3 = {1, 2, 2, 5, 5, 6, 6, 6, 11}
X4 = {2, 2, 4, 5, 5, 5, 6, 7, 10} X5 = {1, 2, 3, 5, 6, 6, 7, 7, 8} X6 = {1, 2, 3, 5, 5, 6, 6, 7, 11}
(a) (12 points) Match each of the six data sets to their boxplot (box-whisker plot) below. Use the conventions from lecture, and clearly mark the letter corresponding to your choice of boxplot in the boxes below for each data set. No boxplot is used more than once, and some are not used.
(b) (4 points) For Parts (b) and (c), consider the data set Y = {1, 3, 3, 5, 5, 6, 6, 7, 8, 10, 11}. Y has 11 values in it. Write your answers in the boxes provided. No justification is necessary. What is the median of Y ? What is the 3rd (upper) quartile, Q3, of Y ?
(c) (4 points) Draw the frequency histogram of Y . Use bins of width 2, with the left-most bin edge at −0.5. Label your axes.
Eloise the hedgehog is the queen of the hipsters. While she wears her calculator watch, she churns butter, because that store-bought stuff is too mainstream. She also flips coins by hand and records the results, because you just can’t trust that digital junk. Eloise has a box with 6 coins in it. Each coin belongs to one of three categories, and all coins are equally likely to be drawn from the box.
Please answer the following questions, and be sure to show your work—for sufficient space, a blank page follows this one.
Eloise chooses a coin at random. What is the probability that it is a fair coin?
(b) (6 points) Eloise chooses a coin at random and flips it. What is the probability that the coin comes up heads?
(c) (7 points) Eloise chooses a coin at random and flips it three times. It comes up tails two times and heads one time. Given this information, what is the probability that the coin that she chose was a fair coin? You may express your answer as a fraction or as a decimal rounded to 3 decimal places.
(d) (4 points) Suppose Eloise picks a coin at random and flips it. Are the events “flip comes up heads” and “Eloise picked a fair coin” independent? Justify your answer with math.
(b) (4 points) Let Y be the random variable Y = X2 − 1. Write down the probability distribution (probability mass function) of Y .
(c) (4 points) Compute E[Y ]
(d) (4 points) Compute Var(X)
(e) (4 points) Let F represent the cumulative distribution function (CDF) for X, and compute F(0.25)
更多代写:jupyter notebook代写 proctor u代考 英国Assignment统计学代写 Biology essay代写 cs论文代写 study proposal代写
合作平台:essay代写 论文代写 写手招聘 英国留学生代写
CS579/ECE599 Assignment Homework 1 物理攻击与对策代写 Please complete this assignment (100 pts total) and submit your report/program code on Canvas (all files compressed in one .zip witho...
View detailsProgramming assignment #3: eigenvalues 数值分析课业代写 Problem 1. Program the power method and inverse power method to compute the maximum and minimum eigenvalue/eigenvector pairs of the symme...
View detailsVolatility Forecasting Homework 波动率预测代写 1.You will estimate the parameters of a few GARCH-type models using about ten years of data (from Jan 1, 2013 to Nov 30, 2022) for SPY 1. ...
View details学计算机的留学生一定要了解什么是python代考 国外python代考 计算机在现在是一个非常热门的行业,但是计算机专业也是非常难学的,计算机专业和法学、医学齐名,这三个专业被称之为最难熬的三个专业。这...
View details