Explain the variation in the model predictive power

Assignment Help Other Subject
Reference no: EM132290363

Assignment: Advanced Analytics in R

In this assignment you will train a Naïve Bayes classifier on categorical data and predict individuals' incomes. Import the nbtrain.csv file. Use the first 9010 records as training data and the remaining 1000 records as testing data.

1. Read the nbtrain.csv file into the R environment.

2. Construct the Naïve Bayes classifier from the training data, according to the formula "income ~ age + sex + educ". To do this, use the "naiveBayes" function from the "e1071" package. Provide the model's a priori and conditional probabilities.

3. Score the model with the testing data and create the model's confusion matrix. Also, calculate the overall, 10-50K, 50-80K, and GT 80K misclassification rates. Explain the variation in the model's predictive power across income classes.

4. Use the first 9010 records as training data and the remaining 1000 records as testing data.

5. What is propose of separating the data into a training set and testing set?

6. Construct the classifier according to the formula "sex ~ age + educ + income", and calculate the overall, female, and male misclassification rates. Explain the misclassification rates?

7. Divide the training data into two partitions, according to sex, and randomly select 3500 records from each partition. Reconstruct the model from part (a) from these 7000 records. Provide the model's a priori and conditional probabilities.

8. How well does the model classify the testing data? Explain why.

9. Repeat step (b) 4 several times. What effect does the random selection of records have on the model's performance?

10. What conclusions can one draw from this exercise?

Information related to above question is enclosed below:

Attachment:- nbtrain.rar

Reference no: EM132290363

Questions Cloud

Environment-finance-employment-infrastructure-taxation : Possible areas of thought are Environment, Finance, Employment, Infrastructure, Taxation.
Create a secure coding technique for your organization : Create a secure coding technique/quality and testing standard for your organization covering the following secure coding techniques!
Describe the procedures for each system-process : Describe the procedures for each system/process. Discuss ways to improve the procedures.
Explain and evaluate the implications of ethical dilemma : Explain and evaluate the implications of this ethical dilemma utilizing at least two specific ethical frameworks.
Explain the variation in the model predictive power : IT836 Score the model with the testing data and create the model's confusion matrix. Also, calculate the overall, 10-50K, 50-80K, and GT 80K misclassification.
What is the government role in regulation : What is the government's role in regulation? Should they be responsible for regulating business at all? Shouldn't that fall on the business itself?
Provide example of production or service process : Provide an example of a production or a service process that is not yet automated.
Case study - eastern health systems : You are expected to adopt the EHS network standards in your design. In cases where there is not a specific EHS requirement you will use industry standard
Your response be in light of the specific ethical concepts : You are the CEO of a major oil company. As CEO, what would your response be in light of the specific ethical concepts?

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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