Showing posts with label science. Show all posts
Showing posts with label science. Show all posts

Friday, May 6, 2011

Whiskey Tango Friday: Deep Physics and Analogies

XKCD does an excellent job illustrating a huge problem one encounters when trying to explain theoretical work: simplifying how the world works for explanation to the lay person through the use of analogy often robs the listener of true depth and complexity of the situation. True understanding of the world takes years of dedicated study; there are no short cuts.



Expanded upon in great detail by Richard Feynman (especially at the six minute mark):



One of the greatest theoretical courses I ever took was a graduate level electrodynamics course. The entire class was chalk and chalkboard for 3 hours a week. The professor began with Maxwell's equations and moved through derivations until we had two equations that described the combination of slowly varying, quickly diminishing electric and magnetic fields and the rapidly varying fields that propagate through space- light. It was one of the most enlightening moments of my life, and it took years to arrive at this point. I had taken many courses in physics and upper level math, but it culminated to this one moment in time when I actually understood light. I could do my best to use analogies to put this description of the world in terms that someone without a deep mathematical background could grasp, but I would be robbing them of the truly transcendent moment of deep comprehension.

This is a great problem in physics: it is nigh-impossible to impart the depth or appreciation of the knowledge gleaned from this discipline because of the background required to truly understand it. It must be emphasized that this is not a slight on anyone- the smartest people in the world can not tackle these issues without the proper tools.

Monday, February 14, 2011

Good Internet Monday: Put It to the Test

l bought TMBG's "Here Comes Science!" album for my (at the time) 2-year old daughter only to find that there are a number of songs that should be required listening for adults. Case in point: a song that reminds us that we do not need to rely on intuition, gut reaction, or that most loathsome phrase, "common sense", in order to evaluate things. Science gives us a framework to test ideas in a detailed, conclusive fashion.



If more people tested the beliefs they hold concerning science, religion, and politics, I would have a lot less material for this blog.

Sunday, February 13, 2011

No Haven for Science, Part 2


When I receive an email like the one I shared in my previous post, I can't help but reply to it in some capacity. The difficulty with this particular message is that I don't know what the person who shared the doomsday story (from here on out, I'll refer to him as "Carl") is looking for -- is he just whipping up trouble on LANL's climate mailing list, or does he want a serious answer? After contemplating possible intents, I realized there was only one way to respond!
And yes, that was a "reply-all".

The next day, I received his response to my rather brash inquiry. Here it is in all its verbatim, sic glory:

I don't know [Spacecataz] it sounds as reasonable a cause for the storm changes as saying "CO2 did it." What if it is a mixture of both. Changes in magnetic flux causing increases and decreases in solar energy. Could it be the reason for the model and reality differences. What if the the global warming science and NASA sciences are stuck in own little boxes and neither can look at the forest.

Just saying! I am a cause and affect Engineer and maybe we are just experiencing something that happens. Just think what the knee jerk reaction would be of our government, and our science today if we around during the dust bowl years of the 30's. We would still be riding horses, no power plants would be built, no industry. This is what I'm seeing happening. Something less happens today and we (well China does anyway) build wind turbines and solar collectors, and ridicules light bulbs to fix it. Like riding horses neither of these industries will do anything to help and history will show that we were enlightened fools.

I will let get back to work. I've got to continue making sure there is a [job related stuff about vacuum chambers]. Just with that little bit of energy we move oceans of air. It is amazing why the earth atmosphere is just not in a huge storm.
["Carl"]


TL:DR -- Yes, he is quite serious.

Thursday, March 11, 2010

Computational Science and Reproducibility - Part 1

When developing numerical computer models with which to do science, an easy trap to fall into is creating an experimental environment that makes it very difficult to reproduce results from an earlier time. This problem is articulated very well by the people over at ArsTechnica, but given my every day experience with this challenge, I thought I would share my perspective here.

Depending on the model's complexity and the rate of development, it can become challenging to reproduce a simulation that was performed two years ago or one that you performed just two hours ago. This may sound surprising, but those who depend on such models understand how rapidly these situations arise. All of these things (and more) can change between one run and a subsequent, seemingly identical run:
  1. The source code changes in a seemingly innocuous way. A change for efficiency or to improve the appearance of the source can lead to this. If changes in the input parameters of the code must be changed through the source, this can often lead to changes in the results that are difficult to diagnose in the future.
  2. The input data changes. Many codes require a plethora of input data, and these files are often swapped around to see how different sources create different results It's easy to lose track of which files gave which results. Even when one is careful, small changes in the input can create large changes in output. Once, I updated some files that listed satellite positions so that they contained additional significant digits. Such a change sounds harmless, but the one one-hundreth change in the satellite's position produced drastically different results!
  3. The settings have changed. Grid resolution, numerical scheme settings, input parameters, smoothing and blending factors, activation of additional capabilities, and more - all of these items can be changed from run to run. As a code matures, uncountable combinations of settings are possible. Trying to reconstruct the right settings to reproduce a set of results is not an enviable task.
  4. The code was run on a different computer. Changing compilers, CPU architecture, or linking to different external libraries are all things that can change results- sometimes drastically. This problem frequently manifests itself when care is not taken to ensure the proper precision of floating point real numbers throughout a code. Various compilers handle this differently, and numbers that you thought were double precision can become single precision without warning.
  5. Breaking a long run into several parts can also change results. When simulations take days to weeks (even on super computing systems), it is commonplace to develop a system that allows you to save progress and restart the simulation later. Care must be taken to ensure that stopping and restarting yields the same answer as an uninterrupted simulation.
  6. The code gives different results when run in parallel versus serial mode. Large computer simulations can be sped up drastically through parallel computation- that is breaking the problem up into smaller parts and spreading the work over several computers. If not implemented correctly, there can be changes in the solution when switching from serial (one computer) to parallel mode. Things can get trickier if there are changes when the number of CPUs used increases (though the code was always used in parallel).
When you lose reproducibility, others can no longer independently verify your work- a key tenet of well-performed science. Furthermore, you can not return to an experiment for further analysis and open questions about your conclusions will persist. In the best case scenario, this leads to inconveniences in research and time lost when you are required to start from scratch. In the worst case scenarios, failure to reproduce results can strip you of your credibility.

So how do you avoid such problems? In my next post, I will outline steps that the space science modeling community frequently takes to overcome the pitfalls listed above.

Tuesday, January 26, 2010

The 3rd Reviewer.

Waiting for me in my inbox this morning:



There's a good amount of truth to this satire (despite the rather tired "HITLER REACTS TO :blank: LOLZ" genre). The peer review process can be an absolute gauntlet- reasonably and unreasonably so. There are cases where a reviewer asks for ridiculous changes or additional work. Conversely, there are times when such requests are completely justified. On the other side of the coin, the authors have already put in an intense amount of work to produce their manuscript and want to be done with it once and for all! Even though the additional experiments may be warranted and not so burdensome, the scientists may be loathe to do so because, in their minds, this work is finished. I have been guilty of this myself. Finally, when only one of the three reviewers is requesting the additional effort, it is doubly frustrating. It feels like the odd man out is just trying to be difficult compared to the others.

Thursday, December 3, 2009

"Contact Sport"? I think you mean Death Match.

There's a neat review over at Newsweek on the book "Science as a Contact Sport". It is written by Stephen Schneider, the author of a famous 1960's paper that predicted global cooling. His results came from a climate predicting computer model that had an import omission in the physics simulated by the code. This omission halved the effect of CO2 in the atmosphere. This paper has been trumpeted by climate change denialists but crucified by real scientists (y'know, those who have dedicated their lives to understanding this stuff.) The book then describes how climate change scientists fight fiercely over the veracity of results coming out of the community. There's a word for this fierce, empashioned battling when a group of people are working tirelessly to expose the truth: SCIENCE.

When one produces results in a scientific field, he or she must first go through the peer review process to get these results published in a journal. This involves intense scrutiny over that scientist's work followed by alteration of said work so that the reveiwers' concerns over potential weaknesses are properly addressed. If the research cannot stand such scrutiny, it is rejected. This process takes months to years and is not for the weak of mind. You watch others take your projects, for which you have invested a great amount of time and effort, and rip them to shreds. It is an absolute necessity to push through this process because unpublished research is as useful as no research at all.

It is possible that weak, poorly derived products may slip through the process unscathed. In such cases, the paper is subject to strong rebuttals and harsh criticism from the scientific community. Even if the paper is not pulled from the journal (an extreme case for particularly bad science), its place in history will be a poorly constructed counterpoint standing against mountains of contradicting evidence. And in the scientific world, what matters is the amount of physical evidence, not the number of people, that supports a hypothesis.

All of this is lost on those who fervently assert that global climate change is a farce, a "liberal religion", a misguided opinion. In science, opinions and beliefs do not matter. They are crushed in the peer review forum. They are slaughtered in the open research market. The only thing that can stand is physical evidence. Those who irrationally follow a claim without evidence become the laughing stocks of the field.

Thunderfoot presents a far more eloquent (and entertaining) summary of how science works (about 5 minutes in):

Be sure to check out the comments in the Newsweek article. They're delightfully awful.

Friday, November 13, 2009

Let there by PYTHON!

I finally got things straightened out with my laptop last night, which means I can finally post about how hard Python rocks.

I'll start with my first Python-generated figure that will be going into a paper I've written:

I'll explain what is going on here eventually; for now I'll just say that creating this image was surprisingly easy.

Next, I'll share a sneak peak into a project I've just started: PyBats! Open source tools for reading and visualizing BATS-R-US output!


Again, I'll explain all of this later.

My Python experience has been very exciting so far. I hope to release quite a bit of code through Source Forge in the future.

Thursday, September 3, 2009

Here Comes Science!

Praise be FSM for this brand spankin' new TMBG album: Here Comes Science! I know what my daughter is getting for her birthday (or, rather, the next excuse I have to buy something.)

If you look at the comments on the video for the song "Science is Real", you'll find several people butthurt over the lyric "I like the stories as much as anyone else, but when I'm seeking knowledge [...] the facts are with science". Why? Because it's a "pot shot" at religion.

. . .

"Get in the fookin' sack!"

Wednesday, September 2, 2009

A Dose of Dumbass

Did anyone happen to catch NBC's Dateline episode named A Dose of Controversy, an expose' on the anti-vax movement? It was pretty good overall. A quick summary:
  • The man who initially linked autism to the MMR vaccine, Dr. Andrew Wakefield, did so with a study that used 12 participants.
  • More recent studies that have used 500,000 to several MILLION participants have found no such link.
  • Nearly all of the 12 participants in Wakefield's study were involved in a class action suit against the makers of the MMR vaccine.
  • Dr. Wakefield was a paid expert witness for the plaintiffs in this suit.
  • Dr. Wakefield was, at the time of the study, applying for a patent on a vaccine to replace MMR.
The accusation drawn from these points is that Dr. Wakefield performed his study in a manner such that the evidence would fit the predetermined conclusion. I've heard of this before... who is it, besides the good Dr. Wakefield, that warps the evidence to fit the conclusion they want???

To put it mildly:
SCIENCE DOES NOT WORK THAT WAY.

Scientists are people who are concerned about the truth and use natural, recreatable evidence to find it. If all of the evidence does not agree with your hypothesis, even if you strongly want that hypothesis to be true, you must reject your hypothesis. When you are discriminative with the evidence or otherwise warp it in order to build a case for your personal hypothesis, you deceive yourself and others.

Wednesday, July 22, 2009

Yeah. What he said.

"Science knows it doesn't know everything or else it would stop." Words of truth and wisdom. And hilariousness.

Shamelessly stolen from Pharyngula.

Wednesday, June 24, 2009

So You Want to Model: Part 1

This post is part 1 of a two part response to a comment on a post concerning numerical modeling of the space environment. TelepathicTroy called for Open Source space codes in order to develop transparency as far as code capability and performance.

This post presents a non-open source solution to this issue: The Community Coordinated Modeling Center. The CCMC is a NASA-run organization that acts as a third party who runs and compares many different space weather models. Furthermore, they provide a resource to the community for running these models and visualizing their results. Although this is not opening up source code to everyone, it does give non-code developers the chance to run each model through a gauntlet of tests and evaluations.

This resource is open to everyone. Check out their runs on request section, or browse their library of simulation results and play with their plotting tools. There are results available from recent model comparisons, the conclusions of which were presented at the current GEM Workshop.

There are issues, however. A limited set of parameters and controls for each model are available to the end user, and this leads to model developers contesting CCMC results that may show their model in a bad light. It is constantly asserted by developers that the results of a certain run would be much more favorable if CCMC had used a certain set of paramters instead of their defaults (typically picked for robustness.) I must admit guilt to this very charge, but in some cases the developer is indeed correct. So while the CCMC is a powerful comparison and evaulation tool, it is still cannot do what an open source approach can: provide 100% transparency to what a code is doing and how well it does it.

It is interesting that such a tool could give rise to a hobby-based or grass roots space weather modeling crowd. Unlikely, but an intriguing prospect.

Stay tuned for Part 2: the SWMF.

Wednesday, May 20, 2009

More people should do things like this.

Following some links provided in a comment in my previous post led me to this study of the happiness of programmers using different languages from Dolores Labs. They surveyed Twitter posts that concerned various languages (e.g. "I sure love Fortran!" or "C is making me ANGRY!") and tallied the results to see what language garnered the most positive responses.

Here are the results:

The winner... PERL! I guess I can't leave my favorite language quite yet, eh?

Clearly, the results should be scrutinized and a formalized study would likely yield different results. Despite these criticisms, simple studies like this are fantastic. The results give clues as to what a broader, more rigorous study would uncover. The methodology provokes thought on ways to improve the study, the implications of the outcome, etc. And more importantly, the results are just neat. I am reminded of Mark Twain's famous quote on science, "One gets such wholesale returns of conjecture out of such a trifling investment of fact."

Please explore the Dolores Labs site so I feel better about hot linking their results.

Tuesday, April 14, 2009

Fine tuned?

It has been argued that the entire universe is fine-tuned for life. Any changes to the fundamental physical constants would make it impossible for life to develop anywhere, especially Earth. For example, change the magnitude of the strong nuclear force and stars cannot produce heavier elements necessary for life. Change the gravitational constant slightly, planets and stars cannot form. Clearly, we have the perfect combination of fundamental constants in our world and that is why we are able to be.

I've never liked this argument for a few reasons. First, how does the arguer know that changing these constants wouldn't lead to life in currently barren regions, despite making Earth uninhabitable? How do they know that there are regions that wouldn't benefit (in terms of supporting life) from these changes? Secondly, we know that life is tenacious. When we think we know what the requirements are to produce and support life, we find something on our own planet that surprises us. An excellent example is the discovery of tube worms that live near undersea volcanic vents (these animals need NO sunlight and survive in incredibly hot waters!)

A scientist at the University of Michigan (hail to the victors) decided to test the impact of changing the fundamental physical constants on a developing universe. He ran computer simulations of many universes, each time changing the gravitational constant, the fine structure constant, and a constant that represents the rate of various nuclear processes. He found that one-quarter of all the simulations ran yielded energy-producing stars- the first and most essential building block in a life-supporting universe.

As usual, this is far from a final answer on this topic, but it continues to provide evidence that life is fine-tuned to the universe, not the other way around.

Wednesday, April 8, 2009

Return science to its proper place.

Phil Plait has an exceptionally important post over at Bad Astronomy. It's about a new effort to reinstate the Office of Technology Assessment, a bipartisan group that provided scientific advice to the president. There is an online petition as well as a Facebook group. Check it out.

Wednesday, April 1, 2009

Apparently I am a Psychic.

Minutes after posting about how little solar activity there is at the moment, I have found out that it's even calmer than I thought! We are currently in the fourth longest solar cycle in recorded history and will likely climb further up the list as the sun spot number (SSN) continues to fall. In March, we experienced 28 days without a sun spot (last year, March saw only 17 days without a blemish.) The averaged sunspot number values imply that we are likely to dip lower in the solar cycle, with fewer sunspots in April and possibly May.

Boring.

What are we missing out on? Check out this and this.

Solar min sucks.

All's quiet on the space weather front.

I may have made a critical mistake by instituting this blog during solar minimum. Space weather is boring right now. booorrrriiinnnggg.

The solar cycle is the 11 year period in the number of sunspots appearing on the surface of the sun. During maximum, the number of spots is at a peak and solar storms occur frequently. This leads to great videos of solar flares and coronal mass ejections, space weather storms at Earth, strong aurora, and bad impacts on technology (more on that in forthcoming posts.)

Right now, we're in solar minimum. What's happening in space? Jack crap, that's what. Just to give you an idea of how boring the sun is, examine the following:


This graph, from the Space Weather Prediction Center, is up-to-date as of the end of February. The blue/black lines are actual data; the red line is the sunspot forecast. As far as sunspots, we have bottomed out. This limits the amount of space weather news I can blog about -- especially exciting stuff.

As for the forecast, this is an extremely difficult prediction and rarely is accurate. In a few weeks, SWPC's annual Space Weather Workshop will commence and an updated prediction will be reported. While I won't be attending this year, I will blog on any important news that I hear from it.

Tuesday, March 31, 2009

Where's your local chapter?

I have recently discovered the joys of the New Mexicans for Science and Reason group. I have added their radio show to my list of podcasts, and despite its inherent cheesiness, I would certainly recommend it to anyone who enjoys quick updates on science and scientific issues on both a national and local (Albuquerque, NM) level.

What's that you said? You don't live anywhere near New Mexico? Fear not! Groups such as this have been popping up everywhere! They serve many purposes: debunking pseudoscience, delivering science news to the non-expert and layperson, and providing a grass-roots resource to those wishing to help advance good science. I encourage everyone to at least have a look at what's available near their hometown.

Thursday, March 26, 2009

Win in Texas.

Oh, man... that was too close!
As Dr. Plait points out, the 7-7 tie means that we're likely to see this again in Texas. We dodged a similar bullet in here in New Mexico.