Computers and Technology

The reported height and height datasets were collected from three classes taught in the Departments of Computer Science and Biostatistics, as well as remotely through the Extension School. The Biostatistics class was taught in 2016 along with an online version offered by the Extension School. On 2016-01-25 at 8:15 AM, during one of the lectures, the instructors asked students to fill in the sex and height questionnaire that populated the reported height dataset. The online students filled the survey during the next few days, after the lecture was posted online. We can use this insight to define a variable, call it type, to denote the type of student: inclass or online: The code below sets up the dataset for you to analyze in the following exercises:
library(dslabs)
library(dplyr)
library(lubridate)
data("reported heights")
dat mutate(reported-heights, date-time ynd hms(time-stamp)) %)% <. filter(date-time )s make-date(2016, θ1, 25) & date-time < make-date(2016, θ2, 1)) %)% mutateltype İfelse(day(date-time)-= 25 & hour(date-time)-= 8 & between(minute(date-time), 15, 30),
"inclass","online")) %)%
select (sex, type)
y <-factor <- dat$sex, c("Female", "Male"))
x <-dat$type
In the course videos, height cutoffs were used to predict sex. Instead of using height, use the type variable and report your prediction accuracy Use what you learned about Q1 to make an informed guess about sex based on the most prevalent sex for each type. You do not need to split the data into training and test sets.
Write a line of code using the table function to show the confusion matrix between y_hat and y Use the format function(a, b) for your answer and do not name the columns and rows.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, paigesyring
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
image
Computers and Technology, 23.06.2019 00:00, dubouuu
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
image
Computers and Technology, 23.06.2019 16:30, mirmir62
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
image
Computers and Technology, 23.06.2019 19:30, carcon2019
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
Do you know the correct answer?
The reported height and height datasets were collected from three classes taught in the Departments...

Questions in other subjects:

Konu
English, 15.10.2019 13:50