Publications by yina qiao
DATA 608 Story - 4-Yina Qiao
Instruction I have introduced the term “Data Practitioner” as a generic job descriptor because we have so many different job role titles for individuals whose work activities overlap including Data Scientist, Data Engineer, Data Analyst, Business Analyst, Data Architect, etc. For this story we will answer the question, “How much do we get pai...
1417 sym Python (5761 sym/3 pcs) 2 img
DATA 605 HW9-YINA QIAO
11 The price of one share of stock in the Pilsdorff Beer Company (see Exercise 8.2.12) is given by Yn on the nth day of the year. Finn observes that the differences Xn = Yn+1 − Yn appear to be independent random variables with a common distribution having mean µ = 0 and variance σ2 = 1/4. If Y1 = 100, estimate the probability that Y365 is (a) �...
2147 sym
DATA 605 HW10-YINA QIAO
Problem Statement Smith is in jail with 1 dollar and can get out on bail if he has 8 dollars. A guard agrees to make a series of bets with him. If Smith bets A dollars, he wins A dollars with probability 0.4 and loses A dollars with probability 0.6. (a) Timid Strategy Smith bets 1 dollar each time. The probability of reaching 8 dollars before losi...
1104 sym
DATA 605 HW8-YINA QIAO
Problem 11 A company buys 100 lightbulbs, each of which has an exponential lifetime of 1000 hours. What is the expected time for the first of these bulbs to burn out? Solution to Problem 11 Given that each lightbulb has an exponential lifetime with a mean (μ) of 1000 hours, and we have 100 lightbulbs (n = 100), we can use the result from Exercise...
3546 sym
605 W8D-YINA QIAO
page 312 exercise 1 A fair coin is tossed 100 times. The expected number of heads is 50, and the standard deviation for the number of heads is \(\sqrt{100 \times \frac{1}{2} \times \frac{1}{2}} = 5\). What does Chebyshev’s Inequality tell you about the probability that the number of heads that turn up deviates from the expected number 50 by three...
691 sym
DATA 605 HW6-YINA QIAO
1. A bag contains 5 green and 7 red jellybeans. How many ways can 5 jellybeans be withdrawn from the bag so that the number of green ones withdrawn will be less than 2? # Total jellybeans of each color green_jellybeans <- 5 red_jellybeans <- 7 # Scenario 1: No green jellybeans ways_no_green <- choose(red_jellybeans, 5) # Scenario 2: 1 green jelly...
3028 sym Python (4614 sym/24 pcs)
605 W7D-YINA QIAO
38 A manufactured lot of buggy whips has 20 items, of which 5 are defective. A random sample of 5 items is chosen to be inspected. We need to find the probability that the sample contains exactly one defective item under two scenarios: Sampling is done with replacement. Sampling is done without replacement. Solution (a) Sampling with Replacement...
1362 sym
DATA 605 HW7-yina qiao
Problem 1: Let \(X_1, X_2, \ldots, X_n\) be \(n\) mutually independent random variables, each uniformly distributed on the integers from 1 to \(k\). Let \(Y\) denote the minimum of the \(X_i\)’s. Find the distribution of Y Calculate the Cumulative Distribution Function (CDF) The CDF, \(F_Y(y)\), gives the probability that \(Y\) is less than or eq...
1484 sym
DATA 608 story 3 YINA QIAO
API url <- "https://data.cdc.gov/resource/489q-934x.json" response <- GET(url) if (status_code(response) == 200) { data <- fromJSON(content(response, "text", encoding = "UTF-8")) df_mortality <- as.data.frame(data) } else { cat("Error: Unable to retrieve data from the URL.\n") } head(df_mortality) Data Prep # overview of data # unique_...
48 sym Python (4386 sym/4 pcs)
DATA 605 HW6-YINA QIAO
1. A bag contains 5 green and 7 red jellybeans. How many ways can 5 jellybeans be withdrawn from the bag so that the number of green ones withdrawn will be less than 2? # Total jellybeans of each color green_jellybeans <- 5 red_jellybeans <- 7 # Scenario 1: No green jellybeans ways_no_green <- choose(red_jellybeans, 5) # Scenario 2: 1 green jelly...
3028 sym Python (5171 sym/24 pcs)