Publications by Tasneem Zaihra
MTH542_ECDF_Lab
Note this lab is based on lab from https://data.library.virginia.edu/understanding-empirical-cumulative-distribution-functions/ Discrete Distributions: Binomial Imagine a simple event, say flipping a coin 3 times. Here are all the possible outcomes, where H = head and T = tails. We can quickly generate the probabilities in R using the dbinom fun...
8454 sym R (2735 sym/25 pcs) 9 img
Empirical Cumulative Distribution Function ( ECDF lab)
Note this lab is based on lab from https://data.library.virginia.edu/understanding-empirical-cumulative-distribution-functions/ Discrete Distributions: Binomial Imagine a simple event, say flipping a coin 3 times. Here are all the possible outcomes, where H = head and T = tails. We can quickly generate the probabilities in R using the dbinom fun...
8045 sym R (1756 sym/24 pcs) 8 img
Laura's Lab on Pfizer vaccine
library(epitools) #contains the credit data library(tidyverse) theme_set(theme_classic()) Analyze 2x2 Categorical Vaccine Data Pfizer indicated they had evidence of a vaccine canditate that was found to be more than 90% effective. In a press-release from the 9th of November 2020. I thought it would be interesting to do a simple categorical data ...
1788 sym R (1674 sym/8 pcs) 1 img
FinalMTH546
R Markdown Load Packages Description of the e-cigarette dataset from Center for Disease Control and Prevention, 2016. The data set was collected via health-related telephone surveys on health-related risk behaviors, chronic health conditions, and use of preventive services from the noninstitutionalized adult population 18 years of age and older...
5362 sym R (10518 sym/25 pcs) 3 tbl
Solutions2Ch3AsgComputing
Exercise 3.2 (p. 94) The standard Laplace distribution has density \(\mathbf{f(x) = \frac12e^{-|x|},\,x \in \mathbb{R}}\). Use the inverse transform method to generate a random sample of size 1000 from this distribution. Use one of the methods shown in this chapter to compare the generated sample to the target distribution. \(f_X(x)=\begin{cases...
5464 sym R (2412 sym/5 pcs) 5 img
MTH641RegressionLab
Data and code Background Several of the below data and codes are taken from Nicholas Horton (nhorton@amherst.edu) R Markdown reproducible analysis source file, which can be found at http://nhorton.people.amherst.edu/sdm4. Most of the examples are from the Fourth Edition of (2014) by De Veaux, Velleman, and Bock. Inferences for Regression Explo...
13135 sym R (25895 sym/115 pcs) 27 img
ComoutingRLab1Spring2021
Step 1 Loading required packages library(mosaic) library(mosaicData) library(dplyr) library(kableExtra) Step2 Print first 5 rows and first 5 columns of data Note I am using one of the several formats avaible at https://cran.r-project.org/web/packages/kableExtra/vignettes/awesome_table_in_html.html dt<-HELPrct[1:5, 1:5] dt %>% kbl(caption = "B...
2616 sym R (1036 sym/9 pcs) 1 img 7 tbl
ComputingChapter3Lab
Load required packages library(ggplot2) library(kableExtra) Problem 1 Generate 99 random numbers using congruential generator \(r_{i+1} = (ar_i + b) \text{mod}\ d\), where \(a\) is the multiplier, $b is the increment and \(d\) is the modulus of the generator. Substitute \(a = 17\), \(b = 0\), \(d = 100\) and seed \(r_1 = 13\), to generate 99 pse...
4772 sym R (3575 sym/14 pcs) 3 img
ECDF Lab Computing Spring 2021
Dont forget to Load Packages Step1: Find the empirical distribution function of the following sample: \((−15.4,−8.8,8.2,3.4,−7.1,4.5,−12.7,5.2,−10.6,−11.2)\) X<- c(-15.4, -8.8, 8.2, 3.4, -7.1, 4.5, -12.7, 5.2, -10.6, -11.2) a <- ecdf(X) prob <- a(X) dt <- as.data.frame(rbind(X, prob)) # sort by x #is.data.frame(dt) #row.names(dt) #...
2552 sym R (1158 sym/7 pcs) 6 img 1 tbl
SabbaticalStopnFriskSpring2022
# Load the data # Replace the path below with the path to where your data lives #data_path <- file.choose() #stops <- read_csv(data_path) stops<-read_csv('/Users/TASNEEM/OneDrive - SUNY - The College at Brockport/P-Drive copy 2020/COVID2020 Changes/Research/SABBATICAL/SABBATICAL/StopnFrisk/ny_statewide_2020_04_01.csv') ## ## ── Column specif...
22941 sym R (3043 sym/4 pcs) 6 img 15 tbl