Publications by Marjete

Regression with Car dataset

12.11.2023

605 assignment 11 Using the “cars” dataset in R, build a linear model for stopping distance as a function of speed and replicate the analysis of your textbook chapter 3 (visualization, quality evaluation of the model, and residual analysis.) #whats is stopping distance as a function of speed library(tibble) glimpse (cars) ## Rows: 50 ## Columns...

1803 sym R (1881 sym/15 pcs) 6 img

Regression

11.11.2023

Data 605 Using R, build a  regression model for data that interests you. Conduct residual analysis.  Was the linear model appropriate? Why or why not? #import data, which was scraped from FiveThirtyEight - bad-drivers data <- read.csv("https://raw.githubusercontent.com/datasets/five-thirty-eight-datasets/master/datasets/bad-drivers/data/bad-dr...

819 sym R (4161 sym/12 pcs) 5 img

605 assignment 10

07.11.2023

Smith is in jail and has 1 dollar; he 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 .4 and loses A dollars with probability .6. Find the probability that he wins 8 dollars before losing all of his money if… he bets 1 dollar each time (timid ...

1412 sym Python (2023 sym/8 pcs)

Discussion Board week 10

04.11.2023

Chapter 12 Gambler’s Ruin 8 Write a computer program which simulates the game in Exercise 6 for the case p = q = 1/2, and M = 10. For context 6: In the text, it was shown that if q < p, there is a positive probability that a gambler, starting with a stake of 0 dollars, will never return to the origin. Thus, we will now assume that q ≥ p. Usin...

540 sym

DB week 10

04.11.2023

Chapter 12 Gambler’s Ruin 8 Write a computer program which simulates the game in Exercise 6 for the case p = q = 1/2, and M = 10. For context 6: In the text, it was shown that if q < p, there is a positive probability that a gambler, starting with a stake of 0 dollars, will never return to the origin. Thus, we will now assume that q ≥ p. Usin...

542 sym R (1350 sym/2 pcs) 1 img

605 assignment 9

30.10.2023

Assignment 8 Question 1 (on pg 363, q 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, est...

2174 sym Python (607 sym/10 pcs)

Assignment 9

30.10.2023

Assignment 9 Question 1 (on pg 363, q 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, est...

2266 sym Python (607 sym/10 pcs)

Assignment 8

22.10.2023

Assignment 8 11 and #14 on page 303 of probability text & #1 on page 320-321 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? (See Exercise 10.) 10 - Let X1, X2, . . . , Xn be n independent random variables each of which has an exponential d...

2600 sym

Discussion board, Week 7, Probability

15.10.2023

Discussion board, Week 7, Probability, CHAPTER 5. DISTRIBUTIONS AND DENSITIES 7 Explain how you can generate a random variable whose cumulative distribution function is F(x) = (0, if x < 0, x^2, if 0 ≤ x ≤ 1, 1, if x > 1. 8. Write a program to generate a sample of 1000 random outcomes each of which is chosen from the distribution given in Exer...

500 sym Python (700 sym/1 pcs) 1 img

Data 605 Assignment 7

16.10.2023

Assignment 7 1. Let X1, X2, . . . , Xn be n mutually independent random variables, each of which is uniformly distributed on the integers from 1 to k. Let Y denote the minimum of the Xi’s. Find the distribution of Y . Hint from class video 7: \[ P(Y < y) = P(\min(x_1, x_2, \ldots, x_n) < y), \] Where \(y\) is the minimum of each random variable,...

3251 sym