Emcee Fitting

I’ve changed the code to use emcee in order to fit the parameters of temperatures, flux ratio, and relative velocities of each targets visit spectrum individually.

In order to tell emcee when the parameters are a bad fit, I return the calculated chi2 value from the generated model. Emcee’s job is to minimize that calculated error.

A step by step process of this can be shown in the ipython notebook hosted here.

The current results are good for 2/3 targets that I have run against. The targets I used in my test sample are:

  • 2M03485329+3132297
  • 2M03405779+3118059
  • 2M03441568+3231282

The results are below (sorry for the screenshot but I was unable to upload the documents on WP).

screen-shot-2016-09-22-at-6-03-57-pm

screen-shot-2016-09-22-at-6-04-27-pm

screen-shot-2016-09-22-at-6-04-36-pm

The resulting parameters. (ignore Passes column, forgot to remove)

(ignore

Even the targets with a good chi2 value have the temperatures swapping every now and then and you can see to compensate for the ratio difference, the flux ratio goes above 1.0 to keep the secondary components flux ratio below the primary. I think these are cases of the initial guesses of the relative velocities were flipped for the primary and secondary.

What does seem odd though is only 2M03441568+3231282 has a consistent temperature of 3500 K. The program may need more time to run against these targets.

For the first target, 2M03405779+3118059, this target seems to require more time as well as it has with even more sporadic temperature values.

More passes may not be the answer though, as it currently takes 2 minutes per visit.

A possible approach to bring down the computation time, as it will be long, would be using multiple computers to run the software using SSH. The time it would save would be worth the time to implement it, but I’m not sure if we can use more.

 

EDIT: visit computation time.

5 thoughts on “Emcee Fitting

  1. Hi Emmanuel,

    Thanks for the update!!

    It definitely seems like the code is latching on to differences in the systems, as the results for 2M03485329+3132297, 2M03405779+3118059, and 2M03441568+3231282 show that the systems are dominated by emission from hot, warm, and cooler stars respectively. The fits for 2M03441568+3231282 also seem relatively consistent in terms of the relative temperatures of the two components, though the warmer component doesn’t seem quite as well nailed down. That is interesting to me, as unless they have very different ages — and it is hard to make a binary where the components have different ages — it would seem that the hotter star should be both hotter and bigger, so dominate the system’s total emission, such that the model would have lots of signal to grab onto to nail down that warmer temperature.

    Things that still puzzle me:
    * the chi square values are all integers. Is that real? If the variable is a float, it seems pretty unlikely that all the chi squares would end up being exactly integer values….

    * how is the flux ratio value defined/determined? They are all within a few hundredths of 1 — naively I would have thought to see a slightly larger range of flux ratios than this…

    * Would be good to perform this analysis for an APOGEE system where we really know the parameters well from independent observations — I don’t have any off the top of my head, but Meredith Rawls, a postdoc at UW who will be visiting a couple times this quarter, might have a few: we’ll have to ask!

    -kevin

  2. Who Is The Best Bitcoin Recovery Expert To Recover Lost Cryptocurrency?

    I’ve been following crypto trading since I first got to learn about it. I finally decided to get involved in it, so I took money from my savings and invested $68,000 with a Crypto trading platform. Along the way, everything appeared well and my profits accumulated as promised, until one day I couldn’t access the crypto account and was forced to pay unknown hefty taxes to take my winnings. I was enraged and nearly lost control of the situation until I came upon an article about CAPTAIN WEBGENESIS and how he assisted with cases like mine. I contacted the Expert and explained my case. He obviously asked for some information about my crypto account, which I was able to provide. Within a short period of time, CAPTAIN WEBGENESIS was able to recover every bit of my funds.
    CONTACT INFO ;
    Whatsapp;+1(701)314-2729.
    Email; Captainwebgenesis@hackermail.com

    Simon Potter,
    Business Analysts, Seattle Washington DC.

  3. CAN I GET MY LOST OR SCAMMED BITCOIN BACK? YES, LOST RECOVERY MASTERS WILL SOLVE ALL YOUR PROBLEM.

    I had 6.02 BTC in one of my Bitcoin wallets that I thought was lost for good. I’d sent my laptop to a variety of top data recovery firms, but with no luck. After seeing a positive comment about Lost Recovery Masters on “Google search ”, I decided to try to recover my wallet one last time.
    Lost Recovery Masters were very responsive, and they recovered my wallet in just a few hours. Lost Recovery Masters acted honorably and in accordance with our agreement.
    I would highly recommend using Lost Recovery Masters services. They recover any lost Cryptocurrency no matter how you lost it . Scammed or lost password they will recover it.
    Contact them on:
    Whatsapp: (+44(7537)-105921)
    Email: (Support@lostrecoverymasters.com)
    Website: https://lostrecoverymasters.com/

  4. Bitcoin Scam Recovery Services Through Captain WebGenesis.

    Thankfully, many folks who have fallen victim to these online trading Ponzi schemes are receiving their money back thanks to Captain WebGenesis. If you have ever lost your Crypto Assets to internet scammers, you can reclaim your funds with the help of this Expert. Captain WebGenesis is a licensed Cryptocurrency Hacker based in the United States who specializes in the recovery of lost currencies and bitcoin. My all invested life assets worth $654,000 were shielded from an online scammer thanks to the Expert. If you are a victim looking for an ethical hacker to help you get your money back, contact Captain WebGenesis through their support Team;
    Mail Info; (Captainwebgenesis@hackermail.com
    SMS / Call; +1 (501)-436-9362.

  5. Always looking for ways to support small businesses. Discovered a local coffee shop that recently started accepting crypto payments through a gateway like https://www.merkeleon.com/crypto-payment-processing/. This is a great way to show my support for local entrepreneurs while also experimenting with using crypto for everyday purchases. Crypto payments at small businesses? It’s a small step towards wider crypto adoption and could foster a more vibrant local economy.

Leave a Reply

Your email address will not be published. Required fields are marked *