Set up a model to look for possible influences on interest

Assignment Help Computer Engineering
Reference no: EM131887599

Evaluated Exercise - HADOOP, PIG, MAHOUT and SPARK

Task 1: Apache PIG - Analyzing LogFiles

Dataset: RStudio CRAN Log-Files

Instructions: Please deliver all commands in your documentation (use a word-document and convert it later into a pdf); Also add screen-shots of the various steps and of results; Use FOREACH-statements to reduce the dataset (keep only variables which are necessary to solve a task).

1. Import RStudio Log Files from one month (e.g., November 2017) into HDFS

a. Download from RStudio CRAN log files page

b. Unzip the files

c. Import the complete directory into HDFS into a folder RLogFiles

2. Pig Latin: Top-100-packages (by operating system)

a. Load log-file of one day (e.g., 1st of November 2017)

b. Dump the first 10 entries on screen (attach a screen shot into your report) to check if it works or not

c. Count the number of occurences of different packages;

d. Count the number of occurences of different packages by operating system;

e. Store the results of both operations in HDFS;

3. sqoop, MySQL and R:

a. Export the results of both operations (package frequencies and package frequencies by operating systems) via sqoop into MySQL;

b. Access the tables by R/RStudio and display the results (Top-10-results in bar charts)

4. Pig Latin: Number of individual users each day

a. Load the log-files into HDFS

b. Count the number of distinct users each day

5. Pig Latin: Average number of packages downloaded by an individual user each day

a. Load the log-files into HDFS

b. Calculate the average number of packages download by an individual user each day

6. Pig Latin: Task Views

a. Task Views are collections of R packages of a certain topic (check the CRAN webpage)

b. We are interested if these Task Views are used by R users: count the number of package ctv downloaded each day)

c. Visualize the results in R (line chart) [follow the step in No. 3 or import the results directly into R)

7. Pig Latin: Download volume (in MB) of Top-10-packages

a. Use CRAN to find out the package size of the Top-10-packages (use WindowsPackage file size) in MB. Round to 1 decimal place.

b. Enter this information into a text file together with the name (should be the same as in log-files)

c. Import this file into HDFS

d. Load the file in Pig (I assume that the RStudio CRAN Log Files are available already)

e. Filter out the Top-10-packages in Pig

f. Add the size information

g. Calculate the download volume of each of the 10 packages by day

h. Export the results and display the results in R

Task 2: Apache PIG and Apache Mahout - Predicting Loan Success

Dataset: Lending Club Dataset (Q3/2017). - Filename: lc.2017q3.EvalExer.csv

Instructions: Please deliver all commands in your documentation (use a word-document and convert it later into a pdf); Also add screen-shots of the various steps and of results; Use FOREACH-statements to reduce the dataset (keep only variables which are necessary to solve a task).

1. Import File into HDFS

a. Download the file from Moodle - File: lc.2017q3.EvalExer.csv

b. Unzip the file

c. Check the structure and the variables in the file

d. Load the file into HDFS system

2. Load the file into PIG: Data Understanding and Data Preparation

a. Load the file into PIG from HDFS

b. Check all variables in the file and clean the variables

c. Filter the variables, generate new variables, etc.

d. Copy the final set of variables into a new file and store it into HDFS

3. Split the file into train- and test-datasets

a. Split the file using the provided macro in PIG into a training-file (70% of cases) and a test-file (30% of cases)

b. Store both files into HDFS using PIG

Choose one of tasks 4 or 5 (either task 4: logistic regression or task 5; Random Forest)

4. Conduct a logistic regression using Apache Mahout

a. Note: You cannot run a logistic regression in Mahout based on HDFS files. You have to export both files from HDFS first!

b. Run a logistic regression on the training data set

c. Check the model based on the test dataset

d. Report the results

5. Conduct a Random Forest

a. Note: Run the Random Forest Model based on the HDFS files. You do not need to export them first!

b. Run a RandomForest Model

c. Tune the model (at least a little bit)

d. Check the model based on the test data set

e. Report the results

Task 3: Apache Spark - Building Interest Rates Calculator

Context

You are working as Data Scientist in a project for Lending Club (check web page). The company wants to offer potential customers an online tool to predict potential interest rates based on the purpose and other variables. Your job is to set up a model to look for possible influences on interest rates (variable int_rate) and to set up a multivariate model to predict it.

In the last step you must prepare a management presentation with core findings.

Dataset - Visit the Lending Club Statistics page and download ONE OF THE EXISTING data sets.

Tasks:

  • Set up a new jupyter notebook
  • Use pandas and seaborn for visualization
  • Report all steps
  • Clean the dataset first (outside jupyter, use an editor!)
  • Target variable: interest rate
  • Import the dataset into hdfs
  • Apply CRISP DM

Steps:

Preliminary Steps

  • Select the variables shown in the table above

Data Understanding

  • Analyze the variables in dataset you selected (Schema, First rows, Descriptive Statistics / Frequency Tables, (Charts),...

Data Preparation

  • Missing Values
  • Transformation of all categorical variables
  • Split into Test and Training Dataset ...

Modeling

Models -

  • Model 1: Multiple Linear Regression
  • Model 2: Integrate polynomials (simply square the metric variables (measurement level scale) and interaction effects for selected variables!
  • Model 3: Tune Model 2 (you can use a grid search or just manipulate some hyperparameters like regularization parameter, lambda etc.)

Evaluate all Model Fits

Core Parameter is Coefficient of Determination R2

Always control for overfitting (just compare training and test datasets and reduce the complexity of the models if necessary)

Check the distribution of the error part

Report a final model which fits best to the data (due to R2 and overfitting).

Management Presentation

Present the core finding on a maximum of 6 slides (only task 3). Summarize core findings. You are addressing General Management!

Attachment:- Assignment File.rar

Reference no: EM131887599

Questions Cloud

Lesson in systematic and explicit phonics instruction : Explain how a lesson in systematic and explicit phonics instruction would look different than a lesson using non-systematic instruction.
What are the key concepts contained in the law or regulation : What are the key concepts contained in the law / regulation? How does it impact an organization and its IT infrastructure?
Fixed and growth mindsets : As Carol Dweck notes, we all hold both fixed and growth mindsets. Identifying situations that trigger a fixed-mindset voice can be a beneficial first step
Evaluate the job candidates : Interviews are experiences most of us encounter in our lives, and they can be seen in our popular culture.
Set up a model to look for possible influences on interest : Evaluated Exercise - HADOOP, PIG, MAHOUT and SPARK - Your job is to set up a model to look for possible influences on interest rates
Motivation for engaging in activity : Describe an activity you enjoy (and engage in consistently) and discuss your motivation for engaging in that activity by applying the concepts
How does culture and context impact impact beliefs : How does culture and context impact impact beliefs, values, and orientation?
What are the differences between just selling and marketing : What is Marketing? What are the differences between just selling and marketing? Your response should be a minimum of three pages in length, double-spaced.
Create an architectural operating system diagram : Create an Architectural Operating System diagram showing the communication channels between all three systems. Create an Operating System Process diagram.

Reviews

len1887599

3/5/2018 4:20:19 AM

Upload your final work (including documentation of tasks 1 and 2, jupyter-Notebook, HTML download of jupyter Notebook, presentation) until 11, 23:55h to moodle/htw. Do not forget to add your name on the document! See also document LCDataDictionary.xlsx - The Data Dictionary includes definitions for all the data attributes included in the Historical data file and the In Funding data file. Please clean the dataset using an editor first (delete the first line and another line in the last third of the dataset!).

Write a Review

Computer Engineering Questions & Answers

  How can you make improvements with a new system

What does the credit card charge form indicate about the existing system? How can you make improvements with a new system?

  What instance variables does a child class inherit

What is inheritance? What is a subclass? What methods does a child class inherit? What instance variables (fields) does a child class inherit?

  Write the stream-input algorithm in pseudo code

Write the stream-input algorithm in pseudo code. Write the stream-output algorithm in pseudo code. Explain the operation of the sequence control structure.

  Find user allowed to purchase particular restricted product

I need to create a simple age calculator to find if a user is allowed to purchase a particular restricted product. I need to model an abstract class to represent generic restricted product and concrete classes to represent alcohol, tobacco, R-rate..

  Why is a firewall usually a good place to terminate a

why is a firewall usually a good place to terminate a virtual private network vpn connection from a remote user? why

  Define the defuzzification method for your system

Implement the fuzzy sets as membership functions in your program. You may use any of the membership functions we discussed in class - Define the defuzzification method for your system.

  Describe processing computer crime and incident scenes

Describe processing computer crime and incident scenes. Explain ways to determine the best acquisition method. Describe how to validate data acquisitions. Apply the rules for controlling digital evidence.

  Create a function to estimate true heading

Create a function to estimate true heading. Equation (2) above tells how to compute θM from θT but we typically want to do the opposite. Use the fixed point iteration method to write a function which takes as input θM and then computes a number x suc..

  Write down a pseudo code for efficient multiplication of

a sparse matrix is a matrix populated primarily with zeros. classical matrix multiplication is too inefficient for

  Distinguish between application software and system software

Distinguish between application software and system software. What is an operating system? Name an operating system popular with serious programmers.

  Create a table with columns for information about location

Create a table with columns for information about the location and required IP addresses for different types of devices and/or interfaces.

  How to assemble and debug the problem

Write down a program using the mov instruction to produce the following results. Assemble and debug the problem.

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