HN user

it_does_follow

242 karma
Posts0
Comments98
View on HN
No posts found.

Not to mention that the entire class of Markov Chain Monte Carlo techniques only form a subset of general uses for Markov chains.

Markov chains form the basis of n-gram language models, which are still useful today.

Markov chains are also the basis of the Page-rank algorithm.

Hidden Markov Models (which are just an extension of Markov Chains to have unobserved states) are a powerful and commonly used time series model found all over the place in industry.

In the pre-deep learning model Markov chains (and HMMs) in particular had very wide spread usage in Speech processing.

They are probably one of the most practical statistical techniques out there (out side of obvious example like linear models).

Being reputable and being a vanity division are not mutually exclusive.

You could argue that at it's peak Bell labs was a vanity division. That research may have changed the world, but very little of it likely ended up benefiting AT&T in any major way financially. It's telling that once AT&T was broken up Bell labs, while existing in some form for years after, was never reestablished.

My guess is this is ultimately about money.

Facebook/Meta stock lost 30% of it's value a few months back and may not recover any time soon.

Many of these people are high level, so I'm guessing (based on a quick skim of levels.fyi) about 50% or more of their TC comes from stock.

This amounts to an effective 15% pay cut in a year with record inflation.

I think most of us would leave our job over a 15% pay cut, especially if we were well established in the field. On top of this it loosens those golden handcuffs quite a bit for anyone who was on the fence about being employed by facebook, but couldn't say no to the comp.

You've never had to any kind of factor analysis in your work or done any searching for latent variables that map to customer/stakeholder question? Given the number of people I've worked with that are interested in modeling "engagement", I find this hard to believe.

PCA is an incredibly valuable tool that I've used in most jobs I've had. It's just a terrible idea as a default part of a feature engineering pipeline (which is what the author is talking about in terms of "feature selection"), for reasons outline in this article.

I suggest you don't be quite so quick to dismiss important concepts in this area, and before criticizing this post, at least read through it (I noticed your comment about misunderstand what the author is discussing by "feature selection" is the top comment here).

It's very clear if you read the article that what the author is calling "feature selection" might be better termed "feature generation". He explicitly calls out what he means in the post:

When used for feature selection, data scientists typically regard z^p:=(z_1,…,z_p) as a feature vector than contains fewer and richer representations than the original input x for predicting a target y.

I don't even think this is necessarily incorrect terminology, especially given the author's background of working primarily for Google and the like. It's the difference between considering feature section as "choosing from a list of the provided features" vs "choosing from the set of all possible features". The author's term makes perfect sense given the latter.

PCA is used for this all the time in the field. There have been an astounding number of presentations I've seen where people start with PCA/SVD as the first round of feature transformation. I always ask "why are you doing that?" and the answer is always mumbling with shoulder shrugging.

This is a solid post and I find it odd that you try to dismiss it as either ignorant or click bait, when a quick skim of it dismisses both of these options.

Am I alone in really disliking Towards Data Science?

While their articles always look nice, their content is all written quickly by data scientists wanting to polish their resume with the ultimate aim of rapidly generating content for TDS that will match every conceivable data science related search. This post clearly exists solely so that TDS can get the top spot for "Word2vec explained" (which they have). As evidence of this tactic you can see that there already is a TDS post "Word2vec made easy" [0], offering nothing substantially different than this one.

The problem is that content is almost never useful, it just looks nice at first skim through. The authors, at no real fault of their own, are just eager novices that rarely have new perspective to add to a topic. It's not uncommon to find huge conceptual errors (or at least gaps) in the content there.

I personally encourage everyone at every level to write about what they can, but the issue is that TDS has manipulated this population of eager data scientists in order to dominant search results on nearly every single topic they can cover related to DS, which has made searching for anything tedious.

Compare this post to the fantastic work of Jay Alammar [1]. Jay's post is truly excellent, covering a lot of interesting details about word2vec and providing excellent visuals as well.

I'm assuming TDS will fold as soon as DS stops being a "hot" topic (which I think we'll be in the relatively near future), and will personally be glad to see the web rid of their low signal blog spam.

0. https://towardsdatascience.com/word2vec-made-easy-139a31a4b8... 1. https://jalammar.github.io/illustrated-word2vec/

And I sometimes wonder why.

Numpy.

I honestly think it all boils down to numpy being developed long before matrix libraries became a standard part of software development.

Ruby's early "killer app" (remember that term?) was Rails. Even to this day there is almost no major code out there built in Ruby that isn't ultimately related to building CRUD web apps. While Ruby may be losing popularity now, it moved the web-development ecosystem ahead in the same way that Python has moved the scientific computing world ahead.

20 years ago if you wanted to use open source tools to performant vector code there was Python and a hand full of oss clones of commercial products. Given the Python was also useful for other programming tasks in a way that say Matlab/Octave is not, it was the choice for more sophisticated programmers who wanted an OSS solution and need to do scientific computing. This creates a positive feed back that persists to this day.

Given that Python remains a decent language relative to it's contemporary peers and it has a massive and still growing library of numerical computing software it is extremely unlikely to be dethroned, even by promising new languages like Julia.

Even to this day there is nothing even close to numpy in Ruby. I do DS work in an org that is almost entirely Ruby, but we still use python without question because we know re-implementing all of our numeric code into Ruby would be a fools errand.

Had ruby had early support of matrix math, it wouldn't have surprised me if it would have replaced Python.

They point to evidence, notably from the Nordic nations, that economies can continue to grow even as carbon emissions start to come down.

This a pretty laughable piece of "evidence" given that the most important export from the Nordic countries is petroleum.

But even if this wasn't the case, you can't talk about global systems on a local scale. There are countries that have continued to reduce fossil fuel growth and continued to increase economic growth, but at the end of the day these are just accounting tricks. The US has seen a bit of this, but we also exported a lot of our energy intensive manufacturing to other countries.

I'm sure someone will point out that some studies have tried to correct for this by measuring the carbon foot print of imports. But these studies are also flawed for several reasons. First the reduced cost of good is China is not only the lower labor cost but all of the other industrial services nearby that allow those goods to be created efficiently. It's very difficult to determine how far up the chain of production you need to go.

The other is that there's never an attempt to account for how much energy/fossil fuels go into the dollars that flood into an economy. If your finance sector is making a lot of money of foreign energy consumption, that counts.

The bottom line is that global consumption of energy has never decreased for any source[0]. We even burn more wood to produce energy than we did when that was one of of the major source of home energy!

We are already hitting the limits to growth, but the reality of that is too terrifying for most people to accept so we end up convincing ourselves that its not happening... while we're watching a war over fossil fuels develop in Europe.

0.https://ourworldindata.org/energy-production-consumption

That if someone really wants to understand where we are with all those Libya, Syria, Iraq, ... Ukraine.

I appreciate Mearsheimer's perspective, but for a self professed "realist", I find it strange that he talks a lot about "ideology" and very little about "oil".

At the end of the day all of those conflicts are conflicts over the control of fossil fuels. I have a hard time taking any analysis seriously that doesn't focus on this primary issue.

How Does This End? 4 years ago

Putin/The Russians aren't insane, they're looking after oil/NG interests. That's the entire reason they captured Crimea in the first place. The Ukrainian government then stopped the flow of water to Crimea to make it basically unusable.

NATO backed oil/NG companies also are annoyed because, despite investing a lot in gas fields in the East and the West, they haven't been able to produce much of anything because the region is under constant military conflict, funded by both the US and Russia.

I agree with the parent comment. If Russia can finally and absolutely control gas fields in the East and have assured access to not only Crimea but water to run the region they'll be getting much more out of this situation than they had prior. They will be interested in stability as much as NATO backed energy companies. Given the conflict in the region, and the recent (2014) overthrow of a government friendly to them (coincidentally right after Shell and Chevron signed contracts to develop gas fields), Russia is, rightfully, as wary of promises from the West as we are of them.

For purely, selfish, greedy reasons Russia would want peace in the region as much as NATO backed oil/gas companies have been hoping for it. There are still gas fields in the West that are waiting to be exploited and already have their resources under contract. Once these resources can be split up in a way everyone can deal with, there won't be conflict until the gas dries up because both parties make tremendously more money with stability after that.

How Does This End? 4 years ago

I second this question. In the last few days I've heard pretty heavy reference to "people cheering on nuclear war" but haven't seen it first hand anywhere. A link to an opinion piece that explicitly states this, or even a few high-profile twitter accounts espousing this view would at least convince me it's happening.

Heck, even browsing reddit comments and hacker news comments I've seen no view encouraging nuclear war. Even 4chan doesn't seem to have any posts proclaiming this view.

I'm presuming the link is supposed to be about this book https://yalebooks.yale.edu/book/9780300259360/economic-weapo...

There's a review with the same title as this post here: https://www.foreignaffairs.com/reviews/capsule-review/2021-1...

Which sums up the topic with:

In an original and persuasive analysis, Mulder shows how isolating aggressors from global commerce and finance was seen as an alternative to war that worked precisely because of the pain it imposed on the target society. From the very beginning, it was civilians who suffered the most. Nevertheless, the League of Nations embraced sanctions and established an elaborate legal and bureaucratic apparatus to enforce them. Mulder argues that instead of keeping the peace, this form of economic warfare aggravated the tensions of the 1930s, encouraging austerity and autarky and restraining smaller states but backfiring against the larger authoritarian ones, such as Italy.

I think this is an interesting point to bring up, because, especially in the West, we hold a believe that "economic" violence is not as bad as "physical" violence. It's well worth at least questioning this assumption.

I think Bishop et al. WIP book Model-Based Machine Learning[0] is a nice step in the right direction. Honestly the most important thing missing from ML that stats has is the idea that your model is a model of something. That how you construct a problem mathematically says something about how you believe the world works. Then we can ask all sorts of detailed question about "how good is this model and what does it tell me?"

I'm not sure this will ever dominate. As much as I love Bayesian approaches I sort of feel there is a push to make them ever more byzantine, recreating all of the original critiques of where frequentist stats had gone wrong. So essentially we're just seeing a different orthodoxy dominant thinking with all of the same trapping of the previous orthodoxy.

0. https://www.mbmlbook.com/

No, this is the second volume of "Probabilistic Machine Learning", the first volume of which was just published this week. The 2 volume set can be seen as a complete rewrite/replacement for "Machine Learning: A Probabilistic Perspective"

For clarification, Murphy's first book is just Machine Learning: A probabilistic perspective this is his newest, 2 volume book, Probabilistic Machine Learning which is broken down into two parts an Introduction (published March 1, 2022) and Advanced Topics (expected to be published in 2023, but draft preview available now).

To answer your question. This book is even more complete and a bit improved over the first book. I don't believe there's anything in Machine Learning that isn't well covered, or correctly omitted from Probabilistic Machine Learning. This also has the benefit of a few more years of rethinking these topics. So between the existing Murphy books, Probabilistic Machine Learning: an Introduction is probably the one you should have.

Why this over Bishop (which I'm not sure is the case)? While on the surface they are very similar (very mathematical overviews of ML from a very probability focused perspective) they function as very different books. Murphy is much more of a reference to contemporary ML. If you want to understand how most leading researchers think about and understand ML, and want a reference covering the mathematical underpinnings this is a book you really need for a reference.

Bishop is a much more opinionated book in that Bishop isn't just listing out all possible ways of thinking about a problem, but really building out a specific view of how probability relates to machine learning. If I'm going to sit down and read a book, it's going to be Bishop because he has a much stronger voice as an author and thinker. However Bishop's book is now more than 10 years old an misses out on nearly all of the major progress we've seen in deep learning. That's a lot to be missing and it won't be rectified in Bishop's perpetual WIP book [0.]

A better comparison is not Murphy to Murphy or Murphy to Bishop, but Murphy to Hastie et al. The Elements of Statistical Learning for many years was the standard reference for advanced ML stuff, especially during the brief time when GBDT and Random Forests where the hot thing (which they still are to an extent in some communities). I really enjoy EoSL but it does have a very "Stanford Statistics" (which I feel is even more aggressively Frequentist than your average Frequentist) feel to the intuitions. Murphy is really the contemporary computer science/Bayesian understanding of ML that has dominated the top research teams for the last few years. It feels much more modern and should be the replacement reference text for most people.

0. https://www.mbmlbook.com/

Kevin Murphy has done an incredible service to the ML (and Stats) community by producing such an encyclopedic work of contemporary views on ML. These books are really a much need update of the now outdated feeling "The Elements of Statistical Learning" and the logical continuation of Bishop's nearly perfect "Pattern Recognition and Machine Learning".

One thing I do find a bit surprising is that in the nearly 2000 pages covered between these two books there is almost no mention of understanding parameter variance. I get that in machine learning we typically don't care, but this is such an essential part of basic statistics I'm surprised it's not covered at all.

The closest we get is in the Inference section which is mostly interested in prediction variance. It's also surprising that in neither the section on Laplace Approximation or Fisher information does anyone call out the Cramér-Rao lower-bound which seems like a vital piece of information regarding uncertainty estimates.

This is of course a minor critique since virtual no ML books touch on these topics, it's just unfortunate that in a volume this massive we still see ML ignoring what is arguably the most useful part of what statistics has to offer to machine learning.

I've had tinnitus for about 20 years now and I don't notice it most of the time and when I do don't really mind it too much. The only thing I really miss is perfect silence.

One of the things I've noticed people struggle with regarding any chronic illness is constantly feeling like they are "supposed" to be feeling fine and have more distress worrying about some perceived gap between their actual life and how they imagine life should be then the ailment itself(this obviously carrier over to things other than chronic illness).

Letting go of this imagined alternative life is the biggest first step towards accepting and dealing with tinnitus. I have tinnitus the same way I have all my other features, positive and negative. That's just the life I have and there is no alternate life out there.

I do still get a kick out of the look of horror on people's faces when I tell them I've had constant, changing frequency, ringing in my ear for two decades.

I haven't done or even really touched front end work in a decade and I believe that this would have been an interesting interview.

Given his perfect answers I probably would have been able to come pretty close to passing.

If you know anything at all about the details of html, all of these can be easily understood by looking at what they're claiming to do. None of these are esoteric even if your front end knowledge predates wide spread use of mobile devices.

Take line 5 for example. I have never heard of Open Graph, but I know that og: is declaring a namespace for a pretty self describing tag. It's clear from this take with no other information that it is providing a site name for a specific service.

I don't think it's a big ask at all for a senior front-end dev, who is fresh in the field, to know what the first 10 lines of one of the most popular websites out there is doing.

No, these are always the tools used to convince people to go to war, and later to justify the results.

They are part of the ways power maintains power. Every first king is just a warlord, a thug more brutal than the rest, and after defeating their enemies they suddenly declare the role of king is ordained by the god(s) and to challenge it is heresy. They set up the notion that rulers are more noble than common men, which is why they should rule over them and control the land. In later years they will use these tools to again convince their people to fight for them in the name of "country" or some other such notion.

And what peoples are against "freedom"? Do you really believe terrorists attacked the US because they "hate our freedoms?" No, it's because the US systemically destroyed their homelands, denied them of their own freedoms, and forcibly took their resources. But when you fill your gas tank you aren't comfortable recognizing that a hidden part of the price of the gas is the civilians murdered so you could have it.

I'm endlessly surprised to see educated adults buying into the stories will tell children about how the world works.

I'm surprised to see so many moral narratives, like this one, surrounding war start popping up. I thought it was pretty well understood and established that the narratives we tell about war are mostly propaganda/myth making after the fact.

War is about resources and control. That's it. There are no "good/bad" guys (or more specifically they're all "bad" guys). We're not participating in some grand moral struggle, we're taking calculated risks to maximizes gains when the opportunity appears and minimize losses when we have no other options.

For the last 70 years world power has be set so there was primarily one global hegemon (the US) so there was not much movement on the world stage among powerful nations. Economic strategies remained the safest way to control resources among world powers, but military actions still dominated in cases of extreme power asymmetry. The US has been invading and bombing countries and regions virtually continuously for the last few decades.

The resource situation is starting to change, so risks that made no sense suddenly start to seem more reasonable. But absolutely none of what we're seeing now has anything to do with some silly narrative about NATO powers and Russia. Russia has ceased the opportunity of low risk acquisition of resources, NATO powers have worked to minimize their own loses given the risk of any major action is high.

As resources grow more scare we'll see increased military conflict. The severity of which will be proportional to the scarcity. None of this will "haunt" anybody, it's just a game to survive which as been fairly easy the last few decades and that is changing.

Curious what's delusional about this?

Russian and Ukraine combined account for 29% of global wheat exports, much of that to the EU.

Near term climate change will most certainly lead to massive crop failures, particularly in currently bountiful parts of the EU.

Countries like the UK (I know not EU) already cannot feed their people without imports, something like 50% of the UKs food supply is imported.

It is nearly certain that within a few decades, perhaps even sooner, we will be at a point where there is not enough food. We've already see notable crop failures in the EU.

Most of us have grown up in a time of plenty, but that time is running short.

All of this is fairly well established, so is my "delusion" in that Putin is aware of this and acting on it?

Not if Russia takes Ukraine and controls the majority of wheat following into EU.

Near term impacts of climate change will very likely leads to crop failures in many of the EU's largest producing regions.

When you don't have enough food to feed your people, politics and economic sanctions become extremely flexible.

When resources run low controlling food and oil will be a very big deal.

I don't think Russia is going to lose this one.

People on HN tend to be in denial about the current state of the world, but I don't think Putin is.

We're already starting to see some food shortages across the globe due to climate change, this will only intensify. Together Russia and Ukraine produce 29% of the worlds wheat exports. As climate change worsens food will become as big of a concern as oil.

We are also running out of oil, and not for the naively optimistic reasons most people hope. We're not getting "greener" we're depleting resources and oil still runs economies.

If Russia secures Ukraine they will also secure a place in the end game of civilization, radically altering the power dynamics of the EU.

The point of all this is there is a lot more at stake here than people realize (or are willing to admit). Russia has a lot to gain by control of Ukraine, and therefore can also justify tremendous risk. They have a powerful nuclear arsenal, and are likely more willing to use it than ever before.

MAD only works if you have a future that nuclear war risks throwing away. People that understand energy and climate understand that these things are going to very rapidly change the world stage. All of our futures are at risk, and the time to secure a spot is now. People on HN might be deluded in to thinking "this is fine" but I very much doubt Putin shares this naivete.

On the other end of all this, NATO countries have lived in relative security for a long time. They are still largely terrified of nuclear threat and I believe many of them don't fully realize the situation we're in. Liberal democracies likely have plenty of people in power that really believe Germany is near a truly green future.

I absolutely believe Putin is willing to go nuclear if necessary and I do not believe NATO is really ready to go nuclear in return. I don't believe the US would immediately attack Russia even if Russia wiped Paris off the map, because doing so would guarantee we are all wiped off the map. There is a risk asymmetry here which weakens MAD and give Putin a lot of power, especially if his immediate goal is simply to take Ukraine.

I had a similar reaction to this post, this is not a new way of leveling, this is how leveling was done at most companies for a long time. State Universities and the Federal Government are still very much this way, with a very similar amount of counting years of direct/indirect experience.

Back when I worked in academia I also had a very similar experience to yours. I wasn't leading a team but, especially earlier in my career, it was incredibly frustrating to be making significantly less than people who were both less skilled and less hard working, but simply had more years of experience. The perpetual theme was "you just haven't earned it yet", but "earning it" was purely a function of putting time in, it didn't matter how great the work you did was.

I left to go to tech and even now that I'm on the older side of things I still prefer the pay structure being more closely aligned with the value of your skills + the amount you're willing to put into the job. I get paid plenty, and have no problem with someone much younger and less experienced then me getting paid more with unique skills and responsibilities I'm less interested in having.

If you train for endurance sports you'll definitely lose weight without much attention to your diet.

For example, with marathon training, once you start to hit the 6 plus mile your daily run eats up over 1,000 calories.

Near the end of your training your long run days become over 2,000 calories, and even your easy runs becomes 1000+.

That's essentially an entire extra meal, and you're running 5-6 days a week.

If you're just going to the gym for 30-45 minutes, 3-4 days a week, diet will be essential to losing weight. But if you're running 1 hr + a day and 2+ hrs at least once a week it's hard to get enough calories.

There are also lots of libraries but the quality of the documentation is often sub par.

One thing I think R does not get enough credit for is really strong enforcement of documentation. If you want to get a package in CRAN it is going to be more work to not document your library than to just document it correctly. As a result nearly every R package has very solid documentation, including a well formatted pdf manual, a series of "Vignettes" that show how to use the library, and excellent in-interpreter documentation.

Doing work like this for other people is completely and utterly different from working on your own projects.

To be fair this same logic likely is the source of stress for a lot of software engineers. Loving to program and programming for other people for a living initially seems like a brilliant way to make a living. For plenty of people it is, but for some what programming for money looks like and programming for passion look like can be so different as to be depressing.

The hardest part of software engineers in this situation is the money is really good and, all things considers, the job is quite cushy. However having your passion drained by your profession still can be an awful feeling, and that can be magnified by the fact that there's no easy solution.

For me personally I resolved this by realizing and fully embracing that the programming projects I like to do need to be in a completely separate part of my mind that the ones I'm paid to do.

By day I sling mediocre code on arguably useless things because I need to pay the bills, by night I work on a separate set of interesting problems that are related to the day time ones only insofar as they technically involve writing code. If I get a cool insight at work, great, but I've learned to leave my passion at home when I check into work.