STAT 645 - Biostatistics Assignment Problem

Assignment Help Applied Statistics
Reference no: EM132414197

STAT 645 - Biostatistics Assignment, Texas A&M University, USA

Q1. For the income by degree and gender data set, contained in the file inc_deg_data.csv (Course Content/Data/incdeg):

(a) Make side-by-side box plots of income, with separate boxes for each of female arts (gender = 0, degree= 0), female science (gender= 0, degree= 1), male arts (gender= 1, degree = 0), and male science (gender= 1, degree= 1). Include labels on the x-axis to indicate which box goes with which category.

(b) Report the mean, median, standard deviation, and first and third quartiles of income.

(c) Report the mean, median, standard deviation, and first and third quartiles of income, now with income expressed in dollars (rather than 1,000s of dollars).

(d) Report the mean, median, standard deviation, and first and third quartiles of income (in 1,000s of dollars), now excluding the minimum and maximum values.

Q2. Set your random seed to be 101 (do set.seed(101)). Create a 100 x 5 matrix of random realizations from the standard normal distribution (normal with mean 0 and standard deviation 1).

(a) Report the column means (a vector of length 5). Demonstrate how you would do this (i) using the apply function and (ii) using vector/matrix arithmetic.

(b) Make a histogram of the row ranges; i.e., compute the range (maximum minus minimum) for each row, and make a histogram of the resulting 100 ranges.

Q3. Consider the gamma distribution with shape and scale parameters both equal 2; this corresponds to a mean of 4 and a variance of 8. Simulate samples of size n = 10, 30, 90 from this distribution, repeating B = 1000 times. For each simulated data set, compute the sample mean. Thus, you will have B = 1000 sample means for each of the three sample sizes. For each sample size, draw a probability histogram (as opposed to a frequency histogram, you can do this by setting probability = TRUE as an option to the hist function). Overlay the normal curve that would apply if the central limit theorem could be assumed to hold. Report the resulting three figures as a single three-panel figure.

Q4. In R create a matrix, named A, with 5 rows and 4 columns, such that the first three rows are random numbers generated from normal(0, 1) distribution while the last two rows contain random numbers generated from Uniform(2, 2). Create another matrix, named B, with 5 rows and 4 columns, such that the all elements are random draw from the Beta(2, 1) distribution. For creating A and B, use set.seed(101) and set.seed(102), respectively.

(a) Provide the code to obtain the column sum of A (sum of all entries for each column).

(b) Provide the code to obtain A + B, then print the (4, 2) and (4, 4)th entries of this sum.

(c) Provide the code to obtain ABT, then print the (4, 2) and (4, 4)th entries of this multiplication.

(d) Obtain the inverse of BTA, and also obtain the determinant of BTA.

Reference no: EM132414197

Questions Cloud

What is the firm wac : The firm pays taxes at the marginal rate of 40%. What is the firm's WAC? Round your answer to the nearest tenth of a percent.
What is the present value of the tax savings : If the firm is in the 35% tax bracket and the appropriate discount rate is 9%, what is the present value of the tax savings?
BSBINN801 Lead innovative thinking and practice Assignment : BSBINN801 Lead innovative thinking and practice Assignment Help and Solution, Alpha Institute - Assessment Writing Service - Identify and describe a creativity
What will the npv be on the proposed project : What will the NPV be on the proposed project based on a weighted average cost of capital of 12%? Additionally, what will the project's IRR be?
STAT 645 - Biostatistics Assignment Problem : STAT 645 - Biostatistics Assignment, Homework Help, Texas A&M University, USA. Compute the range (maximum minus minimum) for each row
What is the reported cost of goods sold on gsi : What is the reported cost of goods sold on GSI's income statement for 2007 under the speci?c identi?cation method?
What is the maximum loan a manager : If the average historical losses in the agricultural sector total 9 %, what is the maximum loan amanager can lend to a farmer as a percentage of total capital?
Calculate steve debt service ratio : His taxation and Medicare liability totals $46,500 pa. Calculate Steve's debt service ratio (to the nearest percentage point).
Calculate book value of an asset-genetic insights co : Genetic Insights Co. purchases an asset for $15,966. This asset qualifies as a seven-year recovery asset under MACRS.

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd