Publications by jfor: Josh Forster

Data605: HW9

27.03.2023

The price of one share of stock in the Pilsdorff Beer Company (see Exer- cise 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 ≥ 1...

1847 sym

Datat605: HW8 Law of Large Numbers

14.03.2023

#11 and #14 on page 303 of probability text #1 on page 320-321 11 We have two coins: one is a fair coin and the other is a coin that produces heads with probability 3/4. One of the two coins is picked at random, and this coin is tossed n times. Let Sn be the number of heads that turns up in these n tosses. Does the Law of Large Numbers allow us to ...

2709 sym

Data605: HW7

10.03.2023

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 . This [source] (https://math.dartmouth.edu/archive/m20f10/public_html/HW5Solutions.pdf) was very helpful in understanding the way to approach this ...

3158 sym

Data605: HW6

04.03.2023

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? \(\binom{5}{1} * \binom{7}{4} + \binom{7}{5}\) choose(5,1) * choose(7,4)+choose(7,5) ## [1] 196 A certain congressional committee consists of 14 senators and 13 representatives. How ...

4204 sym

Data605: HW5

26.02.2023

(Bayesian). A new test for multinucleoside-resistant (MNR) human immunodeficiency virus type 1 (HIV-1) variants was recently developed. The test maintains 96% sensitivity, meaning that, for those with the disease, it will correctly report “positive” for 96% of them. The test is also 98% specific, meaning that, for those without the disease, 98%...

5498 sym

Data602: HW4

18.02.2023

With the attached data file, build and visualize eigenimagery that accounts for 80% of the variability. Provide full R code and discussion. library(stringr) library(OpenImageR) library(recolorize) ## ## Attaching package: 'recolorize' ## The following object is masked from 'package:OpenImageR': ## ## readImage library(ggplot2) Load jpg image...

1102 sym R (2319 sym/11 pcs) 4 img

Windows Functions

13.09.2022

Load Libraries R Markdown ####Load Google and Tesla prices over past year (rolling 12 Month Window) goog <- read.csv('https://raw.githubusercontent.com/jforster19/DATA607/main/GOOG.csv',colClasses=c("Date",rep("numeric",6))) tsla <- read.csv('https://raw.githubusercontent.com/jforster19/DATA607/main/TSLA.csv',colClasses=c("Date",rep("numeric",6)...

389 sym

Data 607: Assignment 3

16.09.2022

Data607: Assignment 3 String Manipulation & RegEx Load R Libraries #knitr::opts_chunk$set(echo = TRUE) library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ## ✔ tibbl...

2241 sym R (5615 sym/24 pcs)

Data 607: Project 1

20.09.2022

Project 1: Chess Tournament Clean Up Load Required Libraries for R Markdown knitr::opts_chunk$set(echo = TRUE) library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4 ## �...

2861 sym R (4016 sym/9 pcs) 1 img

Assignment 6: Tidying Data

02.10.2022

Load libraries needed to run analysis Read in flights dataset fp = 'https://raw.githubusercontent.com/jforster19/DATA607/main/assignment6_input%20-%20Sheet1.csv' input <- read_csv(fp,col_name=c('AIRLINE','STATUS','LOS ANGELES','PHOENIX','SAN DIEGO','SAN FRANCISCO','SEATTLE')) ## Rows: 6 Columns: 7 ## ── Column specification ─────�...

2863 sym Python (4641 sym/15 pcs) 7 img