Publications by Maryluz Cruz
HW 7
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 \[ P(X=1)= \frac {kn−(k−1)^n}{kn}\] \[ P(X=2)=\frac{(k−2+1)n−(k−2)^n}{kn}\] \[P(X=y)=\frac{(k−y+1)^n−(k−y)n}{k^n}\] Your organi...
1631 sym R (168 sym/8 pcs)
Discussion 7
Chapter 6.1 ex 2. 2.A card is drawn at random from a deck of playing cards. If it is red, the player wins 1 dollar; if it is black, the player loses 2 dollars. Find the expected value of the game. \[ X = 1/2 - 2(1/2) = -1/2\] (1/2) - 2*(1/2) ## [1] -0.5 4. In Las Vegas the roulette wheel has a 0 and a 00 and then the numbers 1 to 36 marked on e...
633 sym R (63 sym/4 pcs)
discussion 9
Let S100 be the number of heads that turn up in 100 tosses of a fair coin. Use the Central Limit Theorem to estimate P(S100 ≤ 45). \[E(x) = np = 100 \cdot 0.5 = 50 \\ \sigma^2 = \sqrt{npq} = \sqrt{100 \cdot 0.5 \cdot 0.5} = \sqrt{25} = 5\] \[\begin{align} P(S_{100} \leq 45) &= P(S_{n}^* \leq \frac{45 + .5 - 50}{5}) \\ &= P(S_{n}^* \leq \fr...
1195 sym R (124 sym/8 pcs)
data605final
require(tidyverse) require(GGally) require(kableExtra) require(psych) require(reshape) require(dplyr) require(plotly) require(ggplot2) require(tidyr) require(corrplot) require(matrixcalc) require(RColorBrewer) require(MASS) require(gmodels) require(mice) require(e1071) require(randomForest) require(vcd) Prob...
6044 sym R (30355 sym/73 pcs) 9 img 2 tbl
Data 608 HW 1
require(dplyr) require(psych) require(ggplot2) require(tidyverse) Principles of Data Visualization and Introduction to ggplot2 I have provided you with data about the 5,000 fastest growing companies in the US, as compiled by Inc. magazine. lets read this in: inc <- read.csv("https://raw.githubusercontent.com/charleyferrari/CUNY_DATA_608/master/m...
1456 sym R (5385 sym/15 pcs) 3 img
Data 608 Final Project Proposal
Final Project Proposal The Data for this project will be from data.gov, from the Montgomery County of Maryland. The link to the data is here: https://catalog.data.gov/dataset/mcpd-bias-incidents/resource/fb702f34-d517-40b5-b877-0a7a7ba3784c This data includes information of when a bias incident has occured against another person from the years 20...
1420 sym R (3825 sym/3 pcs)
Data 608 Final
Data 608 Final: Bias Incidents Maryluz Cruz 12/5/2020 Bias Incidents Overview Over the recent years there have been a lot of bias incidents that have been committed whether it be due to race, religion, sexual orientation. Here I wanted to look into that and see what bias incidents that have been committed the most. Also to see how many bias inc...
19957 sym R (4736 sym/4 pcs) 9 img
Blog 1
Web Scraping Online Articles Maryluz CruZ 12/16/2020 Blog 1 Web Scraping using rvest makes it easy to scrape a web page or a web article. There are times that one wants to get information on a website and convert it into a csv so that you can use it for word clouds or a sentiment analysis or anything like that. These pacakeges make it possible f...
3165 sym R (31026 sym/12 pcs)
Blog 2
Sentiment Analysis Packages needed for this blog require(dplyr) require(tidytext) require(tidyverse) require(ggplot2) require(widyr) require(tidyr) require(kableExtra) With the csv that was created in Blog 1, we can now do a Sentiment Analysis, but what is Sentiment Analysis exactly. Sentiment Analysis is a task of computing that determine...
3192 sym R (2148 sym/17 pcs) 3 img 4 tbl
Data 624 HW 2
Data 624 HW 2 Maryluz Cruz 2021-02-21 require(fpp2) require(kableExtra) 3.1. For the following series, find an appropriate Box-Cox transformation in order to stabilise the variance. usnetelec BoxCox.lambda(usnetelec) ## [1] 0.5167714 autoplot(usnetelec,BoxCox.lambda(usnetelec))+ theme_light()+ ggtitle("usnetelec") usgdp BoxCox.lambda(...
1080 sym R (3590 sym/34 pcs) 10 img 1 tbl