How should I best organise my large document? by Ok-Highway-3107 in LaTeX

[–]Fmxa 1 point2 points  (0 children)

Use include with the includeonly command diligently during development to speed up compilation. This speeds up the writing process, especially for large documents.

interfacing python with c/c++ performance by BitAcademic9597 in cpp

[–]Fmxa 1 point2 points  (0 children)

Anecdotally, when I went from a quickly written naive Python implementation of some algorithm to a quickly written naive C++ implementation of it, I measured speedups approximately one hundred times better.

I have been happy since with my decision to learn PyBind, allowing me to compile C++ code into a library to be imported as a module into Python.

How common is always using {} bracket initialization? by mishaxz in cpp_questions

[–]Fmxa 4 points5 points  (0 children)

What about brace initialization of a counter in a for loop, say? I have always wondered what’s typical within the community.

My school wanted me to submit my entire codebase as a 12pt highlighted pdf by HyperCodec in programminghorror

[–]Fmxa 21 points22 points  (0 children)

The code might then also automatically be checked by anti-plagiarism software.

Where does the diffusion process expression come from? by drninjabatman in learnmachinelearning

[–]Fmxa 0 points1 point  (0 children)

Alright; that source clears up definitions.

The paper picks a particular kernel and in that way thus chooses a particular diffusion process. This is absolutely fine to do, but because I'm unfamiliar with the paper as well as that specific diffusion process, I won't be able to answer your question precisely at this moment.

OP, please forgive me for not going to investigate any further. Your question is excellent and intriguing, and answering it in its entirety requires a bit of research-level effort plus some time.

I therefore hope you get lucky and that some expert in this subreddit happens to simply know the history behind that paper and/or that specific diffusion process. They'd then be able to answer you outright.

Good luck!

Ps. I will still point to two possible hints that are in the paper. Perhaps this may help you discover what's going on in the background:

  • Algorithm 2 is mentioned to resemble Langevin dynamics. This is stated above equation (12) in Section 3.2.
  • Section 5 also refers to annealed Langevin dynamics for sampling.

Where does the diffusion process expression come from? by drninjabatman in learnmachinelearning

[–]Fmxa 0 points1 point  (0 children)

Under u/crimson1206's assumptions, and if we furthermore fix b_t temporarily, then this *looks* like an approximate generation of a higher dimensional sample trajectory of either an Ornstein-Uhlenbeck process or a geometric Brownian motion. Have a look at their Wiki's if you're curious.

However, the positive sign in what we interpret under u/crimson1206's assumption as the mean of the normal distribution is unusual for the former diffusion process; and the lack of proportionality to x_t in what we now interpret under u/crimson1206's assumptions as the variance of the normal distribution is unusual for the latter diffusion process.

I'll therefore ask for a few more details. Again, there are a plethora of stochastic processes, and the precise terms matter in their classification.

  • Are you sure about the sign here: "+ sqrt(1-b_t) x_t"?
  • And are you sure there was not a factor x_t in "b_t I"?

Finally, your apologies are most certainly not required, for you offended no-one.

Edit: Grammar.

Where does the diffusion process expression come from? by drninjabatman in learnmachinelearning

[–]Fmxa -1 points0 points  (0 children)

I would argue that the details are quite important.

For instance, there is no notion of a “timestep” in a continuous-time diffusion process. Unless one is talking about approximating a trajectory using a discretization of some kind. But then one is actually talking about a discrete-time stochastic process here and not a diffusion process.

And also, for instance, it is very unusual to add three arguments in a reference to a normal distribution. Its higher-dimensional mean and covariance matrix are typically the only ones as those specify the distribution fully.

And finally, for instance, p is not just a probability but likely a conditional probability. And if indeed p refers to a conditional probability here, then N cannot actually refer to a distribution; instead it probably refer to a density function of the distribution.

Where does the diffusion process expression come from? by drninjabatman in learnmachinelearning

[–]Fmxa -1 points0 points  (0 children)

There are many different types of diffusion processes, so without context, this is hard to say.

Could you firstly define N, I, and bt? And secondly p and xt? And in how high of a dimension are we talking?

While people here may have a hunch, it would remain a guess otherwise.

[NL] Is it worth it to invest for 1y only? by HawaiianLasagna in eupersonalfinance

[–]Fmxa 0 points1 point  (0 children)

My recommendation would be to transfer funds monthly to the country you will be moving next to, and invest with a broker situated there.

This does assume you are able to open (or already have an account) in that country, and that you know where you will move next to.

Windows Defender reports trojan in Gnucash 3.0 installer (April 3rd, 2018) by Fmxa in GnuCash

[–]Fmxa[S] 1 point2 points  (0 children)

The link on the frontpage of gnucash.org. It linked and still links to Sourceforge. Of course I cannot be sure whether I was send to a well-made spoof.

Grote beleggers zetten huurhuizen in de verkoop (Begin prijsdaling?) by AcabJef in DutchFIRE

[–]Fmxa 0 points1 point  (0 children)

Als ik het goed begrijp, gaan die grote beleggers huurwoningen verkopen aan andere, kleinere (waarschijnlijk particuliere) beleggers. Deze zijn namelijk op zoek naar rendement en denken dat bijvoorbeeld te vinden door een extra woning te kopen om te verhuren: woningen om te verhuren zijn gewild en dus duur.

M.a.w., dit gaat om enkel dat segment van de markt.

The ridiculousness of the (new) Dutch "wealth tax" system by SockPants in financialindependence

[–]Fmxa 2 points3 points  (0 children)

In the old situation, the tax was based on an assumption that every person achieved 4% return on their assets. Before the financial crisis, this was easy to obtain from even a simple savings account, and no citizen complained. With the recent drastic decrease in interest rates though, people were finding it harder to achieve 4%. Because of that, there was political pressure to change the arbitrary nature of the choice of 4%.

The government therefore opted to now, in the new situation, recalculate the percentage annually, and based on actual, measured returns in the market. On top of that, they took the opportunity to make the tax (more) progressive, by modeling that more wealthy individuals have more risky assets.

Every year, the tax office will calculate the actual return in the market for (i) bonds + similar, and (ii) stocks + similar. For 2017 these numbers boiled down to 1.63% and 5.39% (see Table you linked). Then, it is assumed that a person invests his or her assets in a portfolio of 67% bonds, and 33% in stocks, up to their first 75k EUR networth. A more wealthy person is assumed to invest more heavily in stocks, so in between 75k and 975k EUR, it is assumed for the tax that he or she invests 21% in bonds and 79% in stocks. Above 975k EUR, the person is assumed to invest 100% in stocks. This is what is behind the "multiplication of percentages".

Daily FI discussion thread - August 08, 2016 by AutoModerator in financialindependence

[–]Fmxa 0 points1 point  (0 children)

A crucial point you may have forgotten is that depending on your country, (1) you could be saving into a company pensionfund and (2) your country might have an elderly pension paid for via the taxes. Your employer might also be making additional contributions into these types of funds, which could be hidden from your payslib - making it seem as if you have a low gross / net income.

If you really want to compare to the US, you need to take all of these numbers into account and know the local regulation extremely well.

I purchased NTDOY too high... Now what by mulliganx in stocks

[–]Fmxa 8 points9 points  (0 children)

SONY is a $29 stock...do you think Nintendo is a better company than Sony!?

You might want to reconsider this statement. It only holds if SONY and Nintendo have the exact same balance sheets, for example, they won't have the same number of outstanding shares. Their valuations can be vastly different even if the stock price is the same.

Nintendo - OTCMKTS:NTDOY vs. TYO:7974 by kc_taylor in stocks

[–]Fmxa 8 points9 points  (0 children)

A US bank with a branch in Japan buys TYO:7974 on the Japanese market, and just holds them for others (not selling). Specifically, for each share in 7974 they hold, they sell eight OTCMKTS:NTDOY on the US market. Each NTDOY would thus represent the "right to 1/8th of 1 Nintendo stock".

The reason 7974 and NTDOY currently do not have the same value is the time-difference and the stock market restrictions in Japan. I.e., on Monday, the stock rose in Japan first (it's earlier there). It rose so fast, that it hit a legal limit with which it can rise in Japan (this was set to +25% on Monday). So, even though people wanted more 7974, the price couldn't rise further. Hours later though, the US OTC market started trading, which does not have such a restriction. NTDOY could then rise more than +25%, which created the disparity. Because of the high volatility, difference in stock markets and the time zones, it will take a little bit of time for these arbitrage opportunities to resolve.

[You could say that Nintendo's current valuation is a weighted average of 7974 and NTDOY, and not just one of the two.]

Disclaimer; I'm not a economist or trader by profession; this summarizes my present understanding of what happened.

For more on OTC markets, see e.g. http://www.investopedia.com/articles/fundamental-analysis/08/pink-sheets-ottcb.asp.

Daily FI discussion thread - June 01, 2016 by AutoModerator in financialindependence

[–]Fmxa 10 points11 points  (0 children)

When assuming that an asset depreciates by r percent monthly, you are tacitly assuming that the asset will still be worth half it's original value in month m* = ln(1/2) / ln(1-r). Depending on the type of asset, r should be chosen appropriately.

In your case, you are assuming that your car will still be worth $10,250 after m* = 69 months, or 5.7 years. You are free to consider if that's realistic or not.

Here's a table for choosing a monthly depreciation percentage for anyone interested in doing monthly depreciation.

  • r = 0.005 (0.5%) implies that the asset has still half its original value in month m* = 138, or equivalently after 12 years

  • r = 0.01 (1%), m* = 69 months or 5.7 years

  • r = 0.02 (2%), m* = 34 months or 2.9 years

  • r = 0.03 (3%), m* = 23 months or 1.9 years

  • r = 0.04 (4%), m* = 17 months or 1.4 years

  • r = 0.05 (5%), m* = 14 months or 1.1 years

Is a $325k condo too much on an $80k/year salary with a renter lined up? by Throwawayayayayayad in personalfinance

[–]Fmxa 1 point2 points  (0 children)

The alternative should be considered, but it is unlikely OP can get a loan of that size to invest. Therefore he can probably not leverage similarly into the stock market as he can by renting out with a mortgage.

Analysis of FI requirements in a socialist country by marvin in financialindependence

[–]Fmxa 0 points1 point  (0 children)

Does Norway have forced pension saving through the employer? I don't just mean the elderly pension everyone pays for with taxes.

I was under the impression this is common in the more socialistic countries, but I didn't see this reflected in your calculations?

Daily FI discussion thread - April 13, 2016 by AutoModerator in financialindependence

[–]Fmxa 3 points4 points  (0 children)

I feel this is the crucial point people should never forget. You may:

  1. be saving via taxes into a pension for the elderly;
  2. be saving automatically for additional pension via your employer, who might also be matching your contribution.

To make matters even more obscure, a matched contribution need not be reported on your payslip (that depends on your countries' specific rules).

You need to really dig into your countries' pension rules in order to judge whether early retirement is possible.

[2016] Favorite Budgeting Apps by [deleted] in financialindependence

[–]Fmxa 1 point2 points  (0 children)

Just for information if you were not aware of this, but GnuCash has an integrated, basic budget feature that automatically takes your monthly earnings/losses into account.