Saturday, August 5, 2017

Recommendation system: A collaborative approach

A recommendation system analyze your preference and automatically suggest you the similar item/product that you may be interested in.
For example Movie recommendation system such as NETFLIX , Product recommendation system such as AMAZON and so. on.

In this tutorial, I will be talking about food items recommendation system using collaborative approach with example.


Collaborative approach  uses the idea of collaboration between users preference and finding the similarity between users preference. These measurement are used as a recommendation criteria.

This can be illustrate with following figure:
 Image result for collaborative filletering

Lets consider 5 items and 4 users with following ratings:



Items
Ram
Shyam
Hari
Gopal
MoMO
5
0
0
0
PIZZA
5
0
?
0
BIRIYANI
?
2
5
?
NODDLES
0
4
0
4
CHICKEN ROLL
0
5
0
?

By intuition, we can find the dissimilarity between User "Ram" and "Shyam" then the other users. So we need an algorithm to find the similarity between users so that this similarity criteria can be used for the recommendation propose. Lets say ram(5,5, ?,0,0) is a  rating vector for user ram and shyam(0,0,2,4,5) is for shyam ans so.on.

Similarity measure by Jecard Distance: The Jeccard distance between vector A and Vector B is defined as:
sim(A,B)=  |A intersection B|/ |A union B|
For Example: the jeccard distance between Ram and Shyam is =4/9 i.e common items divided by total item rated.
 Here the problem with this approach is that it ignore the value of rating and just consider whether the rating is present or not.

The next option is cosine similarity. it is defined as
cos(A,B) =A.B/|A|.|B|
Now the cosine similarity between ram and sham is :
Ram =(5,5, ?,0,0)=(5,5, 0,0,0) here feel the unknown rating by zero.
Syam=(0,0,2,4,5)
Now sim(Ram, Shyam)=(5x0+5x0+0x2+0x4+0x5)+/sqrt(5x5+5x5) xsqrt(2x2+4x4+5x5) =0
i.e they are opposite to each other. it gives better estimation of similarity then jeccard in case of rating values. There are many improvements on cosine similarity such as centered cosine or Pearson correlations and so.on.

Rating Predication
suppose we want to predict the rating of user x to item i, then we select the N-most similar user to x who also have rated item i and then can take a average of rating of this item i by these N user as a rating for item i by user x. This is very simple approach. The other approach is to rake weighted average.

The approach explained above is user based collaborative filtering. Now the another version of collaborative filtering is item based approach, Here this is very similar to user based. We need to find the similarity between item to item and then predict the rating of item i to user x.

Thursday, August 3, 2017

Frequent GRE words (Version 1)

Basic Words
1.      Escalates/v/: Become great worse or more serious. eg. His financial problems escalated after he become unemployed.
2.      Revise /v/: To look again to improve it. eg:  I was asked to revise my proposal before submitting it again.
3.      Plummet/v/: to decline sharply eg: plummet supply
4.      Augment/v/:-
a.       to increase eg the price augmented.
b.      to uplift eg the seat was augmented.
c.       to improve or make better eg the meal was augmented.
d.      to enlarge eg: The photograph is augmented.
5.      Soar/v/:- rocket or sky-rocket eg soaring price (figurative)
6.      jeopardize /v/: to endanger eg. jeopardize culture/ By failing her finals, teacher jeopardize his whole future.
7.      Composure: mental calmness. eg a composed pilot.
a.       /opp/ discomposure
8.      Abstract /n/
a.       summary eg the abstract of story
b.      Not representing a particular figure eg abstract art
c.       Not concrete eg abstract idea.
9.      Archaic /n/  :
a.       very old or outdated eg the archaic meaning of word.
10.  Perturb /v/: to worry someone
11.  ephemeral/adj/: transient/fugitive/ momentary/fleeting/evanescent
12.  Momentous/adj/ long lasting
13.  momentum /n/- encouragement/stimulus /incentive /drive/impetus
14.  Momentary /adj/- transient/ ephemeral
15.  Drivel /v/- to talk nonsense or nonsense
16.  Gainsaid /V/- to contradict or to deny.
17.  immutable /adj/- unchangeable system
18.  Specious /adj/- seemingly true but false
19.  spacious /adj/- having comfortable space
20.  Erratic /adj/-Fluctuating eg erratic oil price.
21.  Discrete /adj/.- Secret and sensible so that other may not realize and notice eg journalist was following the prime minister in a discrete manner.
22.  Surreptitious /adj/- secret so that other may not notice. eg surreptitious glance.
/syn/- furtive eg they exchange furtive smile.
23.  implicit /adj/- hidden
24.  Explicit /adj/- clearly stated.
25.  Explicate /v/ : explain with logic. explicable problem.
26.  boast /v/:-
a.       Brag eg don’t brag
b.      have (matter of pride) eg Nepal boast Mt. Everest.
c.       To express st. with energy and pride eg he boasted he won the match.
27.  lackadaisical /adj/- with no energy or enthusiasm.
28.  Garrulous /adj/ -Having a habbit of talking a lot in unimportant matter.
29.  talkative:- willing to talk a lot.
30.  skeptic /adj/- non believer/doubt the truth.







Research Paper: Reading and Review



Re-Search

Research is a systematic inquiry that investigates hypotheses, suggests new interpretations of data or texts, and poses new questions for future research to explore.

Research consists of:

Asking a question that nobody has asked before.
Doing the necessary work to find the answer;
Communicating the knowledge you have acquired to a larger audience.

Types of Research
Qualitative: interviews, surveys, and observation.
Quantitative: objective measurement and quantitative analysis (statistics).
Correlation/Regression Analysis
Experimental:
And so on.


A research paper is not
a simply an informed summary of a topic by means of primary and secondary sources.
a book report
an opinion piece
an expository essay consisting solely of one's interpretation of a text
an overview of a particular topic

The rest of the presentation  can be found here