﻿ 数据科学考试代写 Data Science代写 – 天才代写

# 数据科学考试代写 Data Science代写

2022-03-30 11:55 星期三 所属： data代写 浏览：486 ## CSCI 3022 Intro to Data Science Midterm Exam

• RIGHT NOW! Write your name and section on the top of your exam.
• Then! Flip your exam over and write your name on the back page.
• You are allowed one 8 1/2 × 11in sheet of handwritten notes (both sides). No magnifying glasses!
• You may use a calculator provided that it cannot access the internet or store large amounts of data.
• You may NOT use a smartphone as a calculator.
• Clearly mark answers to multiple choice questions on the provided answer line.
• Mark only one answer for multiple choice questions. If you think two answers are correct, mark the answer that best answers the question. No justification is required for multiple choice questions.
• If you do not know the answer to a question, skip it and come back to it later.
• If you need more space for free-response questions, there are blank pages at the end of the exam. If you choose to use the extra pages, make sure to clearly indicate which problem you are continuing.

### 1.(2 points)  数据科学考试代写

Jimmy the Octopus is recovering from a ski accident, and is regaining his dexterity by tossing around a football with his buddies. But his suckers are just not gripping the ball like they used to. He goes to the doctor, Dr. Cøraline Reefsdottír. The doctor sees that Jimmy has over 320 suckers across his 8 tentacles, and decides to number them all and evaluate the suction on every 16th sucker. What kind of sample is this?

A. Systematic

B. Thorough

C. Stratified

D. Unbiased

E. Census

### 2.(2 points)

Katie, arriving at a bus stop, just misses the bus. Suppose that she decides to walk if the (next) bus takes longer than 8 minutes to arrive. Suppose also that the time in minutes between the arrivals of buses at the bus stop is a continuous random variable with a U(4, 9) distribution. What is the probability that Katie will end up walking.

A. 1

B. 4/5

C. 3/5

D. 1/5

E. 1/2

### 3.(3 points)  数据科学考试代写

If y can be any real number, what values can the median of this dataset take? [1, 2, π, y, 5]

A. [1, 5]

B. (−∞, )

C. [2, π]

D. (2, π)

E. In this case, the median is undefined since π is irrational.

F. In this case, the median is undefined since π is unreasonable.

### 4.(3 points)

Rebecca has finally purchased a new TV that has way more graphics, and so, at last, she sets about beating the hot new video game, Fortnite. Let A be the event that Rebecca beats Fortnite on her first try. Let B be the event that Rebecca gets a new high score. Suppose that the probability that A occurs is 0.4, the probability that B occurs is 0.5, and the probability that neither A nor B occurs is 0.3. What is P(A B)?

A. 0.7

B. 0.6

C. 0.2

D. 0.1

E. 0.01

F. None of the Above

### 5.(3 points)  数据科学考试代写

You are stuck in a YouTube clickhole, late on a Thursday night, and cannot stop yourself from clicking Next…Next…Next…on all the videos. Homework is due for CSCI 3022 the next day, but you simply cannot get enough of these amazing clips of Violet the Octopus playing Plinko. What a legend! A new notification appears on your mobile, and it says:

f(x) = kx x2 for 0 x 1 and f(x) = 0 for any other value of x

What value of k makes f(x) a valid probability density function?

A. 8/3

B. 4/3

C. 2/3

D. 1/4

E. None of the above.

### 6.(3 points)

You are taking your 3022 midterm when you start thinking about octopuses for some reason. Consequently, consider the following:

The probability that a problem on a midterm exam is related to octopuses is 3/4 if Dan and Tony are tired, and is 1/2 if they are not tired. Dan and Tony are tired with probability 1/4. Given that this problem is about an octopus named Frederique, what is the probability that Dan and Tony are le tired?

A. 1/4

B. 2/4

C. 3/4

D. 1/3

E. 2/3

F. 2/5

G. 3/5

H. 4/5

### 8.(3 points)

You are hanging out with your friends, flipping through memes on the socials. Everyone there agrees that the crew should get off the couch and do something with the night. You attended a seminar on leadership, so you say, “Let us keep browsing these memes until we lol at 4 more good ones. Since each meme produces a lolindependently with probability p, then the probability that we browse through M memes total by the time we finally observe the fourth good one will be well modeled by . . .”

A. a geometric distribution

B. a poisson distribution

C. a uniform distribution

D. an exponential distribution

E. a binomial distribution

F. a negative binomial distribution

G. a hypergeometric distribution

H. Impossible; you’d never stop at 4.

### 9.(3 points)  数据科学考试代写

The background radiation rate as measured in a particular room with a particular Geiger counter is known to be 800 counts per hour on average. You run the Geiger counter in the room for a five second interval and write down the count. You run the Geiger counter again for another five second interval and write down that count. You repeat, and write down a third count. And a fourth. And a fifth . . . . As you store your data in a convenient Pandas dataframe, you begin to notice that yourmeasurements appear to be drawn from which of the following distributions?

A. Binomial

B. Poisson

C. Geometric

D. Uniform

E. Exponential

F. None of the Above A. 36.0

B. 1.9

C. −269.8

D. 269.8

E. 11.1

F. The null hypothesis should be rejected.

### 11.(3 points)  数据科学考试代写

Consider the following function related to incoming texts to a cellphone during class. What distribution does the return value of the function belong to?

```def text_me_im_so_stoked_about_3022(q):
j = 0
t = np.random.exponential(1/q)
while t <= 1:
j += 1
t += np.random.exponential(1/q)
return j```

A. Binomial

B. Geometric

C. Poisson

D. Uniform

E. Exponential

F. None of the Above

### 12.(3 points)

Consider simulating the roll of a fair, six-sided die. Which of the following quantities does the following function estimate?

```def rolling_rollers(num_samples):
rolls = np.random.choice([1,2,3,4,5,6], size=num_samples)
return np.sum(np.logical_and((rolls % 2)==1),(rolls > 2)) / np.sum((rolls % 2)==1)```

A. P(X > 2 | X is Odd)

B. P(X is Odd | X > 2)

C. P(X > 2 X is Odd)

D. P(X > 2 X is Odd)

### 13.(3 points)  数据科学考试代写

Consider the following function related to finding an open parking spot in a large parking lot where the probability of an individual spot being open is given by p. What distribution does the return value of the function belong to?

```import numpy as np
def shoulda_taken_the_bus(p):
total_spots = 1
successes = 0
while np.random.choice([0,1], p=[1-p, p]) == 0:
total_spots += 1
successes += 1

A. Binomial

B. Geometric

C. Poisson

D. Uniform

E. Exponential

F. The function above will produce an error if executed

G. None of the above

### 14.(3 points)

It’s Saturday night and you are at a party on the rooftop of Norlin Library. Everybody is there. The temperature is uniformly distributed between ideal and perfect. The music is loud, if you’re into loud music, but also it is more on the quiet side, if you’re more into that. Suddenly the music of your preferred volume stops and a voice comes over the speakers: What do you answer to get the party restarted? (Assume that you are trying to answer correctly because you want the rooftop party to continue.)

A. 2

B. 4

C. -4

D. Does not exist.

E. Cannot compute using the information given.

F. None of the above.

### 15.(20 points)  数据科学考试代写

Consider the following two datasets:

X = {8, 8, 10, 11, 11, 11, 11, 12, 13, 16, 17}

Y = {7, 8, 10, 10, 11, 11, 12, 12, 12, 12, 16} (a) There are 4 boxplots and one empty plot above. For each dataset, X and Y , identify which boxplot, if any, represents that dataset. If the correct boxplot for one of the datasets is not provided, please correctly draw it in the blank axes. Use the conventions for boxplots introduced in class, and fully justify your choices using the space provided. Be sure to address all aspects of the boxplot.

(b) Classify each dataset, X and Y , as symmetric, positively skewed, or negatively skewed. Clearly justify your response.

### 16.(20 points)  数据科学考试代写

Researchers are conducting an experiment to test for Extra-Sensory Perception (ESP). Their experiment involves showing a test-subject the back of a card with one of four shapes on the front side and asking them to correctly guess the shape. They perform this test on each test-subject 3 times. The study’s designers know from experience that a normal person without ESP will correctly guess the shape on the card with probability 1/4. On the other hand, a person with ESP will guess the correct shape with probability 7/8. The researchers also know that 1 out of every 10 people has ESP.

(a) If a test-subject in fact has ESP, what is the probability that they correctly guess all 3 cards that they are shown?

(b) What is the probability that any test-subject (whose ESP-status is unknown) correctly guesses all 3 cards that they are shown?

(c) Suppose that a test-subject (whose ESP-status is unknown) correctly guesses all 3 cards that they are shown. What is the probability that the test-subject has ESP?

(d) Let C1 be the event that the test subject correctly guesses the first card and C2 be the event that the test-subject correctly guesses the second card. First, state an appropriate mathematical definition of independence. Then, use that definition to determine whether C1 and C2 are independent events.

### 17.(20 points)  数据科学考试代写

The probability distribution of a discrete random variable X is given by

P(X = 1) = 1/10 , P(X = 0) = 1/10 , P(X = 1) = 3/10 , P(X = 2) = 5/10

(a) Compute E[X]

(b) Let Y be the random variable Y = X2 + 1. Write down the probability distribution of Y .

(c) Compute E[Y ]

(d) Compute Var(X)

(e) Let F represent the cumulative distribution function (CDF) for X, and compute F(0.5) 