Recent content by yourgoldteeth

  1. Y

    NM-Solved(How to plot points from a Maximize[ ] output)

    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...
  2. Y

    Mathematica Optimizing parameters without specifying them (Mathematica)

    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...
  3. Y

    Mathematica Mathematica: dealing with significant figures

    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.
  4. Y

    Mathematica Mathematica: dealing with significant figures

    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...
  5. Y

    Mathematica Declaring/filling arrays of arbitrary size in Mathematica

    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...
  6. Y

    Mathematica Declaring/filling arrays of arbitrary size in Mathematica

    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.
  7. Y

    Mathematica Declaring/filling arrays of arbitrary size in Mathematica

    airborne18: thanks for the reply!. When you get your Mathematica machine back, I would love to see examples of your method.
  8. Y

    Mathematica Declaring/filling arrays of arbitrary size in Mathematica

    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++, {...
  9. Y

    Mathematica Declaring/filling arrays of arbitrary size in Mathematica

    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...
  10. Y

    Mathematica Precision issues in Mathematica (i think)

    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...
Back
Top