Data science enhances people’s decision making. Doctors and researchers are making critical decisions every day. Therefore, it is absolutely necessary for those people to have some basic knowledge of data science. This series aims to help people that are around medical field to enhance their data science skills. We will work with a health related […]

## Data science for Doctors: Inferential Statistics Solutions (part-2)

Below are the solutions to these exercises on inferential statistics. #################### # # # Exercise 1 # # # #################### binom.test(5 ,30, mean(data$class),alternative = "two.sided") ## ## Exact binomial test ## ## data: 5 and 30 ## number of successes = 5, number of trials = 30, p-value = 0.03587 ## alternative hypothesis: true probability […]

## Data Science for Doctors – Part 4 : Inferential Statistics (1/5) Solutions

Below are the solutions to these exercises on data display. #################### # # # Exercise 1 # # # #################### iter <- 10000 means <- rep(NA, iter) for (i in 1:iter){ sam_50 <- sample(data$mass, 50) means[i] <- mean(sam_50) } hist(means) hist(data$mass) #################### # # # Exercise 2 # # # #################### mean(data$mass) ## [1] 31.99258 […]

## Data Science for Doctors – Part 4 : Inferential Statistics (1/5)

Data science enhances people’s decision making. Doctors and researchers are making critical decisions every day. Therefore, it is absolutely necessary for those people to have some basic knowledge of data science. This series aims to help people that are around medical field to enhance their data science skills. We will work with a health related […]

## Data Science for Doctors – Part 3 : Distributions

Data science enhances people’s decision making. Doctors and researchers are making critical decisions every day. Therefore, it is absolutely necessary for those people to have some basic knowledge of data science. This series aims to help people that are around medical field to enhance their data science skills. This is the third part of the […]

## Data Science for Doctors – Part 3 : Distributions Solutions

Below are the solutions to these exercises on data display. #################### # # # Exercise 1 # # # #################### n <- 100 p <- 0.3 #a dbinom(34, n, p) ## [1] 0.05788395 sum(dbinom(34:n, n, p)) ## [1] 0.2207422 pbinom(34, n, p) ## [1] 0.8371417 #b sum(dbinom(30:60, n, p)) ## [1] 0.5376603 #c qbinom(0.025,n,p) ## […]

## Data Science for Doctors – Part 2 : Descriptive Statistics Solutions

Below are the solutions to these exercises on descriptive statistics. #################### # # # Exercise 1 # # # #################### mean(data[[‘mass’]]) ## [1] 31.99258 #OR sum(data[[‘mass’]])/length(data[[‘mass’]]) ## [1] 31.99258 #################### # # # Exercise 2 # # # #################### median(data[[‘mass’]]) ## [1] 32 #OR (sort(data[[‘mass’]])[length(data[[‘mass’]])/2] + sort(data[[‘mass’]])[length(data[[‘mass’]])/2+1] )/2 ## [1] 32 # This is a […]

## Data Science for Doctors – Part 2 : Descriptive Statistics

Data science enhances people’s decision making. Doctors and researchers are making critical decisions every day. Therefore, it is absolutely necessary for those people to have some basic knowledge of data science. This series aims to help people that are around medical field to enhance their data science skills. We will work with a health related […]

## Data Science for Doctors – Part 1 : Data Display

## Data Science for Doctors – Part 1 : Data Display Solutions

Below are the solutions to these exercises on data display. #################### # # # Exercise 1 # # # #################### table(data[‘class’]) ## ## 0 1 ## 500 268 #################### # # # Exercise 2 # # # #################### pie(table(data[‘class.fac’])) # OR ggplot(data, aes(x = factor(1), fill = class.fac)) + geom_bar(width = 1) + coord_polar(theta = […]