I am beginner in Mathematica, and can only understand basic command so far. I need help in writing the maximum likelihood estimation function. I want to find the MLE of a Binomial distribution, with 2 parameters: n and p. I know that it is a quite simple one and actually I can get the answer manually, which I did. But I need to know how to write this in Mathematica to get the same answer. Thank you!

```
data = RandomVariate[BinomialDistribution[2, .3], 1000];
EstimatedDistribution[data, BinomialDistribution[n, p],
ParameterEstimator -> {"MaximumLikelihood"}]
(* -> BinomialDistribution[2, 0.3155] *)
```

Similar Questions

I'm trying to do pose estimation (actually [Edit: 3DOF] rotation is all I need) from a planar marker with 4 corners = 4 coplanar points. Up until today I was under the impression from everything I rea

I want to find the log likelihood of a Gamma, Weibull and Log normal distributions in R. How do I proceed given I have already estimated their parameters.

I'd like to syntax highlight Mathematica code on a MediaWiki site. I've already installed the MediaWiki extension SyntaxHighlight GeSHi and verified that it works for other languages. I tried simply p

Because of the MAXIMUM_WAIT_OBJECTS restriction of WaitForMultipleObjects function, I tried to write my own wait for threads function but didn't get it work. Can you give me a hint, how to do it? Th

How can I find 2-approximate solution for a problem of determining a maximum subgraph with no cycles of an oriented graph? Subgraph is maximum if it contains the maximal number of edges amongst othe

Reading through the sqlite documentation I found the following function: http://www.sqlite.org/lang_corefunc.html#likelihood The likelihood(X,Y) function returns argument X unchanged. The value Y in

How to limit maximum characters of title, description in Joomla 1.5 table? And how to make if so long, not write all text in table, but write ... or write in other Line. I mean if title is like: titl

I am currently trying to implement a Gaussian Process in Mathematica and am stuck with the maximization of the loglikelihood. I just tried to use the FindMaximum formula on my loglikelihood function b

I'm trying to visualize molecular vibrations in Mathematica and make some 3D animations using commands something like this: Animate[Graphics3D[{x[t],y[t],z[t]}],{t,tmin,tmax}] I couldn't find a way t

I think I am starting to understand how to link functions written in C/C++ to Mathematica. The problem I'm facing is that I don't know how to send error messages from my C wrapper to Mathematica. Afte

I have a function f(x,t) and I'd like to plot the function of the solution x(t) of f(x(t),t)=0 using Mathematica. How can I do it? Mathematica is often quite different to other programming languages I

How does Mathematica decide when to round numbers in its output? For example, giving the input 250000.5 gives the output 2500001 While 25000.5 is indeed printed as 25000.5 N[] isn't helpful here

I am wondering if anyone can help me to plot the Cantor dust on the plane in Mathematica. This is linked to the Cantor set. Thanks a lot. EDIT I actually wanted to have something like this:

I want to graph the log likelihood function between -pi and pi. the log likelihood function llh <- function (teta,x) { sum(log((1-cos(x-teta))/(2*pi))) } x=c(3.91,4.85,2.28,4.06,3.70,4.04,5.46,3.53

How do you position a text outside a plot in mathematica? A quick google search will lead you to http://reference.wolfram.com/mathematica/howto/AddTextOutsideThePlotArea.html This is not enough since

I need to know the algorithm(s) it uses, because I have to write my own program. Levenberg-Marquardt doesn't really do the same. Is there like a list of algorithms, from which Mathematica chooses what

I'm trying to write a program in Mathematica that will simulate the way charged ball bearings spread out when they are charged with like charges (they repel each other). My program so far keeps the ba

I am new to software project time estimation. I have learned that people are using some techniques such as ‘Function point analysis’ , ‘Cocomo model’ etc. Can you tell me the some of the latest and be

Is there a way to write text in mathematica so you have something like x/f(x) without getting 1/f? writing Text[x/f(x)] doesn't help.

I want to create a multivariable(here four) function with a grid and than interpolate it for any X,Y. Assuming that is my probablity density function I calculate their marginal on X. I use this functi

I would like to do pose estimation of a chessboard target using emgu. I have already determined the camera intrinsics. However, I can't find the solvePnP function in emgu which I think should solve my

As we know almosty all video encoders use some temporal coding. It uses block (Rectangular area) based motion estimation to find best macth of a block of pixels for a current frame in reference / prev

I have a several config forms from where I write to a config file. How can write an int16 to a file, because the maximum value is 100 and I would like save a place in the file? private void butSave_Cl

I'm not sure I got how to define private functions right. When I'm writing a package mathematica, I just do this: BeginPackage[myPackage`] myPublicFunction::usage=myPublicFunction blahblahblah; Be

I have a question about NDSolve function in Mathematica. I have an oscillator defined by these two equations: x' = v v' = -x - u*v^3 where u is some constant. How to create an NDSolve that resolves t

This is part one of my attempt to find an answer to my question wireframes in Mathematica. Given a set of line segments how does one join two segments that are connected AND lie on the same line. For

What is the best way to define a numerical constant in Mathematica? For example, say I want g to be the approximate acceleration due to gravity on the surface of the Earth. I give it a numerical value

Can someone who is familiar with mathematica tell me why my drawing wont generate? plot1 = ContourPlot3D[{x^2 + (y + 0.25)^2 + (z - 0.45)^2 = 0.25, x^2 + y^2 + (z + 0.5)^2 = 0.25, x^2 + (y + 0.5)^2 +

I need to create a 3 by 3 real orthonormal symbolic matrix in Mathematica. How can I do so?

I am trying to write a Mathematica script that can interpolate a discrete vector field to a continuous vector field. I then want to extract the integral curves (field lines) from the continuous vector

So, I've recently converted from Mathematica to Matlab, and while Matlab has most of Mathematica's useful features, I can't figure out how to perform the equivalent of Mathematica's delayed set operat

I'm a beginner to R and ran into an error while trying to use the optim function. I have a likelihood equation that I'd like to maximize, so I've implemented the following code: >datafile=read.del

How to call a Mathematica function inside Matlab? There are certain symbolic equation manipulation/simiplification that's particularly easy to do in Mathematica, at least to me, and I'd like to use Ma

What is the proper procedure way to install new packages for Mathematica? In particular, when you download any notebook from MathWorld, you are are given a link to Mathworld packages, which is are zip

We are investigating the performance of Azure storage table, what we want to know is the maximum number of rows per single read and write transactions for table, any official documentation can be refe

I'm an R noob which might be reflected in the not so dense code - so please bear. I'm trying to estimate coefficients for a bivariate normal distribution using max. likelihood estimation. I receive er

How do you define a special operator in Mathematica, for example a special type of additive or multiplicative operator? I did that in the past but I can't recall where I put the code. I tried defining

I am preparing for the exams, and I have spent couple of days trying to solve the task, but without success. Can someone show me how I solve this? The result should look like this:

How do I use Mathematica's Gather/Collect/Transpose functions to convert: { { {1, foo1}, {2, foo2}, {3, foo3} }, { {1, bar1}, {2, bar2}, {3, bar3} } } to { {1, foo1, bar1}, {2, foo2, bar2}, {3, foo

How could I estimate the instantaneous throughput ? For example, in a way similar to what the browser does when downloading a file. It's not just a mean throughput, but rather the an instantaneous est

I need to incorporate a 3D model of the Earth into a satellite orbit intercept simulation I have created in Mathematica (I need it to work with Graphics3D[]). I have downloaded several different mode

Given a large expression, how can I collect the various powers of a variable within Mathematica? For example: p = (1 + a + x)^4; Expand[p] Out: 1 + 4 a + 6 a^2 + 4 a^3 + a^4 + 4 x + 12 a x + 12 a^2 x

I recently encountered an IOError writing to a file on NFS. There wasn't a disk space or permission issue, so I assume this was just a network hiccup. The obvious solution is to wrap the write in a tr

I was wondering the other day if StackOverflow had an API I could access from Mathematica, and apparently it does: Saving plot annotations What's the best way to get data from StackOverflow into Mat

Has anyone already thought about how to do a clickable calendar in Mathematica? There seems to be something here http://library.wolfram.com/infocenter/Demos/108/, but I quickly tested it and it doesn'

id login_name login_time 1 aa 2002-09-19 2 bb 2002-12-19 3 bb 2002-12-30 How do I write one SQL statement to find out the latest login_time for the user who has the maximum number of logins. For exam

Under a 32-bit operating system, where maximum memory allocated to any one program is limited, Mathematica gracefully terminates the kernel and returns a max memory allocation error. On a 64-bit OS ho

here is my problem: i would like to run a Mathematica script through ssh on a remote machine so that i can close the terminal on my computer and keep it running on the remote one. My problem arises be

I'm reverse-engineering how Mathematica does list interpolation: (* Fortunately, Mathematica WILL interpolate an arbitrary list *) tab = Table[a[i], {i,1,100}] f = Interpolation[tab] (* get the coeff

Consider Expression Below: Where Gamma and k given (user input).depending on Gamma value,number of Multiple series may change.any ideas how can I put this on mathematica?I Can't Use Nested Loop