How do I create a function in python that will calculate the negative log likelihood for a Gaussian model with respect to mean and also variance. Please use data = [10, 25, 10, 8, 8, 9, 10, 22, 12, 13, 15, 4, 8, 9] as the distribution.

Calculus For The Life Sciences
2nd Edition
ISBN:9780321964038
Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Chapter13: Probability And Calculus
Section13.2: Expected Value And Variance Of Continuous Random Variables
Problem 10E
icon
Related questions
Question
How do I create a function in python that
will calculate the negative log likelihood for
a Gaussian model with respect to mean
and also variance. Please use data = [10, 25,
10, 8, 8, 9, 10, 22, 12, 13, 15, 4, 8, 9] as the
distribution.
Transcribed Image Text:How do I create a function in python that will calculate the negative log likelihood for a Gaussian model with respect to mean and also variance. Please use data = [10, 25, 10, 8, 8, 9, 10, 22, 12, 13, 15, 4, 8, 9] as the distribution.
Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Recommended textbooks for you
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781305652224
Author:
Charles P. McKeague, Mark D. Turner
Publisher:
Cengage Learning
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL