The way I would do it is assign that solution to a variable, like this
solution = Maximize[...]
Then, you can apply this as you see fit. Here is an example:
Plot[function[a,b,c] /. solution[[2]]]
The /. tells Mathematica to replace the arguments of function[] with the values of...
I use NMinimize to optimize a likelihood function. The number of parameters included depends on the dimensions of a vector I pass. I would like to have Mathematica check the dimensions of the vector, declare the correct number of parameters for me, and then solve for them.
Right now, I have...
The interval function does not appear to be what I am looking for. I have a single value, and need to specify a range based on significant figures rules for that one value. The interval function requires a range as input.
Hi everyone.
Hopefully this is easy to solve.
I have large amounts of mined data that have differing levels of precision. I want to do analysis of:
1) number of decimal places present
2) significant figure error intervals based on the precision (for instance, 0.003 could have been...
Thanks for your help.
I will try splitting the list and see if it helps.
The big issue is this: the bottleneck of my program is a likelihood function that takes 2000 numerical integrals. And then I have to optimize a three-parameter model with that likelihood function (that takes about...
I found a faster, more elegant solution. Since the empty parts of my array were of type $String, I did this:
masterData = DeleteCases[rawData[[1]], _String, Infinity];
Which got rid of all the empty parts without flattening my vector.
Found a way to do it. I realized that the longest vector in my array was 52 long. So I did this
(*specify an empty array with x as a placeholder*)
cleanData = ConstantArray["x", {Length[rangeData], 26, 2}];
(*write to the new array *)
For[i = 1, i <= Length[rangeData], i++,
{...
edit: Forgot to add Mathematica in the title. Sorry!
Hi everyone.
I mined a lot of data and want to analyze it in Mathematica.
The data is of the form
{{x11, y11, x12, y11, x13, y13},{x21, y21, x22, y22}...}
meaning that each set of x,y pairs is not necessarily the same size...
Hi everyone. It's my first time posting in here.
I have a mathematica notebook that defines a four-parameter prob density function (PDF). I define a likelihood function, import some data, and run a Nelder-Mead optimization strategy on the likelihood function using the data.
My likelihood...