Data science &big data | Computer Science homework help

[ad_1]

IT836 Assignment 2: 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?

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Australia Assessments
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Military
Excellent work
Customer 456821, February 26th, 2022
Accounting & Finance
Good blog design and content.
Customer 452441, April 15th, 2022
Psychology
Good job.
Customer 453707, May 8th, 2022
Military
good job
Customer 456821, March 28th, 2022
Psychology
Outstanding job! Really happy about it. I'm impressed!
Customer 463863, February 24th, 2023
Education
Good work.
Customer 462281, April 14th, 2022
Psychology
Looks great.
Customer 463363, September 23rd, 2022
SEO
A job well done.
Customer 463679, May 13th, 2023
Nursing
i really appreciate for the writer work for redoing my assignment on my request. Hopefully i will get atleast credit in this essay.
Customer 452967, April 3rd, 2020
Other
Thank you again for another beautifully written paper and writing the thoughts as if they were my own.
Customer 452455, February 26th, 2023
Marketing
Great quality work
Customer 462481, February 17th, 2022
Business Studies
This was done in an excellent manner. The writer paid attention to the details that were required when worked on this project. Awesome, Thank you!
Customer 454345, May 7th, 2020
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat