0% found this document useful (0 votes)
56 views2 pages

Machine Learning Assignment Quiz

This document discusses an assignment involving machine learning techniques. It asks the reader to: 1) Explain types of machine learning 2) Identify which technique is best for unstructured noisy data 3) Classify a stock market bankruptcy prediction problem as classification or regression 4) Classify a stock trading volume prediction problem as classification or regression 5) Identify which problems are best solved with supervised vs. unsupervised learning 6) Calculate the number of training examples based on data provided about students' grades.

Uploaded by

Aashirwad Kumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views2 pages

Machine Learning Assignment Quiz

This document discusses an assignment involving machine learning techniques. It asks the reader to: 1) Explain types of machine learning 2) Identify which technique is best for unstructured noisy data 3) Classify a stock market bankruptcy prediction problem as classification or regression 4) Classify a stock trading volume prediction problem as classification or regression 5) Identify which problems are best solved with supervised vs. unsupervised learning 6) Calculate the number of training examples based on data provided about students' grades.

Uploaded by

Aashirwad Kumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Subject code : CSL0507 Subject Name : Machine Learning

Assignment 1
1. Explain the Types of machine learning.

2. Which machine learning technique is applied to unstructured noisy data.

3. Suppose you are working on stock market prediction. You would like to predict whether or
not a certain company will declare bankruptcy within the next 7 days (by training on
data of similar companies that had previously been at risk of bankruptcy).
Would you treat this as a classification or a regression problem?

4. Suppose you are working on stock market prediction, typically tens of millions of shares of
Microsoft stock are traded (i.e., bought/sold) each day. You would like to predict the
number of Microsoft shares that will be traded tomorrow.
Would you treat this as a classification or a regression problem?

5. Some of the problems below are best addressed using a supervised learning algorithm, and
the others with an unsupervised learning algorithm. Which of the following would you
apply supervised learning to? (Select all that apply.) In each case, assume some appropriate
dataset is available for your algorithm to learn from.
i. Given historical data of children’s ages and heights, predict children’s height as a
function of their age.
ii. Given 50 articles written by male authors, and 50 articles written by female authors,
learn to predict the gender of a new manuscript’s author (when the identity of this author
is unknown).
iii. Take a collection of 1000 essays written on the US Economy, and find a way to
automatically group these essays into a small number of groups of essays that are
somehow “similar” or “related”.
iv. Examine a large collection of emails that are known to be spam email, to discover if
there are sub-types of spam mail.

6. Consider the problem of predicting how well a student does in her second year of
college/university, given how well she did in her first year. Specifically, let x be equal to
the number of “A” grades (including A-. A and A+ grades) that a student receives in their
first year of college (freshmen year). We would like to predict the value of y, which we
define as the number of “A” grades they get in their second year (sophomore year).
Here each row is one training example. Recall that in linear regression, our hypothesis
is to denote the number of training examples.
For the training set given above (note that this training set may also be referenced in other
questions in this quiz), what is the value of ? In the box below, please enter your answer
(which should be a number between 0 and 10).

Common questions

Powered by AI

Supervised learning would be applied to: i) predicting children's height as a function of their age and ii) predicting the gender of a new manuscript’s author. In both cases, the problems are characterized by the presence of labeled data. The first scenario involves learning a predictive function based on a relationship between input features (age) and the continuous output (height). The second scenario involves training a model using pre-labeled data to predict categorical outcomes, i.e., classifying authors based on previous learning from gender-labeled articles.

Predicting the number of Microsoft shares to be traded tomorrow is characterized as a regression problem because the outcome is a continuous variable. In regression problems, the model forecasts a real value as opposed to assigning inputs to discrete categories. The objective here is to predict a specific quantity of shares which requires modeling of the relationship between historic trading volumes and future possible outcomes using continuous data points.

Machine learning can be classified into three main types: supervised learning, unsupervised learning, and reinforcement learning. Supervised learning utilizes labeled data to train algorithms, which means that the algorithm learns by example. It aims to predict outcomes for unseen data based on the models formed during the training phase. Unsupervised learning, on the other hand, deals with unlabeled data, allowing the algorithm to discover hidden patterns or intrinsic structures in the input data. Reinforcement learning involves learning what actions to take, given certain situations, to maximize a numerical reward signal. It is particularly useful in allowing machines to learn behavior in environments where they must carry out a sequence of operations to achieve a goal.

Reinforcement learning could outperform supervised or unsupervised learning in environments where sequential decision-making is essential, and outcomes of actions become apparent only through time. It is advantageous in problems like game playing, autonomous vehicle navigation, or robotic control, where the agent learns optimal actions through the maximization of reward signals over multiple trials. Unlike supervised or unsupervised approaches, reinforcement learning helps to understand the environment through trial and error, accommodating complex decision processes with long-term dependencies and non-stationary data.

Predicting whether a company will declare bankruptcy is considered a classification problem because the outcome variable is categorical. The problem requires the model to assign the input data to one of the predefined classes, in this case, 'bankruptcy' or 'no bankruptcy.' This binary classification helps categorize the companies based on the learning from past data of companies that faced similar financial conditions. It is different from regression problems where the output variable is continuous.

The categorization of a machine learning problem as classification or regression depends on the nature of the outcome variable. If the outcome is discrete and falls into predefined categories, the problem is a classification problem. If the outcome is a continuous and real-valued number, the problem falls under regression. Additional considerations involve the goal of the predictive model, whether to categorize or predict a precise value, and the data structure and labels available.

Unsupervised learning is useful in discovering sub-types of spam mail because it can analyze the patterns and similarities within the dataset without prior labeling. This technique can cluster examples using methods such as k-means or hierarchical clustering to identify hidden groupings or novel spam categories. These insights allow for building robust filtering systems that adapt to emerging spam patterns, thereby enhancing email security protocols effectively.

Linear regression might be used to predict a student's future academic performance based on previous grades because it models the relationship between a dependent variable and one or more independent variables. By examining how the number of 'A' grades in the freshman year influences those in the sophomore year, linear regression can provide an estimate for future grades. This approach assumes a linear relationship between the data points which can yield an predictive model useful in academic performance analysis.

Evaluating a model's performance in supervised learning focuses on accuracy, precision, recall, F1-score, and confusion matrices, where predictions are matched against true labels of a labeled dataset to determine correctness. In contrast, unsupervised learning evaluation involves metrics like cohesion and separation (silhouette score), within-cluster variance, and inter-cluster distance since labeled data is not available. Such unsupervised evaluation focuses on the quality and relevance of discovered patterns or groupings rather than explicit prediction accuracy.

The procedural differences between supervised and unsupervised learning algorithms primarily lie in the nature of the data used and the model training approach. Supervised learning utilizes labeled datasets, where each training example is paired with an output label, allowing the model to learn an input-output mapping. Model evaluation hinges on measured accuracy against known labels. Conversely, unsupervised learning works with unlabeled datasets and relies on patterns or groupings within the data itself, requiring the use of evaluation methods like silhouette scores that assess clustering quality. The choice of algorithm depends on the data structure and the desired output form — whether predictive or descriptive.

You might also like