SlideShare a Scribd company logo
1 of 31
Chapter 2
    The Likelihood Approach



報告者:胡 元
1. Define a hierarchy of models.
2. Express the likelihood functions for
  the models.
3. Find the parameters that maximize
  the likelihood functions.
4. Compare the values of likelihood to
  decide which model is best.
使用的範例
投擲吐司

N為投擲吐司的次數

Random variable Y為奶油面朝下的機
率,y為Y的realization

目標是估計吐司面朝下的機率p
2.1.1 A hierarchy of models


      Y ∼ Binomial(N, p)

-只有一個model,故不用說明model的階層性
2.1.2 Express the likelihood function
     →以投擲吐司的pmf: Pr(Y = y)為例


                 N y
                    p (1− p )N − y
                                       , y = 0,..., N
                  y
                   
 f ( y; p ) = 
                                       , otherwise
                         0
pmf                   N  p y (1− p )N − y , y = 0,..., N
                        
                      y 
                        
        f ( y; p ) = 
                                              , otherwise
                                0

Likelihood Function                            相同!
                   N y
       L( p; y ) =   p (1 − p )
                                 N−y
                    y
                    
Likelihood Function

               N y
   L( p; y ) =   p (1 − p )
                             N−y
                y
                
   → L是參數p的likelihood function
Likelihood Function

For a discrete random variable, the likelihood
function is the probability mass function
expressed as a function of the parameters.




                                  - Definition 26
5 successes from 10 flips   50 successes from 100 flips




7 successes from 10 flips    70 successes from 100 flips
p=0:.01:1
like1 = bilike(p,5,10) %圖A的binominal likelihood function
like2 = bilike(p,50,100) %圖B的binominal likelihood function
like3 = bilike(p,7,10) %圖C的binominal likelihood function
like4 = bilike(p,70,100) %圖D的binominal likelihood function
plot(p,like1,p,like2,p,like3,p,like4) %畫出圖A~D
5 successes from 10 flips      50 successes from 100 flips




In Panel A, the maximum of the likelihood (about .25)
is far smaller than that in Panel B.
In most applications, the actual value of likelihood is
not important.
• 對二項分配來說,likelihood受p和Bernoulli trials
 數N所影響。

• 對估計來說,重要的是likelihood function的形狀
  和高峰所在的位置(下面有更詳細的討論)。

• 對模型比較來說,likelihood value的不同才重要。
1. Define a hierarchy of models.
2. Express the likelihood functions for
  the models.
3. Find the parameters that maximize
  the likelihood functions.
4. Compare the values of likelihood to
  decide which model is best.
2.1.3 Find the parameters that
   maximize the likelihood
Maximum Likelihood Estimate

A maximum likelihood (ML) estimate is the
parameter value that maximizes the likelihood
function for a given set of data.




                           - Definition 27(與前提)
得到maximum likelihood estimators
(MLEs)的兩種基本方法

  (1) 使用微積分

  (2) 使用數值方法( numerical method ) 來
    找到能最大化likelihood的參數
使用兩種方法前,最大化likelihood需:

取likelihood的自然對數(natural logarithm )
做為主要使用的函數。
The first step in maximizing a likelihood is to use the
natural logarithm of the likelihood (the log likelihood,
denoted by l) as the main function of interest.
取log前
取log後
如何取binomial的log
 l ( p;y ) = log[L( p; y )]               N y
                              L( p; y ) =   p (1 − p )
                                                        N−y
                                           y
                                           
        N  y       N−y 
 = log   p (1 − p ) 
         y
                       
      N
                    ( )       (
 = log  + log p + log (1 − p )
       y
                   y            N−y
                                             )
       
      N
 = log  + y log p + ( N − y ) log(1 − p )
       y
       
使用Matlab對likelihood
            function取log,並繪圖
p=0:.01:1
like1 = log(bilike(p,5,10))
like2 = log(bilike(p,50,100))
like3 = log(bilike(p,7,10))
like4 = log(bilike(p,70,100))
plot(p,like1,p,like2,p,like3,p,like4)
Log likelihood Function

 The log likelihood function is the
 natural logarithm of the likelihood
 function.
     N
  log  + y log p + ( N − y ) log(1 − p )
      y
      
                                       - Definition 28
Log likelihood Function
 對兩種方法都很有用。
有了log likelihood function,接下來要算
   Maximum Likelihood Estimate
2.1.4 Calculus Methods
to find MLEs
  The calculus methods are limited in their
  application and many problems must be
  solved with numerical methods.
我們的目標是找到能最大化log likelihood
       function(i.e., l(p; y))的p值

             N
l(p; y) = log  + y log p + ( N − y ) log(1 − p )
              y
              
                                         微分!
Step 1. 對p進行微分
 ∂l ( p; y ) ∂   N                                    
            =    log  + y log p + (N − y ) log(1 − p )
     ∂p       ∂p   y 
                                                       
    ∂   N  ∂              ∂
 =    log  + [ y log p ] + [( N − y ) log(1 − p )]
   ∂p   y  ∂p
                            ∂p
     y N−y
 = 0+ −
     p 1− p
   y N−y
 = -
   p 1− p
Step 2.
           y N−y
使上式等於0,      -         = 0,
           p 1− p
求p的解       y N−y
              =         ,
           p 1− p
          (1 − p ) y = (N − y ) p,
           y − py = Np − yp,
          y = Np,
             y
          p=
          ˆ
             N
y
  p=
             observed successes
  ˆ
     N
For a binomial, the proportion of
successes is the maximum
likelihood estimator of parameter p.
Problem 2.1.2 (Your Turn)
Using calculus methods, derive the
maximum likelihood estimator of
parameter λ in the Poisson distribution
(see Eq. 2.3).

More Related Content

What's hot

Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusMatthew Leingang
 
Lesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and LogarithmsLesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and LogarithmsMatthew Leingang
 
Markov Tutorial CDC Shanghai 2009
Markov Tutorial CDC Shanghai 2009Markov Tutorial CDC Shanghai 2009
Markov Tutorial CDC Shanghai 2009Sean Meyn
 
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...MarcelloSantosChaves
 
Lesson 8: Basic Differentation Rules (slides)
Lesson 8: Basic Differentation Rules (slides)Lesson 8: Basic Differentation Rules (slides)
Lesson 8: Basic Differentation Rules (slides)Matthew Leingang
 
11.[104 111]analytical solution for telegraph equation by modified of sumudu ...
11.[104 111]analytical solution for telegraph equation by modified of sumudu ...11.[104 111]analytical solution for telegraph equation by modified of sumudu ...
11.[104 111]analytical solution for telegraph equation by modified of sumudu ...Alexander Decker
 
aula 6 - matemática
aula 6 - matemáticaaula 6 - matemática
aula 6 - matemáticaAlice Gomes
 
AP Calculus Slides December 14, 2007
AP Calculus Slides December 14, 2007AP Calculus Slides December 14, 2007
AP Calculus Slides December 14, 2007Darren Kuropatwa
 
X2 T04 04 curve sketching - reciprocal functions
X2 T04 04 curve sketching - reciprocal functionsX2 T04 04 curve sketching - reciprocal functions
X2 T04 04 curve sketching - reciprocal functionsNigel Simmons
 
Lesson 8: Basic Differentiation Rules
Lesson 8: Basic Differentiation RulesLesson 8: Basic Differentiation Rules
Lesson 8: Basic Differentiation RulesMatthew Leingang
 
Tele3113 wk1wed
Tele3113 wk1wedTele3113 wk1wed
Tele3113 wk1wedVin Voro
 
IGARSS2011 FR3.T08.3 BenDavid.pdf
IGARSS2011 FR3.T08.3 BenDavid.pdfIGARSS2011 FR3.T08.3 BenDavid.pdf
IGARSS2011 FR3.T08.3 BenDavid.pdfgrssieee
 
Fractional Calculus
Fractional CalculusFractional Calculus
Fractional CalculusVRRITC
 
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge TheoryL. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge TheorySEENET-MTP
 

What's hot (20)

Lesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of CalculusLesson 28: The Fundamental Theorem of Calculus
Lesson 28: The Fundamental Theorem of Calculus
 
Lista exercintegrais
Lista exercintegraisLista exercintegrais
Lista exercintegrais
 
Derivadas
DerivadasDerivadas
Derivadas
 
Lesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and LogarithmsLesson 15: Inverse Functions and Logarithms
Lesson 15: Inverse Functions and Logarithms
 
Markov Tutorial CDC Shanghai 2009
Markov Tutorial CDC Shanghai 2009Markov Tutorial CDC Shanghai 2009
Markov Tutorial CDC Shanghai 2009
 
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
Profº. Marcelo Santos Chaves - Cálculo I (Limites e Continuidades) - Exercíci...
 
Lesson 8: Basic Differentation Rules (slides)
Lesson 8: Basic Differentation Rules (slides)Lesson 8: Basic Differentation Rules (slides)
Lesson 8: Basic Differentation Rules (slides)
 
11.[104 111]analytical solution for telegraph equation by modified of sumudu ...
11.[104 111]analytical solution for telegraph equation by modified of sumudu ...11.[104 111]analytical solution for telegraph equation by modified of sumudu ...
11.[104 111]analytical solution for telegraph equation by modified of sumudu ...
 
aula 6 - matemática
aula 6 - matemáticaaula 6 - matemática
aula 6 - matemática
 
AP Calculus Slides December 14, 2007
AP Calculus Slides December 14, 2007AP Calculus Slides December 14, 2007
AP Calculus Slides December 14, 2007
 
rinko2010
rinko2010rinko2010
rinko2010
 
X2 T04 04 curve sketching - reciprocal functions
X2 T04 04 curve sketching - reciprocal functionsX2 T04 04 curve sketching - reciprocal functions
X2 T04 04 curve sketching - reciprocal functions
 
rinko2011-agh
rinko2011-aghrinko2011-agh
rinko2011-agh
 
My PhD Presentation 9-Apr-2008
My PhD Presentation 9-Apr-2008My PhD Presentation 9-Apr-2008
My PhD Presentation 9-Apr-2008
 
Lesson 8: Basic Differentiation Rules
Lesson 8: Basic Differentiation RulesLesson 8: Basic Differentiation Rules
Lesson 8: Basic Differentiation Rules
 
Tele3113 wk1wed
Tele3113 wk1wedTele3113 wk1wed
Tele3113 wk1wed
 
IGARSS2011 FR3.T08.3 BenDavid.pdf
IGARSS2011 FR3.T08.3 BenDavid.pdfIGARSS2011 FR3.T08.3 BenDavid.pdf
IGARSS2011 FR3.T08.3 BenDavid.pdf
 
Tprimal agh
Tprimal aghTprimal agh
Tprimal agh
 
Fractional Calculus
Fractional CalculusFractional Calculus
Fractional Calculus
 
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge TheoryL. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
L. Jonke - A Twisted Look on Kappa-Minkowski: U(1) Gauge Theory
 

Viewers also liked

Social media analysis Telcel, Izzi, Axtel
Social media analysis Telcel, Izzi, AxtelSocial media analysis Telcel, Izzi, Axtel
Social media analysis Telcel, Izzi, AxtelElife Brasil
 
TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013
TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013
TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013TECNALIA Research & Innovation
 
Palestra google marketing em goiânia 20 fevereiro2013
Palestra google marketing em goiânia 20 fevereiro2013Palestra google marketing em goiânia 20 fevereiro2013
Palestra google marketing em goiânia 20 fevereiro2013Flávio Aquino Sabugo
 
Macrosolutions Training: Project Quality Management
Macrosolutions Training: Project Quality ManagementMacrosolutions Training: Project Quality Management
Macrosolutions Training: Project Quality ManagementMacrosolutions SA
 
Macrosolutions Training: Risk Management
Macrosolutions Training: Risk ManagementMacrosolutions Training: Risk Management
Macrosolutions Training: Risk ManagementMacrosolutions SA
 
Macrosolutions Training: Managing Complex Projects and Projects in Crisis
Macrosolutions Training: Managing Complex Projects and Projects in CrisisMacrosolutions Training: Managing Complex Projects and Projects in Crisis
Macrosolutions Training: Managing Complex Projects and Projects in CrisisMacrosolutions SA
 
Novas Formas de Publicidade para o Novo [e-Consumidor]
Novas Formas de Publicidade para o Novo [e-Consumidor]Novas Formas de Publicidade para o Novo [e-Consumidor]
Novas Formas de Publicidade para o Novo [e-Consumidor]Flávio Aquino Sabugo
 
How To Make Amazing Presentations
How To Make Amazing PresentationsHow To Make Amazing Presentations
How To Make Amazing PresentationsPrezentate
 
Case Study - University of Colorado Parking Garage and Field
Case Study - University of Colorado Parking Garage and FieldCase Study - University of Colorado Parking Garage and Field
Case Study - University of Colorado Parking Garage and FieldAMSYSCO Inc.
 
Batalha de páginas easy taxi, 99 taxis e uber
Batalha de páginas   easy taxi, 99 taxis e uberBatalha de páginas   easy taxi, 99 taxis e uber
Batalha de páginas easy taxi, 99 taxis e uberElife Brasil
 
для педсовета психологічний клімат у колективі
для педсовета  психологічний клімат у колективідля педсовета  психологічний клімат у колективі
для педсовета психологічний клімат у колективіНаталья Полищук
 
Symmetrical Components Fault Calculations
Symmetrical Components Fault CalculationsSymmetrical Components Fault Calculations
Symmetrical Components Fault Calculationsmichaeljmack
 
Leadership challenges in project management
Leadership challenges in project managementLeadership challenges in project management
Leadership challenges in project managementalokkushwah07
 
three phase fault analysis with auto reset for temporary fault and trip for p...
three phase fault analysis with auto reset for temporary fault and trip for p...three phase fault analysis with auto reset for temporary fault and trip for p...
three phase fault analysis with auto reset for temporary fault and trip for p...Vikram Rawani
 

Viewers also liked (20)

Social media analysis Telcel, Izzi, Axtel
Social media analysis Telcel, Izzi, AxtelSocial media analysis Telcel, Izzi, Axtel
Social media analysis Telcel, Izzi, Axtel
 
TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013
TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013
TECNALIA. Welcome to Inspiring Business. Welcome to TECNALIA. (español) 10/2013
 
Palestra google marketing em goiânia 20 fevereiro2013
Palestra google marketing em goiânia 20 fevereiro2013Palestra google marketing em goiânia 20 fevereiro2013
Palestra google marketing em goiânia 20 fevereiro2013
 
Macrosolutions Training: Project Quality Management
Macrosolutions Training: Project Quality ManagementMacrosolutions Training: Project Quality Management
Macrosolutions Training: Project Quality Management
 
Multimedia Privacy
Multimedia PrivacyMultimedia Privacy
Multimedia Privacy
 
Macrosolutions Training: Risk Management
Macrosolutions Training: Risk ManagementMacrosolutions Training: Risk Management
Macrosolutions Training: Risk Management
 
Macrosolutions Training: Managing Complex Projects and Projects in Crisis
Macrosolutions Training: Managing Complex Projects and Projects in CrisisMacrosolutions Training: Managing Complex Projects and Projects in Crisis
Macrosolutions Training: Managing Complex Projects and Projects in Crisis
 
Novas Formas de Publicidade para o Novo [e-Consumidor]
Novas Formas de Publicidade para o Novo [e-Consumidor]Novas Formas de Publicidade para o Novo [e-Consumidor]
Novas Formas de Publicidade para o Novo [e-Consumidor]
 
How To Make Amazing Presentations
How To Make Amazing PresentationsHow To Make Amazing Presentations
How To Make Amazing Presentations
 
Case Study - University of Colorado Parking Garage and Field
Case Study - University of Colorado Parking Garage and FieldCase Study - University of Colorado Parking Garage and Field
Case Study - University of Colorado Parking Garage and Field
 
Lecture 18
Lecture 18Lecture 18
Lecture 18
 
Functional Food Strategies for Creating Consumer Awareness
Functional Food Strategies for Creating Consumer AwarenessFunctional Food Strategies for Creating Consumer Awareness
Functional Food Strategies for Creating Consumer Awareness
 
Forced harmonic motion
Forced harmonic motionForced harmonic motion
Forced harmonic motion
 
Curso pintor parte 1
Curso pintor   parte 1Curso pintor   parte 1
Curso pintor parte 1
 
Batalha de páginas easy taxi, 99 taxis e uber
Batalha de páginas   easy taxi, 99 taxis e uberBatalha de páginas   easy taxi, 99 taxis e uber
Batalha de páginas easy taxi, 99 taxis e uber
 
для педсовета психологічний клімат у колективі
для педсовета  психологічний клімат у колективідля педсовета  психологічний клімат у колективі
для педсовета психологічний клімат у колективі
 
10. Ethical issues
10. Ethical issues10. Ethical issues
10. Ethical issues
 
Symmetrical Components Fault Calculations
Symmetrical Components Fault CalculationsSymmetrical Components Fault Calculations
Symmetrical Components Fault Calculations
 
Leadership challenges in project management
Leadership challenges in project managementLeadership challenges in project management
Leadership challenges in project management
 
three phase fault analysis with auto reset for temporary fault and trip for p...
three phase fault analysis with auto reset for temporary fault and trip for p...three phase fault analysis with auto reset for temporary fault and trip for p...
three phase fault analysis with auto reset for temporary fault and trip for p...
 

Similar to Chapter 2 2.1.4

Logit model testing and interpretation
Logit model testing and interpretationLogit model testing and interpretation
Logit model testing and interpretationFelipe Affonso
 
Ian.petrow【transcendental number theory】.
Ian.petrow【transcendental number theory】.Ian.petrow【transcendental number theory】.
Ian.petrow【transcendental number theory】.Tong Leung
 
2 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 20102 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 2010zabidah awang
 
2 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 20102 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 2010zabidah awang
 
2 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 20102 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 2010zabidah awang
 
2 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 20102 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 2010zabidah awang
 
Introduction to modern Variational Inference.
Introduction to modern Variational Inference.Introduction to modern Variational Inference.
Introduction to modern Variational Inference.Tomasz Kusmierczyk
 
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)STAIR Lab, Chiba Institute of Technology
 
Lecture 4 - Growth of Functions (1).ppt
Lecture 4 - Growth of Functions (1).pptLecture 4 - Growth of Functions (1).ppt
Lecture 4 - Growth of Functions (1).pptZohairMughal1
 

Similar to Chapter 2 2.1.4 (20)

Eigenvalues
EigenvaluesEigenvalues
Eigenvalues
 
Logit model testing and interpretation
Logit model testing and interpretationLogit model testing and interpretation
Logit model testing and interpretation
 
Ian.petrow【transcendental number theory】.
Ian.petrow【transcendental number theory】.Ian.petrow【transcendental number theory】.
Ian.petrow【transcendental number theory】.
 
Algo Final
Algo FinalAlgo Final
Algo Final
 
6e-ch4.ppt
6e-ch4.ppt6e-ch4.ppt
6e-ch4.ppt
 
RSA Cryptosystem
RSA CryptosystemRSA Cryptosystem
RSA Cryptosystem
 
RSA Cryptosystem
RSA CryptosystemRSA Cryptosystem
RSA Cryptosystem
 
RSA Cryptosystem
RSA CryptosystemRSA Cryptosystem
RSA Cryptosystem
 
2 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 20102 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 2010
 
2 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 20102 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 2010
 
2 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 20102 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 2010
 
2 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 20102 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 2010
 
Number theory lecture (part 1)
Number theory lecture (part 1)Number theory lecture (part 1)
Number theory lecture (part 1)
 
Madrid easy
Madrid easyMadrid easy
Madrid easy
 
Introduction to modern Variational Inference.
Introduction to modern Variational Inference.Introduction to modern Variational Inference.
Introduction to modern Variational Inference.
 
Slides
SlidesSlides
Slides
 
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
Higher-order Factorization Machines(第5回ステアラボ人工知能セミナー)
 
S 7
S 7S 7
S 7
 
Matlab
MatlabMatlab
Matlab
 
Lecture 4 - Growth of Functions (1).ppt
Lecture 4 - Growth of Functions (1).pptLecture 4 - Growth of Functions (1).ppt
Lecture 4 - Growth of Functions (1).ppt
 

More from Visual Cognition and Modeling Lab

More from Visual Cognition and Modeling Lab (20)

0405記憶
0405記憶0405記憶
0405記憶
 
0329學習
0329學習0329學習
0329學習
 
0315感覺與知覺
0315感覺與知覺0315感覺與知覺
0315感覺與知覺
 
0308大腦與行為.pptx
0308大腦與行為.pptx0308大腦與行為.pptx
0308大腦與行為.pptx
 
0301心理學史簡介
0301心理學史簡介0301心理學史簡介
0301心理學史簡介
 
0222課程介紹
0222課程介紹0222課程介紹
0222課程介紹
 
1026感覺與知覺
1026感覺與知覺1026感覺與知覺
1026感覺與知覺
 
(通識)心理學 20161018 自閉天才
(通識)心理學   20161018 自閉天才(通識)心理學   20161018 自閉天才
(通識)心理學 20161018 自閉天才
 
1012大腦與行為
1012大腦與行為1012大腦與行為
1012大腦與行為
 
0928心理學史簡介
0928心理學史簡介0928心理學史簡介
0928心理學史簡介
 
湯顯祖與莎士比亞
湯顯祖與莎士比亞湯顯祖與莎士比亞
湯顯祖與莎士比亞
 
0914課程介紹
0914課程介紹0914課程介紹
0914課程介紹
 
20160518 自閉症小孩的超能力記憶
20160518 自閉症小孩的超能力記憶20160518 自閉症小孩的超能力記憶
20160518 自閉症小孩的超能力記憶
 
20160525通識心理學 自閉症小孩的超能力記憶
20160525通識心理學 自閉症小孩的超能力記憶20160525通識心理學 自閉症小孩的超能力記憶
20160525通識心理學 自閉症小孩的超能力記憶
 
體驗劇場_1050524_W14_易用性測試_楊政達
體驗劇場_1050524_W14_易用性測試_楊政達體驗劇場_1050524_W14_易用性測試_楊政達
體驗劇場_1050524_W14_易用性測試_楊政達
 
體驗劇場_1050503_W11_原型設計_楊政達
體驗劇場_1050503_W11_原型設計_楊政達體驗劇場_1050503_W11_原型設計_楊政達
體驗劇場_1050503_W11_原型設計_楊政達
 
認知、科技與設計_1050108_期末成果展第六組
認知、科技與設計_1050108_期末成果展第六組認知、科技與設計_1050108_期末成果展第六組
認知、科技與設計_1050108_期末成果展第六組
 
認知、科技與設計_1050108_期末成果展第四組
認知、科技與設計_1050108_期末成果展第四組認知、科技與設計_1050108_期末成果展第四組
認知、科技與設計_1050108_期末成果展第四組
 
認知、科技與設計_1050108_期末成果展第二組
認知、科技與設計_1050108_期末成果展第二組認知、科技與設計_1050108_期末成果展第二組
認知、科技與設計_1050108_期末成果展第二組
 
認知、科技與設計_1050108_期末成果展第三組
認知、科技與設計_1050108_期末成果展第三組認知、科技與設計_1050108_期末成果展第三組
認知、科技與設計_1050108_期末成果展第三組
 

Recently uploaded

Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableSeo
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityEric T. Tung
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noidadlhescort
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...amitlee9823
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentationuneakwhite
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLkapoorjyoti4444
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataExhibitors Data
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture conceptP&CO
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...lizamodels9
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxpriyanshujha201
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptxnandhinijagan9867
 

Recently uploaded (20)

Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hebbal Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
Call Girls Kengeri Satellite Town Just Call 👗 7737669865 👗 Top Class Call Gir...
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 

Chapter 2 2.1.4

  • 1. Chapter 2 The Likelihood Approach 報告者:胡 元
  • 2. 1. Define a hierarchy of models. 2. Express the likelihood functions for the models. 3. Find the parameters that maximize the likelihood functions. 4. Compare the values of likelihood to decide which model is best.
  • 4. 2.1.1 A hierarchy of models Y ∼ Binomial(N, p) -只有一個model,故不用說明model的階層性
  • 5. 2.1.2 Express the likelihood function →以投擲吐司的pmf: Pr(Y = y)為例  N y   p (1− p )N − y , y = 0,..., N   y   f ( y; p ) =   , otherwise  0
  • 6. pmf   N  p y (1− p )N − y , y = 0,..., N    y    f ( y; p ) =   , otherwise  0 Likelihood Function 相同! N y L( p; y ) =   p (1 − p ) N−y  y  
  • 7. Likelihood Function N y L( p; y ) =   p (1 − p ) N−y  y   → L是參數p的likelihood function
  • 8. Likelihood Function For a discrete random variable, the likelihood function is the probability mass function expressed as a function of the parameters. - Definition 26
  • 9. 5 successes from 10 flips 50 successes from 100 flips 7 successes from 10 flips 70 successes from 100 flips
  • 10. p=0:.01:1 like1 = bilike(p,5,10) %圖A的binominal likelihood function like2 = bilike(p,50,100) %圖B的binominal likelihood function like3 = bilike(p,7,10) %圖C的binominal likelihood function like4 = bilike(p,70,100) %圖D的binominal likelihood function plot(p,like1,p,like2,p,like3,p,like4) %畫出圖A~D
  • 11. 5 successes from 10 flips 50 successes from 100 flips In Panel A, the maximum of the likelihood (about .25) is far smaller than that in Panel B. In most applications, the actual value of likelihood is not important.
  • 12. • 對二項分配來說,likelihood受p和Bernoulli trials 數N所影響。 • 對估計來說,重要的是likelihood function的形狀 和高峰所在的位置(下面有更詳細的討論)。 • 對模型比較來說,likelihood value的不同才重要。
  • 13.
  • 14. 1. Define a hierarchy of models. 2. Express the likelihood functions for the models. 3. Find the parameters that maximize the likelihood functions. 4. Compare the values of likelihood to decide which model is best.
  • 15. 2.1.3 Find the parameters that maximize the likelihood
  • 16. Maximum Likelihood Estimate A maximum likelihood (ML) estimate is the parameter value that maximizes the likelihood function for a given set of data. - Definition 27(與前提)
  • 17. 得到maximum likelihood estimators (MLEs)的兩種基本方法 (1) 使用微積分 (2) 使用數值方法( numerical method ) 來 找到能最大化likelihood的參數
  • 18. 使用兩種方法前,最大化likelihood需: 取likelihood的自然對數(natural logarithm ) 做為主要使用的函數。 The first step in maximizing a likelihood is to use the natural logarithm of the likelihood (the log likelihood, denoted by l) as the main function of interest.
  • 21. 如何取binomial的log l ( p;y ) = log[L( p; y )] N y L( p; y ) =   p (1 − p ) N−y  y    N  y N−y  = log   p (1 − p )   y    N ( ) ( = log  + log p + log (1 − p )  y y N−y )   N = log  + y log p + ( N − y ) log(1 − p )  y  
  • 22. 使用Matlab對likelihood function取log,並繪圖 p=0:.01:1 like1 = log(bilike(p,5,10)) like2 = log(bilike(p,50,100)) like3 = log(bilike(p,7,10)) like4 = log(bilike(p,70,100)) plot(p,like1,p,like2,p,like3,p,like4)
  • 23. Log likelihood Function The log likelihood function is the natural logarithm of the likelihood function. N log  + y log p + ( N − y ) log(1 − p )  y   - Definition 28
  • 24. Log likelihood Function 對兩種方法都很有用。
  • 25. 有了log likelihood function,接下來要算 Maximum Likelihood Estimate
  • 26. 2.1.4 Calculus Methods to find MLEs The calculus methods are limited in their application and many problems must be solved with numerical methods.
  • 27. 我們的目標是找到能最大化log likelihood function(i.e., l(p; y))的p值 N l(p; y) = log  + y log p + ( N − y ) log(1 − p )  y   微分!
  • 28. Step 1. 對p進行微分 ∂l ( p; y ) ∂   N   = log  + y log p + (N − y ) log(1 − p ) ∂p ∂p   y     ∂   N  ∂ ∂ = log  + [ y log p ] + [( N − y ) log(1 − p )] ∂p   y  ∂p   ∂p y N−y = 0+ − p 1− p y N−y = - p 1− p
  • 29. Step 2. y N−y 使上式等於0, - = 0, p 1− p 求p的解 y N−y = , p 1− p (1 − p ) y = (N − y ) p, y − py = Np − yp, y = Np, y p= ˆ N
  • 30. y p= observed successes ˆ N For a binomial, the proportion of successes is the maximum likelihood estimator of parameter p.
  • 31. Problem 2.1.2 (Your Turn) Using calculus methods, derive the maximum likelihood estimator of parameter λ in the Poisson distribution (see Eq. 2.3).