Find the three mistakes with this package design. All photos by George Taniwaki
by George Taniwaki
I bought a box of assorted hose clamps and was excited when they arrived. I opened the box but could not easily find the 3/4-inch clamp I needed (see photo above). The guide seems to indicate they should be in the right-most slot and there should be six of them. Instead, the slot contains the 1-inch clamps and there are only two of them.
What’s up with that? Then I noticed the three annoying problems. Do you see them too? First, there are five clamp sizes in the box, but there are only 4 slots. The slot second from the left contains two different sized clamps.
Second, even within the limitations of not having the same number of slots as sizes, the clamps are not sorted in the same order as the guide. The sizes in the guide are listed as 7/8″, 1″, 1/2″, 5/8″, and 3/4″. The sizes in the slots are 5/8″, 1/2″ and 7/8″, 3/4″, and 1″. None of the clamps in the guide line up to a slot. Further, neither the guide or the clamps are sorted in size order.
Finally, the guide contains pictures of clamps. They do not match the actual clamps. The images of the 7/8″, 1″ and 1/2″ clamps seem correct, but the images for 5/8″ and 3/4″ seem to be reversed.
Bad design makes me anxious. My solution was to put the hose clamps in a Plano fishing tackle box in size order, label the slots, and throw away the original package. I even tossed in a 1-1/2″ clamp I found in my parts drawer.
There, fixed it
* * * *
A similar problem occurred with an order of assorted springs I bought on Amazon. They came delivered in an identical size tray as the hose clamps. But this tray has seven slots instead of just four. Unfortunately, the package contains 29 different size springs, so there still more sizes than slots.
So many springs, so few slots
Springs are specified by their wire size, diameter, and length. For instance 0.035″x0.25″x0.5″ indicates the spring is made from a wire with a diameter of 0.035″ wound into a spring with diameter of 0.25″ and a length of 0.5″.
Ugh. The springs are sorted into slots by their least useful dimension, length. Length is not useful because you can easily use a pair of wire cutters to shorten a spring that is too long. A much more useful way to sort springs is by wire diameter and spring diameter.
Also, like the pictures on the hose clamps guide, the pictures on the spring guide do not match the springs specified. Also, the pictures of the springs on the guide are useless. It appears that all seven pictures are identical, although the two on the left are reduced in size.
Again, my solution was put the springs in a Plano tackle box sorted by wire diameter and then spring diameter (mixing different lengths in the same slot), label the slots, and throw away the original package.
Another bad package fixed. My anxiety alleviated
* * * *
Incidentally, you can estimate the springiness of a spring using the following formula. Start with Hooke’s law:
F = kx
The spring constant, k, can be estimated by
k = G*d4/(8*D3*n)
where G is shear modulus of the spring material (about 11×106 lb/in2 for steel) d is diameter of wire D is mean diameter of spring (= outside diameter of spring – wire diameter) n is number of active coils (coils at ends usually are not active, so = total coils – 2)
A handy calculator with explanation can be found at eFunda.com (membership required).
Captain Kirk is filled with deep regret. Still from Chris Pine on YouTube
by George Taniwaki
There are not very many popular culture references about getting a degree in chemical engineering. But there should be. I’m only aware of three. That’s not enough to fill a blog post so I added a few extra.
Spidey Bells–2018
If you watch a Marvel movie all the way to the end, hidden in the credits are wonderful Easter eggs that tend to be somewhat unrelated to the movie.
In the opening of the 2018 animated movie Spider-Man:Into the Spider-Verse, the first Peter Parker, voiced by Chris Pine, says that he has recorded an album and is selling some related merchandise. At the end of the movie, as the credits roll, one of the songs from that supposed album plays. It is a Christmas carol called Spidey Bells (A Hero’s Lament). In the song’s middle bridge, he reveals a dark secret:
“Why did I agree to do this stupid song? I have a degree in chemical engineering”
Who knew? We know that Peter Parker dropped out of college to become a photographer for the Daily Bugle. But until now, we didn’t know what his major was.
Wildside–1991
Long before Mark Wahlberg became famous as a restaurant franchisor, he was known as Marky Mark, the lead singer of the Funky Bunch. They had a hit in 1991 with a cover version of Lou Reed’s Walk on the Wild Side. Their version includes samples from the original but had different lyrics and was retitled Wildside. The song include these great lines:
“Cause deep inside Annie had aspirations Besides that she had expectations Wanted to be a chemical engineer”
Unfortunately, it does not end well for Annie, who is played by an uncredited actress in the music video.
A ChemE major takes a hit on the wild side. Still from Marky Mark on YouTube
The Future’s So Bright, I Gotta Wear Shades–1986
In 1986, the U.S. band Timbuk 3 released their debut album which contained the hit song The Future’s So Bright, I Gotta Wear Shades. The music video got extended play on MTV, back when MTV consisted almost entirely of music videos in rotation. The video features a burro, the mascot for my alma mater, Colorado School of Mines. The song refers to nuclear science rather than chemical engineering, but really, that burro and the harmonica solo.
Incidentally, The Future’s So Bright, I Gotta Wear Shades is the title of a 1990 episode of ALF, a television sit-com.
The future’s so bright I put a TV on a burro. Still from Timbuk3 on YouTube
Doonesbury–1981
Just a few weeks before I graduated from college in 1981 there was a Doonesbury cartoon that became wildly popular among my classmates. It became the buzz at school because it pointed out how crazy high the demand for chemical engineers had become.
Earlier in the year, all of us seniors were flying around the country interviewing with the major oil companies and receiving job offers from every company we talked to. It was madness. I interviewed with eight firms from California to Louisiana and received offers from all of them at starting salaries that exceeded what my parents made combined.
BD is tired of coddling lazy chemical engineers. Image from GoComics.com
The Graduate–1967
The granddaddy of all chemical engineering pop culture references is a famous scene in The Graduate, the 1967 movie directed by Mike Nichols (who won the Academy Award for his work) and co-written by Calder Willingham and Buck Henry. In the scene Mr McGuire (Walter Brooke) advises young Ben (Dustin Hoffman) that that there is a great future in plastics. However, he doesn’t say you have to know anything about chemistry to reap the rewards of that future.
“I just want to say one word to you.” Still from Movieclips on YouTube
Space Oddity–2013
And finally, I want to point to a 2013 cover version of David Bowie’s Space Oddity performed by Canadian astronaut Chris Hadfield while onboard the International Space Station (ISS). This song has nothing to do with chemical engineering and Mr Hadfield is a mechanical engineer, not a chemical engineer. I just like the song and the visuals of the earth zipping by in the background of this music video.
I’m glad David Bowie had an opportunity to see this before his death just over two years later. In fact, without his intervention, the video may not have been made available (Independent Jan 2016).
According to NASA, Mr Hadfield is the first and so far only astronaut to record music videos in space.
Can you hear me major Tom? Still from Canadian Space Agency on YouTube.
This post describes the final six classes I took to obtain the Microsoft Artificial Intelligence Certificate. Four were required and two were optional. For a description of the first six classes I took, see this May 2019 blog post.
Reinforcement learning assumes a problem can be modeled as a Markov decision process. There is a set of discrete states (S), an agent that can perform a set of actions (A) selected from a set of decision policies (Π). Each possible action will result in a reward (R) and a new state (S’). The goal is to find the optimum policy π(s) for all s in S or to determine if a given policy is optimal.
I have an undergraduate degree in chemical engineering where I learned about control theory and Markov chains. However, that coursework only covered analog PID controllers. The topics in this class were new to me and so it was slow going.
Time: 16 hours for 10 modules
Score: Missed 7 knowledge check questions early on, then slowed down and got the rest right. Missed 3 lab questions. Final score of 91%
This class was pretty awful and I’m glad I didn’t pay for it. It consists mostly of text displayed in the edX courseware. It would have been helpful to if video or audio lectures were included to show voice recognition in action. The text itself was a split into multiple web pages containing embedded MathML equations, making is unsearchable. I ended up copying and pasting all the text into a Word document.
The lab assignments in this class are provided as Python files designed for Linux. Some labs require a Linux shell and would not run in Visual Studio on Windows. I would expect instructors in a Microsoft sponsored course to design lessons that could run on Windows. Simply putting the code in Jupyter notebooks would have made it easier to read and to work with.
Some labs require a Python package called OpenFST that does not compile with the latest build tools available from Microsoft. Again, I would expect instructors to design lessons that could run on Windows.
Machine translation has evolved from conventional statistical machine translation (STM) that uses hand-coded phrase pairs, to neural machine translation that use deep neural networks to create end-to-end sequence probabilities to translate entire sentences at a time.
This is the last class for the certificate. Similar to the capstone for the Microsoft Data Science certificate, it is a month-long project designed as a contest hosted by datasciencecapstone.org. Unlike the capstone class for the Data Science certificate, there is no report, the grade is based solely on the contest score. For a description of the April 2019 contest, see this [future date] blog post.
I used Microsoft’s cognitive neural toolkit (CNTK) package for Python for my solution. I had a hard time debugging my code. CNTK is not as popular as Google’s Tensorflow, so searching error messages on the web gives few results.
Time: 30 hours for single assignment
Score: Log-loss error of 0.22 for a final score of 95%
Final certificate
Below is my certificate of completion for the Microsoft Professional Program, Artificial Intelligence Certificate, guid b5499a34-5674-4993-bfe9-66ed514f96db.
* * * *
As an aside, starting in January 2019, edX has changed the way it handles students who audit courses. To encourage more students to pay for its courses, edX now limits access to course content to 30 days after enrollment. After 30 days, you lose access, even if you have posted items on the discussion board. Further, it eliminated access to the assessment content (quizzes, labs, and exams) entirely unless you pay. This sucks.
I hope Microsoft will provide funding to edX to allow audit students to participate. Or Microsoft should stop working with edX and move its content to another MOOC platform that supports audit students. I’ve paid over $2000 to participate in the edX courses. But I always audit a course before paying for the content. I think the try-before-you-buy model is essential to get students to trust they will get their money’s worth. Preventing audit students from seeing the assessment content will make it difficult to gain their trust in the value of that content.
Westbound on Evan at Santa Fe. Photo by James Taniwaki
by George Taniwaki
Take a look at the intersection above of two busy streets in Denver. The photo was taken from the left-hand turn lane of westbound W. Evan Av. turning to southbound S. Santa Fe Dr. From this angle you cannot see the on-ramp you are turning onto. It is obscured by a concrete jersey barrier.
In fact, the end of the barrier is separate from the rest of it. One gets the impression that it was originally connected to the rest of barrier but was accidentally hit, forcing it to be perpendicular to the remaining section. This creates the illusion that there is no road behind it, and you should turn left before the barrier, not after.
If you do turn left into the lane on the east side of the barrier, then you will be headed the wrong direction into oncoming traffic on Santa Fe Dr. This is really dangerous.
Synthetic aerial view of same intersection. Image from Google Maps
A better view of the intersection can be seen using the 3D tilt view feature of Google Maps. Looking at the synthetic aerial view, one can see that the intersection is directly over Santa Fe Dr. This allows large volumes of traffic to flow without taking up a lot of real estate. This configuration is called a single-point diamond interchange.
Two changes would probably make this intersection safer. First, the end of the jersey barrier should be a continuous piece of rounded concrete, not jagged, so the user can imagine there is a traffic lane behind the barrier. Second, the barrier should be set back about 3m (10’) so that a driver in the left-hand turn lane can clearly see there is a paved surface beyond the barrier before entering the intersection.
I don’t know how many accidents happen at this intersection and I don’t know how the state of Colorado measures the social costs of traffic accidents. But if there are ten accidents (some with injuries) per year here, and the lifespan of the interchange is twenty years, then it is probably worth spending the one million dollars I estimate it would cost to make the suggested modifications to this intersection.
* * * *
[Update: There was a paragraph here describing a fatal accident on Santa Fe and Dartmouth involving a driver going the wrong direction. However, that accident is unlikely to have been caused by a driver entering the highway at Santa Fe and Evans. I have deleted the paragraph.]
Righty tighty, lefty loosy, when viewed using a mirror. Photo by George Taniwaki
by George Taniwaki
On a visit to the University of Washington Medical Center laboratory, I was asked to provide a urine specimen. As I approach the restroom, I notice the door is about 1m (40″) wide to accommodate a wheelchair, which is good.
Both the outside and inside of the restroom door have solid metal lever handles. You push down to open the door. Levers are easier to grip than knobs and are now the preferred method to open and shut doors. Also good.
Once inside the restroom, there is an easy to grip lever above the handle that controls a lock for privacy. Good again.
As shown in the image above, the hinge for the lever is on top of a circular escutcheon and it flips left or right. But which way locks the door?
The rotation direction to lock the door is ambiguous. Apparently, there have been complaints, so someone printed a sign and taped it above the lever. But the sign is somewhat ambiguous as well since it is posted above the hinge, but the lever is below it.
Finally, it seems one of the lab techs used a grease pencil to indicate the direction to turn the lever to lock the door. But the grease is now smeared and illegible. The hand-drawn arrow points in the direction to lock the door, meaning the bottom toward the door edge or a counterclockwise turn. This is not standard in the U.S. and the likely source of confusion. Oh well, good thing I don’t have a shy bladder and don’t care if someone accidentally walks in on me.
Oddly, the convention to rotate a lock lever so that when the top of the latch or key points toward the door edge to mean the door is locked is not universal. In Japan, most locks are installed so that when the bottom of the latch or key points toward the door edge it is locked. You may notice this on some Japanese car doors.
* * * *
Incidentally, this reminds me of another door affordance issue. Ever have trouble knowing if a door opens toward you or away from you? To learn more about this design problem, read this blog post from 99% Invisible. Also watch the video. And read Don Norman’s book, The Design of Everyday Things.
[Update: Clarified the description of locks in Japan.]
Google rewards reputable reporting, not left-wing politics, from The Economist
by George Taniwaki
A few months ago The Economist added a new feature to its back section called Graphic detail. It’s a pleasure to read because it nearly always contains bivariate plots where the x-axis is something more interesting than the date.
This week’s entry does not disappoint. It is entitled, Seek and you shall find and contains two charts (see above) with interesting x-axes. The charts analyze the impact of Google news search on the traffic a news source receives. It uses two independent measures, Accuracy score and Ideology score to rate different news sources. Accuracy and bias were determined using data from Adfontesmedia.com and Mediabiasfactcheck.com.
Many people claim that Google favors liberal news sources to the detriment of conservative views. Google claims it has a set of outside reviewers who check news sources for accuracy and reach. Point of view is not considered. However, one could imagine that a news source that has a strong point of view may report facts to match a point of view and that would reduce accuracy. As can be seen on the chart on the left, news sources with a strong ideological bias (darker red and blue dots) tend to have lower accuracy scores than less biased sources. I encourage you to go to the website because the data is interactive.
The dependent y-axis is the share of web traffic that comes from search engines. This is a bit problematic since if users believe that Google’s results are biased against their favorite news sources, they will visit it directly without using a search engine. Nonetheless, the data shows that search engine (mostly Google) share of web traffic increases with accuracy, not with ideology. That is, the plot on the left shows a linear relationship while the right plot does not.
Expected v. Actual
A separate experiment confirms the results. The Economist built a model to predict the number of news results appearing in 37 publications should receive from Google’s search engine based on their accuracy and their reach. It then compared the model results to actual search results on a “clean” computer using “a browser with no history, in a politically centrist part of Kansas.” (Why Kansas, you wonder? I’m guessing that is where the author lives.)
Again, no bias was detected. The difference between left and right are small and could be due to how they are defined, time of study, keywords searched, or other factors. The story is an excellent example of combining data from multiple sources, programming a bot to collect data, and visual display of statistical analysis.
In a paper authored by Erin Cooley, et al., (J. Exper. Psy.: General, Apr 2019), (subscription required), there is a pair of line charts, reproduced above. I found them hard to interpret. There are 3 issues.
Even though there are only 8 data points, the data is split between two charts making it difficult to compare Sympathy scores between the treatment groups (those who received the white privilege lesson vs those who did not)
The x-axis in the charts displays conservative vs liberals. Study subjects did not change categories during the study. They should not be connected with a line. Bar charts would be better than line charts to display their Sympathy scores
The x-axis should be the treatment used in the study. If the treatment groups are randomly selected, then the Sympathy scores can also be interpreted as before and after treatment and a line can connect them
Explanation of data
As I explain in a May 2019 blog post, the data is a result of two studies with eight sample cells, each represented by one of the points in the charts above. There are three pairs of groupings shown in Table 1.
Social group – based on a questionnaire, study subjects were classified as either social conservatives or social liberals
Treatment – some study subjects received a lesson on white privilege and others did not
Race story – some study subjects read a story of a poor black man and some read a story of a poor white man
Social group
Treatment: Received white privilege lesson
Race of poor person in story
Average sympathy score
Conservative
No
Black
60
Conservative
Yes
Black
61
Conservative
No
White
53
Conservative
Yes
White
59
Liberal
No
Black
72
Liberal
Yes
Black
76
Liberal
No
White
71
Liberal
Yes
White
60
Table 1. Average Sympathy scores by Social group, Treatment, and Race in story
The improved chart
Using the data from Table 1, I created my own version of the chart, shown in Figure 2.
Figure 2. Improved line graph showing effect of white privilege lesson on sympathy scores
Let’s compare the updated chart in Figure 2 to the original chart in Figure 1.
All eight data points now fit on a single chart, making comparisons easier.
The main point of this research was to determine the effect of providing a lesson on white privilege on sympathy scores. The new chart sets the horizontal axis to show the treatment categories, those who received the lesson on white privilege and those who did not
A line connects the cases to show the slope, positive to indicate the lesson increases sympathy to a race or negative to indicate the lesson decreases sympathy to a race
Finally, my chart has a smaller scale (50 to 80 instead of 50 to 100), fewer rule lines, and no box around the legend. All reduce clutter so you can concentrate on the data