subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
Perform an online search about the booting process of a computer and list all the steps
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
*write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard).
Answers: 1
You know the right answer?
The reported height and height datasets were collected from three classes taught in the Departments...
Questions
question
Mathematics, 17.12.2020 19:30
question
Mathematics, 17.12.2020 19:30
question
Mathematics, 17.12.2020 19:30
question
Mathematics, 17.12.2020 19:30
Questions on the website: 13722359