Question

Prefer code in R or python or hand calculation.Problem 3 In this problem, you wil run the E-M algorithm in order to fit a mixture of two Gaussians. Let the data be X-(1, 2, 3, 8, 10). Initialize the parameters to be p-1/2, μ,-4, μ,-6, σ,-1.5, and σο-1. a) Before running the algorithm, take a look at the data. What are the parameters that you hope the algorithm will find? b) Fill in the below table by running the algorithm for five iterations and keeping track of the updated parameters at the end of each iteration. Write the parameters to two decimal places of precision. It is recommended that you write some code to make your job easier; if you do, it can be in any language, but attach your code to the end of your homework. Hint: the process should converge by the fifth iteration Iteration # p μιμοσισο 0 0.5 46 1.5 1

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Prefer code in R or python or hand calculation. Problem 3 In this problem, you wil...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Submission Items: (1) A Word document in which you: a. Describe in brief the problem you...

    Submission Items: (1) A Word document in which you: a. Describe in brief the problem you are solving and the numerical method used. b. Snapshot of the output, when you run the program for the conditions mentioned in the questions. c. Discuss your results. (2) MATLAB code (m) file() Question 1: [10 points) Write a MATLAB function that calculates the approximate value of arctan(x) using the Maclaurin series approximation: arctan(x) = x- + +... The function should accept 3 parameters:...

  • problem 2 can use Det-Selection(A, p, q, r) as a sub-routine (i.e, you don't need to...

    problem 2 can use Det-Selection(A, p, q, r) as a sub-routine (i.e, you don't need to write its pseudo-code). To sort an array A, you will then call Det-QuickSort(A, 1, n). You also need to provide the worst case time complexity analysis of your algorithm. 2. (20 points) Given a set of n distinct numbers, we wish to find the k largest in sorted order using a comparison-based algorithm. Give an algorithm that implements each of the following methods, and...

  • Data clustering and the k means algorithm. However, I'm not able to list all of the...

    Data clustering and the k means algorithm. However, I'm not able to list all of the data sets but they include: ecoli.txt, glass.txt, ionoshpere.txt, iris_bezdek.txt, landsat.txt, letter_recognition.txt, segmentation.txt vehicle.txt, wine.txt and yeast.txt. Input: Your program should be non-interactive (that is, the program should not interact with the user by asking him/her explicit questions) and take the following command-line arguments: <F<K><I><T> <R>, where F: name of the data file K: number of clusters (positive integer greater than one) I: maximum number...

  • Using Python please Problem 3 (15 pts): Using the Secant Method, for A>0, (10 pts) Write a program which finds A/m for any positive value m. Note, you need to choose a function f(r) for the Secant...

    Using Python please Problem 3 (15 pts): Using the Secant Method, for A>0, (10 pts) Write a program which finds A/m for any positive value m. Note, you need to choose a function f(r) for the Secant Method whose root is A1 'm. (5 pts) How does your choice of m effect how many iterations your program takes to converge for a given tolerance choice? Plots will help me to understand your thinking here In [11]: #present your program for...

  • Practice Problem [no points]: You should read and understand Fibonacci algorithm, write a code in a...

    Practice Problem [no points]: You should read and understand Fibonacci algorithm, write a code in a high level language of your choice and in Assembly to find a Fibonacci number and check your result. At the end of this assignment a possible solution to this problem is given both in Python and MIPS assembler. Note that it would have been possible to write the Python differently to achieve the same function. . [20 points] Write and debug a MIPS program...

  • Stat 255 Project 3 due Wednesday, April 22 Write R code to solve the following problems, Make sur...

    I am just wanting the first question answered. Stat 255 Project 3 due Wednesday, April 22 Write R code to solve the following problems, Make sure to include descriptions and explanation in your cod Save them in a file named project3-yourname.R and email them to ysarolousi.edu be date. A model for stock prices Let S, be the closing price of a stock at the end of day j, where j model for the evolution of the future daily closing prices:...

  • Can you send the code and the screenshot of it running? 1) Create a PYHW2 document...

    Can you send the code and the screenshot of it running? 1) Create a PYHW2 document that will contain your algorithms in flowchart and pseudocode form along with your screen shots of the running program. 2) Create the algorithm in both flowchart and pseudocode forms for the following two functions: A. Write a Python function that receives a real number argument representing the sales amount for videos rented so far this month The function asks the user for the number...

  • R code all steps (copy paste it) - for all answers . R problem 1: Cernsus...

    R code all steps (copy paste it) - for all answers . R problem 1: Cernsus At School is a project that engages students in grades 4 - 12. The data from the project contains many variables. In this problem we will examine the following variables: -Languages.spoken: the number of languages a student can hold an everyday conversation Armspan.cm: the physical measurement of the length from one end of a student's arms (measured at the fingertips) to the other when...

  • This is what I am supposed to do: I think he wants us to do this in Java. Thank you! Fractals (a)...

    This is what I am supposed to do: I think he wants us to do this in Java. Thank you! Fractals (a) Write a function in Racket to create a Koch curve fractal. The Koch curve can be constructed by starting with a line (segment), then recursively altering each line segment as follows: divide the line segment into three segments of equal length. draw an equilateral triangle that has the middle segment from step 1 as its base and points...

  • 3 Programming Question (45 points) 3.1 Instructions You need to write the code by yourself. Your...

    3 Programming Question (45 points) 3.1 Instructions You need to write the code by yourself. Your implementation must use C/C++ and your code must run on the Linux machine general.asu.edu. Please refer to the programming guide (available under the Assignments folder on Blackboard) for using the general.asu.edu server, as well as compiling and running C/C++ code under Linux For this question, you need to provide a Makefile that compiles your program to an executable named a3 that runs on the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT