# Machine learning lecture 1 course notes

 Page 1 / 13

## Supervised learning

Let's start by talking about a few examples of supervised learning problems. Suppose we have a dataset giving the living areas and prices of 47 houses fromPortland, Oregon:

 Living area (feet ${}^{2}$ ) Price (1000$s) 2104 400 1600 330 2400 369 1416 232 3000 540 $⋮$ $⋮$ We can plot this data: Given data like this, how can we learn to predict the prices of other houses in Portland, as a function of the size of their living areas? To establish notation for future use, we'll use ${x}^{\left(i\right)}$ to denote the “input” variables (living area in this example), also called input features , and ${y}^{\left(i\right)}$ to denote the “output” or target variable that we are trying to predict (price). A pair $\left({x}^{\left(i\right)},{y}^{\left(i\right)}\right)$ is called a training example , and the dataset that we'll be using to learn—a list of $m$ training examples $\left\{\left({x}^{\left(i\right)},{y}^{\left(i\right)}\right);i=1,...,m\right\}$ —is called a training set . Note that the superscript “ $\left(i\right)$ ” in the notation is simply an index into the training set, and has nothing to do with exponentiation. We will also use $\mathcal{X}$ denote the space of input values, and $\mathcal{Y}$ the space of output values. In this example, $\mathcal{X}=\mathcal{Y}=\mathbb{R}$ . To describe the supervised learning problem slightly more formally, our goal is, given a training set, to learn a function $h:\mathcal{X}↦\mathcal{Y}$ so that $h\left(x\right)$ is a “good” predictor for the corresponding value of $y$ . For historical reasons, this function $h$ is called a hypothesis . Seen pictorially, the process is thereforelike this: When the target variable that we're trying to predict is continuous, such as in our housing example, we call the learning problem a regression problem. When $y$ can take on only a small number of discrete values (such as if, given the living area,we wanted to predict if a dwelling is a house or an apartment, say), we call it a classification problem. ## Linear regression To make our housing example more interesting, let's consider a slightly richer dataset in which we also know the number of bedrooms in each house:  Living area (feet ${}^{2}$ ) #bedrooms Price (1000$s) 2104 3 400 1600 3 330 2400 3 369 1416 2 232 3000 4 540 $⋮$ $⋮$ $⋮$

Here, the $x$ 's are two-dimensional vectors in ${\mathbb{R}}^{2}$ . For instance, ${x}_{1}^{\left(i\right)}$ is the living area of the $i$ -th house in the training set, and ${x}_{2}^{\left(i\right)}$ is its number of bedrooms. (In general, when designing a learning problem, it will be up to you to decide what features to choose, so if youare out in Portland gathering housing data, you might also decide to include other features such as whether each house has a fireplace, the number ofbathrooms, and so on. We'll say more about feature selection later, but for now let's take the features as given.)

To perform supervised learning, we must decide how we're going to represent functions /hypotheses $h$ in a computer. As an initial choice, let's say we decide to approximate $y$ as a linear function of $x$ :

${h}_{\theta }\left(x\right)={\theta }_{0}+{\theta }_{1}{x}_{1}+{\theta }_{2}{x}_{2}$

Here, the ${\theta }_{i}$ 's are the parameters (also called weights ) parameterizing the spaceof linear functions mapping from $\mathcal{X}$ to $\mathcal{Y}$ . When there is no risk of confusion, we will drop the $\theta$ subscript in ${h}_{\theta }\left(x\right)$ , and write it more simply as $h\left(x\right)$ . To simplify our notation, we also introduce the convention of letting ${x}_{0}=1$ (this is the intercept term ), so that

#### Questions & Answers

Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
Renato
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
?
Kyle
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
Adin
why?
Adin
what school?
Kyle
biomolecules are e building blocks of every organics and inorganic materials.
Joe
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
research.net
kanaga
sciencedirect big data base
Ernesto
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
Maciej
characteristics of micro business
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
NANO
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
NANO
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
SUYASH Reply
for screen printed electrodes ?
SUYASH
What is lattice structure?
s. Reply
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
Sanket Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

### Read also:

#### Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Machine learning. OpenStax CNX. Oct 14, 2013 Download for free at http://cnx.org/content/col11500/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Machine learning' conversation and receive update notifications?   By By  By    