Publications by Ahmed Elsaeyed

AElsaeyed_Homework8

17.03.2024

Question 11 p303 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? In this question we are interested in the lifetime of an individual lightbulb. If \(\lambda\) represents the rate parameter of the distribution then the mean of the exponential ...

2224 sym

AElsaeyed_Home

04.03.2024

Question 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? We use the formula: \[ C(n, k) = \frac{n!}{k!(n-k)!} \] For this case, \(n = 7\) (total red jellybeans) and \(k = 5\) (jellybeans to be withdrawn), so: \[ C(7, 5) = \frac{7...

2095 sym

AElsaeyed_Discussion6

03.03.2024

Five people get on an elevator that stops on five floors. Assuming that each has an equal probability of going to any one floor, find the probability that they all get off on different floors. Given: - The number of people \(n = 5\). - The number of floors \(n = 5\). The probability \(P\) that all five people get off on different floors is calculat...

1194 sym

AElsaeyed_Homework5

25.02.2024

Question 1 (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 d...

2580 sym

AElsaeyed_Discussion5

25.02.2024

Question 1, Page 12 Modify the program CoinTosses to toss a coin n times and print out after every 100 tosses the proportion of heads minus 1/2. Do these numbers appear to approach 0 as n increases? Modify the program again to print out, every 100 times, both of the following quantities: the proportion of heads minus 1/2, and the number of heads mi...

573 sym

AElsaeyed_HW4

18.02.2024

The below code finds the “eigenshoes” from a group of images of shoes. This process makes sense to me on a procedural level- we want to find the principal components that describe the majority (or 80%) of these shoes. I did get a little lost trying to follow along what the code was doing, but I will try my best to explain each step. library(doP...

1286 sym R (3908 sym/27 pcs) 4 img

AElsaeyed_Discussion4

18.02.2024

Find the matrix representation of: T: \(T: C^3 -> C^4, T \left(\begin{bmatrix} x \\ y \\ z \end{bmatrix} \right) = \begin{bmatrix} 3x + 2y +z \\ x + y + z \\ x-3y \\ 2x + 3y + z \end{bmatrix}\) The matrix on the right side can be written as: \(\begin{bmatrix} 3x \\ x \\ x \\ 2x \end{bmatrix} + \begin{bmatrix} 2y \\ y \\ -3y \\ 3y \end{bmatrix} + \b...

1103 sym

Aelsaeyed_HW3

11.02.2024

Problem Set 1 1. What is the rank of the matrix A? A = \(\begin{bmatrix} 1 & 2 & 3 & 4 \\ -1 & 0 & 1 & 3 \\ 0 & 1 & -1 & 1 \\ 5 & 4 & -2 & -3 \\ \end{bmatrix}\) Answer: I will find the reduced row-echelon form in order to determine the rank. Here I will do it by hand and then use the RREF function from pracma to confirm. Add row 1 to row 2 A = \...

6681 sym

AElsaeyed_Discussion3

08.02.2024

Find the characteristic polynomial of the matrix A= \(\begin{bmatrix} 3 & 2 & 1 \\ 0 & 1 & 1 \\ 1 & 2 & 0 \\ \end{bmatrix}\) \(pA(x) = det \left( \begin{bmatrix} 3 & 2 & 1 \\ 0 & 1 & 1 \\ 1 & 2 & 0 \\ \end{bmatrix} - \begin{bmatrix} x & 0 & 0 \\ 0 & x & 0 \\ 0 & 0 & x \\ \end{bmatrix} \right)\) \(= det \left(\begin{bmatrix} 3-x & 2 & 1 \\ 0 & 1-x &...

714 sym

Document

24.01.2022

Pulling in the data from my github library(RCurl) my_git_url <- getURL("https://raw.githubusercontent.com/aelsaeyed/BridgeR/main/datasets/hw3/flights.csv") flights <- read.csv(text = my_git_url, quote = "") #flights <- read.csv("/Users/aelsaeyed/BridgeR/datasets/hw3/flights.csv", quote = "" ) #airports <- read.csv("/Users/aelsaeyed/BridgeR/datas...

2776 sym R (10122 sym/44 pcs) 6 img