brendan_oconnor_ai brendan_oconnor_ai-lda knowledge-graph by maker-knowledge-mining

brendan_oconnor_ai lda model


lda model topics list

topicId: wordWeight*wordName (topN-words)

topic #0: 0.012*ol + 0.011*forecasting + 0.008*jaron + 0.008*lanier + 0.007*greenspan + 0.007*zombie + 0.006*argue + 0.006*neurodudes + 0.006*fairly + 0.006*economy

topic #1: 0.013*search + 0.012*kakade + 0.008*al + 0.007*et + 0.006*picks + 0.006*longer + 0.006*plugin + 0.005*explorer + 0.005*sweeping + 0.005*noah

topic #2: 0.013*logfile + 0.011*scan + 0.006*plot + 0.006*log + 0.005*table + 0.005*kept + 0.005*verify + 0.004*bug + 0.004*tricks + 0.004*sampler

topic #3: 0.014*correlation + 0.010*terrorist + 0.009*sachs + 0.007*easterly + 0.007*poverty + 0.006*ols + 0.006*joseph + 0.006*coefficient + 0.006*simulations + 0.005*individual

topic #4: 0.015*python + 0.010*matplotlib + 0.009*bindings + 0.007*threw + 0.007*nothing + 0.006*bins + 0.006*fancy + 0.006*anywhere + 0.006*interface + 0.006*couldn

topic #5: 0.012*rangel + 0.009*taking + 0.008*neuroeconomics + 0.007*bernheim + 0.007*decision + 0.005*addiction + 0.005*steve + 0.005*naturally + 0.005*terrific + 0.005*active

topic #6: 0.012*blogging + 0.012*weblog + 0.010*anthropology + 0.009*slate + 0.008*added + 0.008*john + 0.007*academic + 0.006*interesting + 0.006*ones + 0.004*read

topic #7: 0.008*principles + 0.008*memory + 0.008*proclaiming + 0.007*numpy + 0.007*spirit + 0.007*hasn + 0.007*bothered + 0.006*decades + 0.006*intermediate + 0.006*tmp

topic #8: 0.008*movie + 0.007*netflix + 0.006*movies + 0.005*cinematch + 0.005*teams + 0.005*demographics + 0.004*comedy + 0.004*decomposition + 0.004*chabbert + 0.004*humanlike

topic #9: 0.008*parsers + 0.008*iq + 0.007*wsj + 0.006*differences + 0.006*apa + 0.006*saletan + 0.006*dependency + 0.005*constituent + 0.005*genetic + 0.004*slopes

topic #10: 0.011*awk + 0.011*newly + 0.010*chinese + 0.009*spend + 0.008*home + 0.007*tweets + 0.007*money + 0.007*mawk + 0.006*sample + 0.004*zip

topic #11: 0.012*proposal + 0.011*unnorm + 0.008*sampling + 0.007*generator + 0.006*density + 0.005*gradient + 0.004*gf + 0.004*objective + 0.003*inputs + 0.003*require

topic #12: 0.011*ideas + 0.010*iran + 0.008*news + 0.006*false + 0.006*joint + 0.005*exogenous + 0.005*timing + 0.005*jackson + 0.005*appearances + 0.005*reminded

topic #13: 0.018*site + 0.012*fun + 0.012*international + 0.011*organizations + 0.009*henrich + 0.009*terrific + 0.009*states + 0.007*wrestling + 0.007*influence + 0.006*focusing

topic #14: 0.007*binomial + 0.006*rorty + 0.006*scale + 0.006*bits + 0.005*christian + 0.005*secular + 0.005*education + 0.005*command + 0.005*intuitions + 0.004*liberal

topic #15: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #16: 0.015*stanford + 0.015*documentation + 0.011*machine + 0.011*found + 0.011*thing + 0.010*ll + 0.010*recently + 0.009*models + 0.009*update + 0.009*stuff

topic #17: 0.008*worker + 0.007*maximum + 0.006*gold + 0.006*correction + 0.006*raw + 0.006*likelihood + 0.006*corrections + 0.005*averaging + 0.004*linear + 0.003*picture

topic #18: 0.009*build + 0.008*helped + 0.008*gaussian + 0.008*laws + 0.007*intuition + 0.007*interactive + 0.007*law + 0.006*visitors + 0.006*roberts + 0.005*total

topic #19: 0.011*nytimes + 0.011*santa + 0.009*relational + 0.009*insight + 0.009*market + 0.008*abstract + 0.008*moment + 0.007*presents + 0.007*group + 0.007*suddenly

topic #20: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #21: 0.016*oooo + 0.009*ooo + 0.007*oo + 0.007*upon + 0.006*wish + 0.005*america + 0.005*history + 0.005*advocates + 0.005*north + 0.005*oooooooo

topic #22: 0.011*art + 0.009*user + 0.008*communication + 0.008*pharmaceuticals + 0.007*code + 0.007*conscious + 0.007*emotiv + 0.007*attempt + 0.007*problems + 0.006*company

topic #23: 0.012*unexpected + 0.006*suggest + 0.005*tossing + 0.005*shell + 0.005*unix + 0.005*subtitle + 0.005*scott + 0.005*syntax + 0.005*force + 0.005*phrases

topic #24: 0.014*lots + 0.013*interesting + 0.011*used + 0.011*less + 0.010*similar + 0.010*large + 0.009*different + 0.008*common + 0.008*across + 0.007*memcached

topic #25: 0.015*cat + 0.008*concept + 0.003*deep + 0.003*pixel + 0.003*reduction + 0.003*image + 0.003*concepts + 0.002*tokenizer + 0.002*regex + 0.002*cats

topic #26: 0.015*tanh + 0.009*logistic + 0.009*function + 0.006*range + 0.006*sigmoid + 0.004*functions + 0.004*frac + 0.004*outputs + 0.003*probabilities + 0.003*show

topic #27: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #28: 0.010*game + 0.010*theory + 0.008*started + 0.008*view + 0.008*hand + 0.008*field + 0.007*economics + 0.006*courses + 0.006*goods + 0.006*services

topic #29: 0.016*please + 0.011*fit + 0.010*words + 0.010*hierarchical + 0.008*hdlm + 0.008*hpylm + 0.008*teh + 0.006*well + 0.006*things + 0.005*yee

topic #30: 0.011*ain + 0.010*basement + 0.009*mcdonald + 0.007*na + 0.007*gon + 0.007*man + 0.005*bomb + 0.005*shit + 0.005*wisdom + 0.005*invented

topic #31: 0.011*monkeys + 0.010*drink + 0.009*testing + 0.007*significance + 0.007*delta + 0.007*tests + 0.006*null + 0.006*consumption + 0.006*alcohol + 0.005*performance

topic #32: 0.014*pmi + 0.007*fundamental + 0.006*frac + 0.006*ratio + 0.005*redirect + 0.005*wise + 0.005*obvious + 0.005*reference + 0.005*url + 0.005*automatically

topic #33: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #34: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #35: 0.009*bugs + 0.006*compiles + 0.006*dyna + 0.006*written + 0.005*hbc + 0.005*alchemy + 0.005*languages + 0.004*factorie + 0.004*probabilistic + 0.004*dynamic

topic #36: 0.012*agreement + 0.008*dimensions + 0.008*certain + 0.007*cooperation + 0.007*hooray + 0.007*turned + 0.007*evolved + 0.006*socially + 0.006*biased + 0.006*competition

topic #37: 0.008*wolfram + 0.008*computation + 0.007*glmnet + 0.006*fortran + 0.006*hastie + 0.005*microsoft + 0.005*tremendous + 0.004*feature + 0.004*simulations + 0.004*fe

topic #38: 0.009*inspired + 0.008*possible + 0.008*rock + 0.008*scissors + 0.008*writeup + 0.007*rough + 0.006*friends + 0.006*pure + 0.006*similarly + 0.005*wondering

topic #39: 0.013*systematic + 0.007*ability + 0.007*method + 0.007*earth + 0.007*abilities + 0.006*textbooks + 0.006*accurate + 0.006*half + 0.005*measures + 0.005*measuring

topic #40: 0.009*steve + 0.009*colbert + 0.009*reproduced + 0.008*upcoming + 0.008*chomsky + 0.008*pinker + 0.008*interview + 0.007*bet + 0.006*won + 0.006*website

topic #41: 0.008*rainbow + 0.006*uima + 0.006*gate + 0.006*gcc + 0.005*download + 0.005*osx + 0.004*text + 0.004*classification + 0.004*tell + 0.004*classifier

topic #42: 0.017*powerset + 0.004*index + 0.004*indexing + 0.003*innovation + 0.003*technology + 0.003*respected + 0.003*amit + 0.003*hbase + 0.003*indexed + 0.003*parc

topic #43: 0.013*economics + 0.012*statistical + 0.012*using + 0.011*ml + 0.010*behavioral + 0.009*economic + 0.008*gintis + 0.008*neuroeconomics + 0.008*knowledge + 0.008*modeling

topic #44: 0.015*science + 0.015*social + 0.014*data + 0.012*new + 0.012*one + 0.011*blog + 0.011*like + 0.010*ve + 0.010*get + 0.010*see

topic #45: 0.010*genocide + 0.010*nicholas + 0.010*bbc + 0.010*kristof + 0.008*june + 0.008*account + 0.007*news + 0.005*worth + 0.005*rwandan + 0.005*intervention

topic #46: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #47: 0.011*monkeys + 0.009*pitchers + 0.009*altruists + 0.007*misses + 0.007*group + 0.006*hits + 0.005*monkey + 0.005*altruism + 0.005*sex + 0.004*selection

topic #48: 0.011*fascinating + 0.010*semantic + 0.009*twitter + 0.009*pairwise + 0.008*better + 0.008*back + 0.007*imaging + 0.007*absolute + 0.006*judgments + 0.006*relations

topic #49: 0.009*model + 0.009*cas + 0.006*cyc + 0.006*logic + 0.006*belief + 0.005*ideology + 0.004*reader + 0.004*agents + 0.004*base + 0.004*public

topic #50: 0.016*entry + 0.010*posted + 0.010*operations + 0.008*computational + 0.007*ideal + 0.007*fan + 0.007*computer + 0.006*big + 0.006*frederick + 0.006*rationality

topic #51: 0.007*order + 0.007*arrow + 0.006*government + 0.006*extremely + 0.006*java + 0.005*married + 0.005*musician + 0.005*parties + 0.005*posterior + 0.005*beliefs

topic #52: 0.016*sets + 0.015*data + 0.014*sources + 0.012*beats + 0.009*lot + 0.008*mosaic + 0.008*already + 0.007*departments + 0.007*admittance + 0.007*ucbadmissions

topic #53: 0.016*animated + 0.012*universal + 0.012*rights + 0.007*link + 0.007*human + 0.000*spend + 0.000*amazing + 0.000*newly + 0.000*arrogant + 0.000*chinese

topic #54: 0.014*republic + 0.014*algebra + 0.010*kingdom + 0.007*pages + 0.007*democratic + 0.007*linear + 0.006*cookbook + 0.005*socialist + 0.005*arab + 0.005*matrix

topic #55: 0.011*figure + 0.011*table + 0.010*particular + 0.010*big + 0.009*article + 0.009*gelman + 0.009*need + 0.009*democracy + 0.009*regression + 0.009*russia

topic #56: 0.021*bomb + 0.011*europe + 0.006*tackle + 0.005*situations + 0.005*onto + 0.005*shall + 0.005*asia + 0.005*ambitious + 0.005*repetitive + 0.005*weak

topic #57: 0.016*version + 0.016*along + 0.011*released + 0.010*moral + 0.009*computers + 0.009*better + 0.008*thought + 0.008*lines + 0.008*begin + 0.008*man

topic #58: 0.011*answer + 0.009*pharmaceuticals + 0.009*supporting + 0.008*curious + 0.007*semantics + 0.007*lexical + 0.007*art + 0.006*sense + 0.005*evidence + 0.005*question

topic #59: 0.011*svm + 0.009*features + 0.009*dependency + 0.009*scientists + 0.008*evidence + 0.007*authority + 0.007*support + 0.007*formalism + 0.007*feature + 0.007*algorithms

topic #60: 0.013*argmas + 0.011*netherlands + 0.011*conferences + 0.009*argumentation + 0.007*sense + 0.006*natural + 0.006*computational + 0.006*argument + 0.006*models + 0.005*systems

topic #61: 0.012*semantics + 0.007*outcomes + 0.007*defect + 0.007*mention + 0.006*pareto + 0.006*issues + 0.006*explain + 0.006*payoff + 0.005*gold + 0.005*outcome

topic #62: 0.014*law + 0.009*power + 0.007*billion + 0.006*zipf + 0.006*public + 0.006*amazon + 0.005*bandwagon + 0.005*mechanistic + 0.005*rent + 0.004*freebase

topic #63: 0.014*flight + 0.009*departure + 0.007*trip + 0.006*minutes + 0.005*pilots + 0.005*delayed + 0.005*travel + 0.005*expected + 0.004*delta + 0.004*time

topic #64: 0.014*organism + 0.013*id + 0.008*designed + 0.008*happiness + 0.008*intelligently + 0.008*intelligent + 0.007*plausibility + 0.007*norm + 0.007*lying + 0.007*stumbling

topic #65: 0.013*conference + 0.007*abstracts + 0.007*message + 0.007*samuel + 0.006*sorry + 0.006*http + 0.006*inside + 0.005*home + 0.005*huge + 0.005*program

topic #66: 0.011*exponentiated + 0.007*email + 0.007*log + 0.006*entropy + 0.006*integration + 0.006*analytics + 0.005*hat + 0.005*event + 0.004*creating + 0.004*uncertainty

topic #67: 0.013*countries + 0.011*psychoanalysis + 0.010*country + 0.008*internet + 0.007*usage + 0.007*city + 0.006*posts + 0.006*hot + 0.006*pereira + 0.006*fernando

topic #68: 0.008*brain + 0.007*slate + 0.004*york + 0.004*politics + 0.003*previous + 0.003*neuromarketing + 0.003*desired + 0.003*purport + 0.003*funded + 0.003*imaging

topic #69: 0.008*fearon + 0.007*events + 0.007*jim + 0.007*explains + 0.007*facts + 0.007*largest + 0.007*annual + 0.006*iraq + 0.006*civil + 0.006*casualties

topic #70: 0.013*posted + 0.012*argument + 0.011*systems + 0.010*political + 0.010*different + 0.010*time + 0.009*part + 0.008*computational + 0.008*applications + 0.008*question

topic #71: 0.009*families + 0.008*clark + 0.005*values + 0.005*children + 0.005*wealthier + 0.004*institutional + 0.004*thousands + 0.004*bowles + 0.004*ethic + 0.004*biological

topic #72: 0.007*plos + 0.007*mackay + 0.006*known + 0.006*recent + 0.006*neuroscience + 0.005*field + 0.005*reviews + 0.005*leaders + 0.005*bayesian + 0.005*bletchley

topic #73: 0.007*wolfram + 0.007*pairs + 0.007*syntactic + 0.005*running + 0.005*liking + 0.005*phrase + 0.004*compares + 0.004*getting + 0.004*cynical + 0.004*conventions

topic #74: 0.009*people + 0.008*good + 0.008*would + 0.008*think + 0.007*paper + 0.007*re + 0.007*useful + 0.007*things + 0.007*work + 0.007*something

topic #75: 0.012*privacy + 0.012*band + 0.011*smoothing + 0.007*lordi + 0.007*settings + 0.006*finland + 0.006*eurovision + 0.005*won + 0.005*poll + 0.005*polls

topic #76: 0.017*harvard + 0.009*price + 0.009*dynamics + 0.008*program + 0.008*drug + 0.008*ties + 0.008*equation + 0.007*iphone + 0.006*evolutionary + 0.006*nyt

topic #77: 0.017*vec + 0.008*log + 0.005*symbol + 0.005*frac + 0.005*symbols + 0.005*surprisal + 0.003*entropy + 0.003*encode + 0.002*coding + 0.002*message

topic #78: 0.007*ten + 0.007*scott + 0.007*judge + 0.007*decide + 0.006*book + 0.006*shorter + 0.006*estimate + 0.005*alternative + 0.005*biased + 0.005*shouldn

topic #79: 0.011*skewz + 0.010*tie + 0.007*arrow + 0.007*svd + 0.006*previous + 0.005*sites + 0.005*correlation + 0.005*play + 0.005*tend + 0.005*notation

topic #80: 0.014*distribution + 0.012*probability + 0.011*actually + 0.010*logic + 0.009*statistics + 0.009*every + 0.008*cluster + 0.008*normal + 0.008*article + 0.008*exp

topic #81: 0.009*greif + 0.006*prop + 0.005*police + 0.005*clark + 0.005*institutional + 0.005*videos + 0.005*night + 0.005*cognition + 0.004*party + 0.004*uncertainty

topic #82: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #83: 0.011*rounds + 0.010*scaling + 0.010*baron + 0.010*blogs + 0.010*lesson + 0.009*opponent + 0.009*scissors + 0.009*choosing + 0.009*blogging + 0.008*stop

topic #84: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #85: 0.012*chairman + 0.011*god + 0.010*environment + 0.010*finland + 0.008*lordi + 0.005*intentionally + 0.005*wager + 0.005*inf + 0.005*infinite + 0.005*plays

topic #86: 0.014*university + 0.012*bar + 0.009*document + 0.008*measured + 0.007*lazy + 0.007*cosine + 0.007*plaintext + 0.006*approximation + 0.006*metadata + 0.006*matters

topic #87: 0.000*trip + 0.000*suffer + 0.000*arrogant + 0.000*amazing + 0.000*spend + 0.000*newly + 0.000*chinese + 0.000*weird + 0.000*war + 0.000*voting

topic #88: 0.013*funny + 0.012*log + 0.011*rubin + 0.011*old + 0.008*language + 0.007*pretty + 0.007*politics + 0.006*dangers + 0.005*plug + 0.005*wars

topic #89: 0.015*ab + 0.012*tweetmotif + 0.010*click + 0.009*setminus + 0.009*days + 0.009*frac + 0.008*dolores + 0.008*pictures + 0.007*labs + 0.007*align

topic #90: 0.003*statistics + 0.003*marketing + 0.002*neural + 0.002*network + 0.002*scienti + 0.002*ga + 0.002*efron + 0.002*grant + 0.002*nn + 0.002*defined

topic #91: 0.009*fish + 0.008*tank + 0.006*teenagers + 0.006*virus + 0.006*gay + 0.005*switch + 0.005*federal + 0.005*describe + 0.005*sacrifice + 0.005*wasn

topic #92: 0.012*authoritarian + 0.011*phd + 0.011*comics + 0.010*sciences + 0.010*humanities + 0.009*roc + 0.009*metrics + 0.009*auc + 0.008*capitalism + 0.008*pr

topic #93: 0.016*stanley + 0.016*war + 0.014*fish + 0.011*thinks + 0.008*invasion + 0.006*film + 0.005*france + 0.005*ii + 0.004*much + 0.003*wikipedia

topic #94: 0.012*blogger + 0.010*release + 0.009*wealth + 0.008*wordpress + 0.008*religion + 0.007*religious + 0.007*condition + 0.007*republican + 0.006*graph + 0.006*available

topic #95: 0.007*epistemology + 0.006*rortyan + 0.005*fashion + 0.004*account + 0.004*semantic + 0.004*won + 0.004*away + 0.004*loved + 0.004*quivering + 0.003*tell

topic #96: 0.012*york + 0.011*buy + 0.011*gss + 0.011*money + 0.010*presidential + 0.010*versus + 0.010*claim + 0.010*happiness + 0.009*maps + 0.008*picked

topic #97: 0.011*china + 0.011*university + 0.009*market + 0.007*free + 0.007*airlines + 0.006*power + 0.006*password + 0.006*connectu + 0.005*concept + 0.005*users

topic #98: 0.013*cutoff + 0.008*http + 0.005*resources + 0.005*classifier + 0.005*labels + 0.005*interdisciplinary + 0.005*rand + 0.005*newsgroups + 0.005*updated + 0.004*preds

topic #99: 0.006*givewell + 0.006*charity + 0.006*philanthropy + 0.005*altruistic + 0.005*effectiveness + 0.004*provide + 0.004*tighe + 0.004*charities + 0.004*evaluating + 0.003*stock






Latent Dirichlet allocation

In natural language processing, latent Dirichlet allocation (LDA) is a generative model that allows sets of observations to be explained by unobserved groups that explain why some parts of the data are similar. For example, if observations are words collected into documents, it posits that each document is a mixture of a small number of topics and that each word's creation is attributable to one of the document's topics. LDA is an example of a topic model and was first presented as a graphical model for topic discovery by David Blei, Andrew Ng, and Michael Jordan in 2003.

Topics in LDA

In LDA, each document may be viewed as a mixture of various topics. This is similar to probabilistic latent semantic analysis (pLSA), except that in LDA the topic distribution is assumed to have a Dirichlet prior. In practice, this results in more reasonable mixtures of topics in a document. It has been noted, however, that the pLSA model is equivalent to the LDA model under a uniform Dirichlet prior distribution.

For example, an LDA model might have topics that can be classified as CAT_related and DOG_related. A topic has probabilities of generating various words, such as milk, meow, and kitten, which can be classified and interpreted by the viewer as "CAT_related". Naturally, the word cat itself will have high probability given this topic. The DOG_related topic likewise has probabilities of generating each word: puppy, bark, and bone might have high probability. Words without special relevance, such as the (see function word), will have roughly even probability between classes (or can be placed into a separate category). A topic is not strongly defined, neither semantically nor epistemologically. It is identified on the basis of supervised labeling and (manual) pruning on the basis of their likelihood of co-occurrence. A lexical word may occur in several topics with a different probability, however, with a different typical set of neighboring words in each topic.

Each document is assumed to be characterized by a particular set of topics. This is akin to the standard bag of words model assumption, and makes the individual words exchangeable.

Model

With plate notation, the dependencies among the many variables can be captured concisely. The boxes are “plates” representing replicates. The outer plate represents documents, while the inner plate represents the repeated choice of topics and words within a document. M denotes the number of documents, N the number of words in a document. Thus:

α is the parameter of the Dirichlet prior on the per-document topic distributions,

β is the parameter of the Dirichlet prior on the per-topic word distribution,

\theta_i is the topic distribution for document i,

\phi_k is the word distribution for topic k,

z_{ij} is the topic for the jth word in document i, and

w_{ij} is the specific word.

The w_{ij} are the only observable variables, and the other variables are latent variables. Mostly, the basic LDA model will be extended to a smoothed version to gain better results .[citation needed] The plate notation is shown on the right, where K denotes the number of topics considered in the model and:

\phi is a K*V (V is the dimension of the vocabulary) Markov matrix each row of which denotes the word distribution of a topic.

The generative process behind is that documents are represented as random mixtures over latent topics, where each topic is characterized by a distribution over words. LDA assumes the following generative process for a corpus D consisting of M documents each of length N_i:

1. Choose \theta_i \, \sim \, \mathrm{Dir}(\alpha) , where i \in \{ 1,\dots,M \} and \mathrm{Dir}(\alpha) is the Dirichlet distribution for parameter \alpha

2. Choose \phi_k \, \sim \, \mathrm{Dir}(\beta) , where k \in \{ 1,\dots,K \}

3. For each of the word positions i, j, where j \in \{ 1,\dots,N_i \} , and i \in \{ 1,\dots,M \}

(a) Choose a topic z_{i,j} \,\sim\, \mathrm{Multinomial}(\theta_i).

(b) Choose a word w_{i,j} \,\sim\, \mathrm{Multinomial}( \phi_{z_{i,j}}) .

(Note that the Multinomial distribution here refers to the Multinomial with only one trial. It is formally equivalent to the categorical distribution.)

The lengths N_i are treated as independent of all the other data generating variables (q and z). The subscript is often dropped, as in the plate diagrams shown here.

Inference

Learning the various distributions (the set of topics, their associated word probabilities, the topic of each word, and the particular topic mixture of each document) is a problem of Bayesian inference. The original paper used a variational Bayes approximation of the posterior distribution;[1] alternative inference techniques use Gibbs sampling and expectation propagation.

Following is the derivation of the equations for collapsed Gibbs sampling, which means \varphis and \thetas will be integrated out. For simplicity, in this derivation the documents are all assumed to have the same length N_{}. The derivation is equally valid if the document lengths vary.

Applications, extensions and similar techniques

Topic modeling is a classic problem in information retrieval. Related models and techniques are, among others, latent semantic indexing, independent component analysis, probabilistic latent semantic indexing, non-negative matrix factorization, and Gamma-Poisson distribution.

The LDA model is highly modular and can therefore be easily extended. The main field of interest is modeling relations between topics. This is achieved by using another distribution on the simplex instead of the Dirichlet. The Correlated Topic Model follows this approach, inducing a correlation structure between topics by using the logistic normal distribution instead of the Dirichlet. Another extension is the hierarchical LDA (hLDA), where topics are joined together in a hierarchy by using the nested Chinese restaurant process. LDA can also be extended to a corpus in which a document includes two types of information (e.g., words and names), as in the LDA-dual model. Nonparametric extensions of LDA include the Hierarchical Dirichlet process mixture model, which allows the number of topics to be unbounded and learnt from data and the Nested Chinese Restaurant Process which allows topics to be arranged in a hierarchy whose structure is learnt from data.

As noted earlier, PLSA is similar to LDA. The LDA model is essentially the Bayesian version of PLSA model. The Bayesian formulation tends to perform better on small datasets because Bayesian methods can avoid overfitting the data. In a very large dataset, the results are probably the same. One difference is that PLSA uses a variable d to represent a document in the training set. So in PLSA, when presented with a document the model hasn't seen before, we fix \Pr(w \mid z)—the probability of words under topics—to be that learned from the training set and use the same EM algorithm to infer \Pr(z \mid d)—the topic distribution under d. Blei argues that this step is cheating because you are essentially refitting the model to the new data.

Variations on LDA have been used to automatically put natural images into categories, such as "bedroom" or "forest", by treating an image as a document, and small patches of the image as words; one of the variations is called Spatial Latent Dirichlet Allocation.

from wiki http://en.wikipedia.org/wiki/Latent_Dirichlet_allocation