Showing posts with label Visualization. Show all posts
Showing posts with label Visualization. Show all posts

Friday, March 6, 2020

Fun with numbers (and other geekage) for March 6, 2020

More collected tweeterage and other social media detritus.


MSNBC doesn't care about getting numbers right


And water is wet and fire burns... Okay, this one is particularly egregious. It starts on twitter, with a person who doesn't understand the difference between millions and trillions:


But then, Brian Williams and NYT Editorial Board member Mara Gay put it up in a discussion of Bloomberg's failed presidential bid, and agree with it (video here):


The problem here isn't so much that anchors and producers at MSNBC can't do this basic math, it's that they don't care enough about getting the numbers right to ask a fact-checker to check them. Note that they had the graphic made in advance, and this was a scripted segment, so they didn't just extemporize and made an error. They didn't care enough about the numbers to check them.

And, given their response, they still don't care. This is sad.



A puzzle that's going around, solved correctly


Saw this on Twitter, and a lot of snark with it:


Apparently some people have difficulty with this puzzle, drawing a line in B that's parallel to the bottom of the bottle (perhaps they think the water is frozen?). But many of the people who mock those who draw that parallel line draw a horizontal line that is too low, creating a triangle.

Here's the correct solution:


As with all math problems, even very simple ones like this, the right approach is to do the math, not to try to guess and hand-wave your way to a probably-wrong solution.



In their haste to badmouth Millennials, finance researchers misstate their results


I saw this "Millennials are bad with money" article on Yahoo Finance, got the original report (PDF), and found a glaring problem with their data. (The table notes make it clear they're saying a conjunction, 'AND,' not a 'GIVEN THAT' conditional.)


My guess is that despite the table notes and the 'AND,' what they're measuring is the proportion of people who answered the three questions correctly GIVEN THAT they self-described as having high finance literacy, I.O.W. that's 19% of the 62%, not 19% of the 9041 Millennials. That would make the population in the conjunction 1065, whereas the number of people who got the three right answers is 1447; so about 4% of Millennials are money-smart[ish] but think they aren't.

But if you're going to get snarky about other people's issues with money, maybe write your tables and table notes a bit more carefully…

About the financial literacy of Millennials, these were the three multiple-choice questions:
Suppose you had $\$100$ in a savings account, and the interest rate was 2% per year. After 5 years, how much do you think you would have in the account if you left the money to grow? Answers: a) More than $\$102$; b) Exactly $\$102$; c) Less than $\$102$; d) Do not know; e) Refuse to answer. 
Imagine that the interest rate on your savings account was 1% per year and inflation was 2% per year. After 1 year, how much would you be able to buy with the money in this account? Answers: a) More than today; b) Exactly the same; c) Less than today; d) Do not know; e) Refuse to answer. 
Please tell me whether this statement is true or false. “Buying a single company’s stock usually provides a safer return than a stock mutual fund.” Answers: a) True; b) False; c) Do not know; d) Refuse to answer.
These questions are extremely simple, which makes the low incidence of correct answers troubling.



Science illustration lie factor: 71 million


How bad can science illustrations get? Let's ask the Daily Express from the UK:


We don't need to calculate to see that that meteor is much larger than 4.1 km, but if we do calculate (I did), we realize they exaggerated the volume of that meteor by just a hair under SEVENTY-ONE MILLION-FOLD:


To put that lie factor into perspective, here's the Harvester Mothership from Independence Day: Resurgence, which has only a lie factor of 50 (linear, because that's the dimensionality of the problem here):




Fun with our brains: the Stroop interference test


From a paper on the effect of HIIT and keto on BDNF production and cognitive performance that intermittent fasting and low carb advocate (and responsible for at least 50% of my fat loss) P.D. Mangan shared on twitter, we learn that people with metabolic syndrome show improvement on their cognitive executive function when on a ketogenic diet and even more if interval training is used.

To measure cognitive executive function they use a Stroop interference test, which is a fun example of our brains' limitations, so here's an example:


The test compares the speed with which participants can state the colors of the words in the columns inside the box: on the left the color and the word are congruent (the word is the name of the color of the text for that word), on the right the color and the word are incongruent (the word is the name of a color, but not the color of the text for that word).

Other than color-blind people, almost everyone takes less time and makes fewer mistakes with the congruent than the incongruent column. That's because the brain CEO (executive function) has to stop the reading and process color in the case of incongruent. This is easy to see if one compares the test with the two extras: speed of the incongruent is about the same as that of reading the words in Extra 1 column, while the speed of stating the colors of the Extra 2 column is much faster (and less error-prone) than that of the incongruent column.

(The paper also measures BDNF, the chemical usually associated with better executive function, directly, by drawing blood and doing an ELISA test; but it's interesting to know that diet and exercise may make you a more disciplined thinker and to see that in the numbers for an actual executive function test, not just the serum levels.)




Technically, Target isn't lying, it's 4 dollars off



But I've never seen that $\$$11.99 'regular' price for this coffee, which would make it the only coffee in the entire aisle not to have a regular price of $\$$9.99. All the other sale signs say 'Save $\$$2,' for what it's worth…



Destin 'Smarter Every Day' Sandlin visits a ULA rocket factory



And, on twitter, ULA CEO Tory Bruno gets a dig into SpaceX's Texas operations:




Live long and prosper!

Thursday, January 30, 2020

Fun with numbers for January 30, 2020

Some collected numerical fun I had on twitter since the last post.

Science illustration fail: meteor tails in outer space



Why oh why do these representations always put meteor tails on objects far off the exosphere? That tail extends past 3000 km altitude, with the fireball center at around 1400 km. Little atmosphere there, fellas…

Also, that meteor (assuming it's the darker circle inside the fireball) is well over 300 km in diameter; even losing a big chunk of its mass in the atmosphere, it would reach the ground much larger than the 7 km the article says.

Source: https://www.cnet.com/g00/news/asteroid-that-smashed-earth-2-229-billion-years-ago-may-have-thawed-the-planet/



Star Trek: Picard nonsense: solar panels on/over the Golden Gate Bridge



I got this image, from the new show Star Trek: Picard, requiring unattainable suspension of disbelief — as if there was ever fluid traffic, let alone no traffic, on the GGB.

Oh, and also, solar roadways?! Really?!

I assume the Picard writers are from Hell-A, since anyone from the Bay Area would know that the GGB is fogged-in most days, so putting solar panels on it would be even stupider than on other roads, and that's saying something...

Okay, some have suggested panels are above the road. At 100% efficiency, 4 kWh/(m$^2$ * day) San Francisco insolation, and 75,000 m$^2$ deck area for the GGB, that's a 12.5 MW (average power) generator, and for that we cover one of the best views of the city?! In the 24th Century?!

Anyone who drives East on the Bay Bridge gets the transition from claustrophobic (West of Yerba Buena Island) to open space (East of YBI). Covering the GGB, especially as a pedestrian park, would be a terrible decision, more so for a puny 12.5 MW power rating.



Corona virus causes an epidemic of bad economics


What is it about supply and demand that is difficult to understand for otherwise intelligent people?


Two of many reasons why raising prices in these circumstances is good:

Some of the people who are reminded of the need for N95 masks, hand sanitizer, and disposable gloves during an emergency might realize that they shouldn't be unprepared in the future; if there's no enforced rationing (terrible thing to do, rationing) and the prices don't rise, these people may buy more than they need now, to address their previous failure to prepare. Therefore, raising the price will deal with some of this behavior, making supplies available to more people.

Expedited delivery (to the retailer) costs more than regular delivery. Some of these deliveries were made with an assortment of goods, many of which were high-margin (say bottles of 30-year-old scotch) that absorbed most of the cost of the delivery. Delivering truckloads of low-margin items like sanitizer and N95 masks alone (no expensive items to share the cost of the delivery) means the cost per unit is much higher.



California electrical consumption in nuclear explosions per year


Impressing people who have trouble with division, for emotional responses. (Not me.)

There's a video circulating on Twitter (not linking to it, for reasons that will become obvious) that describes the effect of AGW in terms of nuclear explosions per day. This is an excerpt of a much longer Thunderf00t video, which includes his customary numerical errors and bombast, but more importantly, and worse for a purported scientist, uses the imagery of nuclear destruction to create emotional responses to serious issues that demand cold analysis.

To show how ridiculous the imagery is, I calculated the equivalent of California's 2018 electricity consumption* in nuclear (fission and fusion) explosion units:


The point, which might escape some of the audience for that video, is that energy is energy and power is power; 45 Hiroshima-like nuclear explosions per day is just another way of saying 33 GW. Using such imagery is an appeal to emotion, not something a scientist should do.

Draw your own conclusions.

- - - -
* AEMO (Australian Energy Market Operator) has near real-time data, California, land of high-tech, releases information for a given year in late-June the following year.



Live long and prosper.

Saturday, November 9, 2019

Fun with numbers for November 9, 2019

Science illustrations made by people without quantitative sensibility


From a tweet I saw retweeted by someone I follow (lost the reference), this is supposed to be a depiction of the Chicxulub impact:


My first impression (soon confirmed by minor geometry) was that that impact was too big; yes, the meteor was big for a meteor (ask the dinosaurs…), but the Earth is really really big compared to meteors. Something that created such a large explosion on impact wouldn't just kill 75% of the species on Earth, it would probably kill everything on the planet down to the last replicating protein structure, boil the oceans, and poison the atmosphere for millions of years.

Think Vorlon planet-killer, not Centauri mass driver. ðŸ¤“

Using a graphical estimation method (fit a circle over that segment of the Earth to get the radius in pixels, so that we can translate pixels into kilometers), we can see that this is an overestimation of at least 6-fold in linear dimensions (the actual crater diameter is ~150km):


6-fold increase in linear dimensions implies 216-fold increase in volume (and therefore mass); using the estimated energy of the actual impact from the Wikipedia, the energy of the impact above would be between $2.81 \times 10^{26}$ and $1.25 \times 10^{28}$ J or up to around 22 billion times the explosive power of the largest H-bomb ever detonated, the Tsar Bomba.

The area of the Earth is 510.1 million square kilometers, so that's 43 Tsar Bombas per square kilometer --- which is a lot, considering that the one Tsar Bomba that was detonated had a complete destruction radius in excess of 60 km (or an area of 11,310 square kilometers) and partial destruction (of weaker structures) at distances beyond 100 km (or an area of 31,416 square kilometers). And, again, that's 43 of those per square kilometer; so, yeah, that would probably have been the end of all life as we know it on Earth, and I wouldn't be here blogging about it.

A more accurate measurement, using a bit of trigonometry (though still using Eye 1.0 for the tangents):


Because of the eye-based estimation, it's a good idea to do some sensitivity analysis:



(Results are slightly different for the measured case because of full-precision calculation as opposed to dropped digits in the original, hand-calculator and sticky notes-based calculation.)

It gets worse. In some depictions we see the meteor, and it's rendered at the size of a planetoid (using the graphical method here too, because it's quick and accurate enough):


To be clear on the scale, that image is 442 pixels wide, the actual Chicxulub meteor at the same scale as the Earth would be 1-7 pixels wide, which is smaller than the dots in the dotted lines.

For additional context, the diameter of the Moon is 3,474 km, so the meteor in the image above is almost 1/3 the diameter of the Moon (28% to be more accurate) and that impact crater is over 1/2 the diameter of the Moon (60% to be more accurate).



Solar energy density in context



2 square kilometers for 100 MW nameplate capacity… and they're in the shade in that photo, so not producing anything at the moment.

Capacity factor for solar is [for obvious reasons] hard bound at 50%. For California, our solar CF is 26%; let's give Peter Mayle's Provence slightly better CF at 30%, and those 2 square km of non-dispatchable capacity become about 1/20 of a single Siemens SGT-9000H (fits in 1200 square meters with a lot of space to spare for admin offices and break room, works 24/7).




Nano-review of R Programming Compiler for the iPad



Basics: Available on the iOS app store; uses a remote server to run the code, so must have a net connection. Free for the baseline but seven dollars for plots and to use packages, which I paid. The extended keyboard is very helpful considering the limitations of the iPad keyboard. (Also runs on the iPhone and the iPod touch, though I haven't used it on them yet.)

I wouldn't use it to develop code or even to run serious models, but if there's a need to do a quick simulation or analysis (or even as a matrix calculator), it's better than Numbers. Can also be used offline to browse (and edit) code, though not to run it.

The programmer-joke code snippet in the above screen capture run instantly over a free lobby internet in a hotel conference center, so the service is pretty efficient for these small tasks, which are the things I'd be using this for.



Some retailers plan to eat the losses from tariffs


From Bain and Company on Twitter:


My comment (on twitter): Yeah, these are well-behaved cost and demand functions so when a tariff is added to the cost, typically the quantity drops and the price rises, unless there's some specific strategic reason to incur short-term opportunity costs.

Rationale (from any Econ 101 course, but I felt like drawing my own, just for fun):


Note that Bain's breakpoint at 50% of the tariff is the solution to the problem under linear demand with constant marginal cost, but other shapes of demand can make that number much bigger, for example, this exponential leads to 74% (numbers rounded in the diagram but not in the computation):


The demand function is nothing awkward or surprising, just a nice decreasing exponential:


On the other hand, if the marginal cost decreases with quantity, particularly if marginal cost is strongly convex, there's a chance the actual price increase from a tariff is higher than the tariff, even with linear demand:



Note that this is different from lazy markup pricing. Lazy markup pricing always raises the price by more than the tariff, so in places where such outdated pricing practices [cough Portugal /cough] are common, tariffs have a disproportionate negative impact on the economy and general welfare.



Late non-numerical entry: Another news item based on not understanding the life cycle of technologies

From Bloomberg (among many others) we learn that there's a new solar energy accumulator technology, and as usual the news write it up as if product deployment at scale is right around the corner, whereas what we have here is a lab testing rig… that's a lot of steps before there's a product at scale. And many of those steps are covered with oubliettes.