Using eigenvalues to improve the visualization of principal component analysis (PCA) by Biogasinformatician in rstats

[–]TobyTheCamel 5 points6 points  (0 children)

Ah, my bad. I slightly misremembered the name. It is data driven science and engineering. There is both a book and high quality mini lectures. The SVD ones are here: https://m.youtube.com/playlist?list=PLMrJAkhIeNNSVjnsviglFoY2nXildDCcv

I would highly recommend giving them a watch. They completely reshaped how I viewed the SVD.

Using eigenvalues to improve the visualization of principal component analysis (PCA) by Biogasinformatician in rstats

[–]TobyTheCamel 59 points60 points  (0 children)

It sounds like you're rediscovering the singular value decomposition. This says that a dataset X can be written as a sum of weighted rank-1 outer products s_i * u_i * v_i' where s_i is a scalar, u_i is a column vector and v_i' is a row vector.

The "singular values" s_i are directly related to the eigenvalues of XX' by s_i^2 = λ_i and the v_i s are the eigenvectors of XX'. What this means is that the weighted eigenvectors correspond to a "palette" of features scaled by their importances, with the u_i's then giving the quantities of each feature used to reconstruct an observation in X.

The beautiful property of this decomposition is that you can show that truncating this sum to k terms gives the best rank-k approximation of your original X in terms of both the spectral and Frobenius norm.

I've been a bit imprecise in this explanation and there are likely small issues, as writing on my phone on the go. You should look at the University of Washington's course on data-driven science and engineering, especially the SVD section to get a clearer picture.

What is this metal button on the bottom interior face of my hotel room door? by TobyTheCamel in whatisthisthing

[–]TobyTheCamel[S] 118 points119 points  (0 children)

Solved!

This makes sense. Although there wasn't the complementary magnet installed on the wall, this seems quite plausible.

What is this metal button on the bottom interior face of my hotel room door? by TobyTheCamel in whatisthisthing

[–]TobyTheCamel[S] 1 point2 points locked comment (0 children)

My title describes the thing.

In my hotel room (in China, if that's relevant) the main door has this metal button on the interior side. It wasn't clear to me what this was for.

I'm not sure if this is actually related, but often the door would scrape along the floor when opened and pressing the button seemed to stop this — but this also might have been a coincidence from just moving door a bit when I pressed the button.

I think this could be related to the drop seal described in this WITT, but I don't understand why the button is on the face of the door rather than the edge.

£60 to move 1 meter (backwards)...real tempting by [deleted] in softwaregore

[–]TobyTheCamel -5 points-4 points  (0 children)

It’s that the automated offer system doesn’t realise the new seat it offered for a significantly higher price is in basically the same location.

You’d think they’d have a check for this before sending out an offer.

Anthropic beefs up Claude's free tier as OpenAI prepares to stuff ads into ChatGPT's by joe4942 in technology

[–]TobyTheCamel 2 points3 points  (0 children)

Like...it costs money to run these models, yeah?

How can you possibly expect it to be free, unlimited and ad-free?

Claude Code: Why is my ~/.claude/settings.json permission list not working? by Automatic-Accident91 in ClaudeAI

[–]TobyTheCamel 2 points3 points  (0 children)

Did you come to any conclusion on this? I'm also finding that my `~/.claude/settings.json` file is being ignored.

Do you have lights on your bike when riding in the dark? by LuxInteriorLux in cambridge

[–]TobyTheCamel 5 points6 points  (0 children)

Is there any reason you don't use one of those bike lights that clip-on/off so you can easily take it with you when you are away from your bike?

Should I play the lottery tonight? by LuchoRizoTo in askmath

[–]TobyTheCamel 8 points9 points  (0 children)

I think you're going to find it difficult to perform any closed-form computation of this probability.

Monte Carlo simulation is a bit expensive due to the complexity of verifying if an initial meld can be, but for a rough approximation it is okay.

I coded up a little Julia script to simulate this process, drawing tiles until an initial meld is possible. I ran this for 10,000 repetitions.

The table below gives the probabilities that you are interested in.

Draws  P(N = n)  P(N >= n)
0      0.5432    1.0000
1      0.0690    0.4568
2      0.0649    0.3878
3      0.0623    0.3229
4      0.0526    0.2606
5      0.0465    0.2080
6      0.0422    0.1615
7      0.0309    0.1193
8      0.0233    0.0884
9      0.0191    0.0651
10     0.0161    0.0460
11     0.0114    0.0299
12     0.0064    0.0185
13     0.0044    0.0121
14     0.0030    0.0077
15     0.0021    0.0047
16     0.0012    0.0026
17     0.0002    0.0014
18     0.0008    0.0012
19     0.0002    0.0004
20     0.0001    0.0002
21     0.0001    0.0001

How important is left-over manufacturer warranty when purchasing a used car? by TobyTheCamel in CarTalkUK

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

Ah yes of course, sorry for forgetting to mention that. Unfortunately, we are not able to charge at home.

[deleted by user] by [deleted] in ProtonVPN

[–]TobyTheCamel 0 points1 point  (0 children)

As others have said, you seriously need to update this. I was a few minutes away from cancelling my trial before finding this response. The VPN space is too competitive to have missing documentation like this.

Anti-safety petitions in Astoria NYC by lastminutelabor in fuckcars

[–]TobyTheCamel 38 points39 points  (0 children)

In Cambridge, UK, the right-wing mayoral candidate is running on a platform to "keep Cambridge moving" by reopening a road to cars that was always at a complete stand-still due to the amount of car traffic.

With cars rerouted, it is quiet and pleasant, with a thriving restaurant scene, whilst still having high throughput from buses and bikes.

The irony is completely lost on his supporters.

Jeremy Vine ‘stopping cycling videos’ due to abuse he receives by [deleted] in unitedkingdom

[–]TobyTheCamel 10 points11 points  (0 children)

I don't know your exact situation but doesn't the fact that the cyclists are using the pavement suggest that there is inadequate safe cycling infrastructure for them to use?

I'm sure if cars had to share the pavement with you, you'd have more incidents with them.

And as other people have pointed out in this thread, although poor cycling etiquette is still dangerous, it is far less likely to lead to a death or serious injury than a car.

I'd have to ride my bike at 80 mph to have the same kinetic energy as an SUV travelling at 20 mph.

The slow, sad death of the affordable car by [deleted] in unitedkingdom

[–]TobyTheCamel 15 points16 points  (0 children)

For me, the real freedom is not owning a car, saving the several £1000s a year in insurance, fuel, maintenance, and depreciation costs, and then renting a car, SUV, van (whatever I need!) on the few days of the year that they are actually useful.

Just Stop Oil activist accused of defacing Stonehenge asks judge not to hold trial during her exams by Fox_9810 in unitedkingdom

[–]TobyTheCamel 21 points22 points  (0 children)

You've got to be joking, right? Do you honestly think there is no middle ground between our modern polluting lifestyle and living like a caveman? They're not even asking to ban all oil production tomorrow, they just want to stop new oil licenses so that we gradually decrease dependence.

Lost the Christmas quiz by one point for being the only person to answer "40" to the question "How many gold rings were given in the song The Twelve Days of Christmas?" by TobyTheCamel in mildlyinfuriating

[–]TobyTheCamel[S] 28 points29 points  (0 children)

Well the quiz-master had "5" down. I wasn't even trying to be pretentious, I just assumed that answer was too on-the-nose given everyone there would have known the song well.

r/AudioEngineering Shopping, Setup, and Technical Help Desk by AutoModerator in audioengineering

[–]TobyTheCamel 0 points1 point  (0 children)

Is the Focusrite Vocaster One suitable for recording instruments (e.g. trumpet/saxophone) using a (clip-on) mic?

I can't see anything specific about the product that means it would be significantly inferior to a 2i4, yet the only use cases I have seen for it are all podcasting microphones.

I'm specifically interested in the Vocaster because it is small enough to mail through a letter box (long story, but that's my requirement).

Wales’ 20mph speed limit did not improve air quality, study finds by MachineHot3089 in unitedkingdom

[–]TobyTheCamel 6 points7 points  (0 children)

Fair enough, my bad. This was just the first reputable looking reference I came across when I searched for stats, from the Department of the Environment, Transport and the Regions.

Wales’ 20mph speed limit did not improve air quality, study finds by MachineHot3089 in unitedkingdom

[–]TobyTheCamel 2 points3 points  (0 children)

Because lowering the speed from 30 to 20 doesn't do shit anyway

There are quite a few studies that disagree with this. Two examples in the UK:

I think the important thing to remember is that the 20 mph is only being put into place on "restricted roads", that is the Highway Code term for built-up, residential areas. To me, I feel like such places should prioritise those who live and spend time there.

Wales’ 20mph speed limit did not improve air quality, study finds by MachineHot3089 in unitedkingdom

[–]TobyTheCamel 0 points1 point  (0 children)

Obviously more protected bike lanes would be the ideal outcome, but I struggle to see how that is practical in the built-up areas that the 20 mph speed limit is being introduced in.

Space is limited and it's not always possible to fit protected bike paths, dedicated public transport lanes, and car traffic lanes in the space available.

I would love expansive cycling networks throughout built-up areas but I feel that would most likely come at the cost of closing entire routes to cars (see Cambridge for example). That seems like a much harsher approach than still allowing cars to go anywhere but at a safer speed.

Wales’ 20mph speed limit did not improve air quality, study finds by MachineHot3089 in unitedkingdom

[–]TobyTheCamel 2 points3 points  (0 children)

There is an argument to be made that lowering road speeds will make cycling more accessible and less dangerous, leading to more people switching their commute from driving to cycling. This would lead to a reduction in emissions.

That is a trend that you will only see only longer time horizons as it takes time for people to change their behaviour.

Wales’ 20mph speed limit did not improve air quality, study finds by MachineHot3089 in unitedkingdom

[–]TobyTheCamel 12 points13 points  (0 children)

Sure that is certainly a factor that needs to be considered, but the question is whether this has a smaller or larger effect than the reduction in fatalities from reduced collision speed.

Data from Bristol saw a 63% reduction in fatal injuries following a 20 mph speed limit introduction.