Total Pageviews

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

Wednesday, December 14, 2016

Decisions, big data and the metaphor of the blue soldier crabs

The sense of opportunity and the market When to make a decision?




The blue crab soldier, Mictyris longicarpus, is a species that lives on the sandy beaches of Australia and elsewhere. Adults are 25 mm in average, white, blue in the back. They feed on waste on the beach. The males form large "armies" that move on the beach during low tide, then they are buried waiting for the next low tide. The number of crabs that emerge depends on temperature, winds, rain.

The interesting fact is that when they are in the beach  looking for food they do not have to look to see if the sea level rises, because guided by a "mysterious impulse" the army returns to the place of origin to bury itself in the sand again. How do they know? The tides are determined by the gravitational force of the moon exerted on the earth; the crabs have a biological clock sensitive to that attraction, so they "know" when they must return and seek protection again. Mysterious and seemingly incompressible, but real.

The tide is the periodic change of the sea level produced by the attraction of the Moon and the sun on the earth as a whole. The phenomenon is perceptible in the sea because the water is not rigid and that is why it deforms, creating the visible movements that alter the level of the sea.

The phenomenon of the tides has been known since antiquity. Piteas (4th century BC) was the first to point out the relationship between the amplitude of the tide and the phases of the Moon, as well as its periodicity. Pliny The Elder affirmed that the tide was related to the Moon and the Sun. Isaac Newton, in his Philosophiae Naturalis Principia Mathematica ("Mathematical Principles of Natural Philosophy") gave the explanation of the tides currently accepted.

There are two notable states: High tide , when sea water reaches its maximum height within the tidal cycle; The low tide, opposite state, in which the sea reaches its lowest height. The approximate time between high tide and low tide is 6 hours, completing a cycle of 24 hours 50 minutes. This periodicity is what influences the movement of the welded crab, without ever failing.

Flow is the process of slow and continuous ascent of the marine waters, by the progressive increase of the lunar or solar attraction or of both; the ebb is the slow and progressive descent of the marine waters, due to the decay of the lunar or solar attraction.

What do crabs have to do with business? They can be part of a delicious business dinner, but they also suggest interesting things.

Big data, macro data, large-scale data or mass data is a concept that refers to the storage of large amounts of data and the procedures used to find repetitive patterns, real-time trends.
There are many tools to deal with Big Data such as Hadoop, NoSQL, Cassandra, Business Intelligence, Machine Learning and more, any of them dealing with some of the three Big Data types:

I) Structured data. Data that has well defined its length and format, such as dates, numbers or strings. They are stored in tables (relational databases, spreadsheets)
(Ii) Unstructured data. It maintains the format with which they were collected, they lack a specific format. They can not be saved as tables because they do not have basic types of data (PDF documents, multimedia documents, emails or text documents).
Iii) Semi-structured data. Data that is not limited to certain fields, but has markers to separate the different elements. These data have their own semi-structured metadata describing objects and their relationships; Are accepted by convention (HTML, XML, JSON).


In the past, in a relatively simple and predictable world, market decisions in relation to products and services that could be offered to customers or consumers were relatively simple and straightforward, since little data was available, harvesting methods were simple (surveys, sales and customer records, statistical projections using basic techniques and tools such as linear regression).

Mistakes in decisions were controllable and had little effect on financial results. Consumers had very limited access to data and information and therefore, few alternatives to choose or few arguments to be more demanding. A happy world for business? Maybe, but there were few opportunities for market growth and profitability.

At present, the business world is more complex because consumers have more information available in real time, in volume, in variety, coming from all over the world. The decisions they make, the preferences, the purchasing or consumption behaviors are registered in massive form and produce the Big Data phenomenon; This generates in companies decision makers the need to go beyond the conventional, insufficient and obsolete means with respect to what is now available in Big Data.

The basic descriptive statistics are insufficient and limited, now must resort to predictive or prescriptive statistics, with more rigorous and difficult criteria and methods, but more appropriate to the variety, speed and volume that characterize Big Data. More difficult? Yes, but there are also more opportunities, more risks and more profitability if you make the right decisions.


The intelligent and productive use of Big Data involves the use of powerful analysis tools and support in Data Science, characterized by the creative process of massive data and the creation of value from them, a value that improves noticeably the process of decision making. This value is the insight of Big data, which allows acting as if an "internal sensor" advised when, how, why, for what, where, to whom to offer a product or service.

The decision maker can no longer be an empiricist, a pure accountant or administrator, must be more engineer and, of course, more creative, more visionary but if the difficulties frighten him, he can always resort to specialists who would be an adequate support. Those are data scientists, who can help create value for the organization from Big Data.



For crabs, deciding whether to return to their shelter by observing the approach of the body of water is equivalent to the decisions an executive takes to respond to the current market, 21st century, relying on the data provided by the sales reports, the history of their clients, surveys (slow, partial, out of time). They would both die if they did; the crab is drowned and the entrepreneur or executive is devoured by the competition.

When the crab uses his "lunar biological clock," he always knows exactly when to withdraw with his "army." When the executive relies on information provided by Big Data, develops robust analysis from them and obtains the relevant insight, it has many chances of winning the fight in the market.

References

Big Data visualización: Turning Big Data into Big insights

Big data

Marea

Mictyris longicarpus


Decisiones, big data y la metáfora de los cangrejos soldado azules

El sentido de oportunidad y el mercado ¿Cuándo tomar una decisión?



El cangrejo soldado azul,  Mictyris longicarpus,  es una especie que vive en los playas de arena de Australia y otros lugares. Los adultos miden 25 mm en promedio, color blanco, azules en la espalda. Se alimentan de los residuos que hay en la playa. Los machos forman grandes “ejércitos” que se desplazan sobre la playa durante  la marea baja, luego se entierran esperando la próxima marea baja. El número de cangrejos que emerge depende de la temperatura, vientos, lluvia.

El hecho interesante es que cuando están en la playa buscando alimento no tienen que mirar para ver si sube el nivel del mar, porque guiados por un “impulso misterioso” el ejército regresa al lugar de origen para enterrarse en la arena nuevamente. ¿Cómo lo saben? Las mareas están determinadas por la fuerza gravitatoria de la luna ejercida sobre la tierra; los cangrejos tienen un reloj biológico sensible a dicha atracción, por lo que “saben” cuando deben regresar y buscar nuevamente protección.  Misterioso y aparentemente incompresible, pero real.

La marea es el cambio periódico del nivel del mar producido por la atracción de la Luna y el sol sobre la tierra en conjunto. El fenómeno es perceptible en el mar porque el agua no es rígida y por eso se deforma, creando los movimientos visibles que alteran el nivel del mar.

El fenómeno de las mareas es conocido desde la antigüedad. Piteas (siglo IV a. C.) fue el primero en señalar la relación entre la amplitud de la marea y las fases de la Luna, así como su periodicidad. Plinio El Viejo afirmó que la marea se relacionaba con la Luna y el Sol. Isaac Newton, en su  Philosophiae Naturalis Principia Mathematica («Principios matemáticos de la Filosofía Natural») dio la explicación de las mareas aceptada actualmente.
Hay dos estados notables: La Marea alta o pleamar, cuando el agua del mar alcanza su máxima altura dentro del ciclo de las mareas; la Marea baja o bajamar, estado opuesto, en que el mar alcanza su menor altura. El tiempo aproximado entre una pleamar y la bajamar es de 6 horas, completando un ciclo de 24 horas 50 minutos. Esta periodicidad es la que influye en los movimiento del cangrejo soldado, sin fallar nunca.
El flujo es el proceso de ascenso lento y continuo de las aguas marinas, por el incremento progresivo de la atracción lunar o solar o de ambas; el reflujo es el descenso lento y progresivo  de las aguas marinas, debido a la decadencia de la atracción lunar o solar.
¿Qué tienen que ver los cangrejos con los negocios?  Pueden ser parte de una deliciosa cena de negocios, pero también sugieren cosas interesantes.

Big data, macrodatos, datos a gran escala  o datos masivos es un concepto que se refiere al almacenamiento de grandes cantidades de datos y a los procedimientos usados para encontrar patrones repetitivos, tendencias en tiempo real.
Existen muchas herramientas para tratar con Big Data como Hadoop, NoSQL, Cassandra, Business Intelligence, Machine Learning y otras más, cualquiera de ellas trata con algunos de los tres tipos de Big Data:
i)    Datos estructurados.  Datos que tienen bien definidos su longitud y su formato, como las fechas, los números o las cadenas de caracteres. Se almacenan en tablas (bases de datos relacionales, hojas de cálculo)
ii)     Datos no estructurados.  Se mantiene el formato con el que fueron recolectados, carecen de un formato específico. No se pueden guardar como tablas ya que no tiene  tipos básicos de datos (Documentos PDF, documentos multimedia, e-mails o documentos de texto).
iii)    Datos semiestructurados.  Datos que no se limitan a campos determinados, pero tienen marcadores para separar los diferentes elementos. Estos datos tienen sus propios metadatos semiestructurados que describen los objetos y las relaciones entre ellos; son aceptados por convención (HTML, XML, JSON).



En el pasado, con un mundo relativamente simple  y predecible, las decisiones  para el mercado, en relación a los productos y servicios que podían ofrecerse  a los clientes o consumidores eran relativamente sencillas  y directas, ya que se empleaban pocos datos, los métodos de recolección eran sencillos (encuestas, registros de ventas y clientes, proyecciones estadísticas usando técnicas y herramientas básicas como una regresión lineal).

Los errores en las decisiones eran controlables y tenían poco efecto en los resultados financieros. Los consumidores tenían acceso muy limitado a datos e información y por ello, pocas alternativas para elegir o pocos argumentos para ser más  exigentes. ¿Un mundo feliz para los negocios? Quizás, pero había pocas oportunidades para el crecimiento del mercado y rentabilidad.

En la actualidad, el mundo de los negocios es más complejo porque los consumidores  tienen más información disponible en tiempo real, en volumen, en variedad, procedente de todo el mundo. Las decisiones  que toman, las preferencias, las conductas de compra o consumo son registradas en forma masiva y producen el fenómeno del Big Data; esto genera en los tomadores de decisiones de las empresas la necesidad de ir más allá de los medios convencionales, insuficientes  y obsoletos respecto  a lo que está ahora  disponible en Big Data. 

La estadística básica descriptiva  es insuficiente y limitada, ahora  debe recurrir a la estadística predictiva o prescriptiva, con criterios y métodos más rigurosos y difíciles, pero más adecuados a la variedad, velocidad y volumen que caracterizan  a Big Data. ¿Más difícil? Si, pero también hay más oportunidades, más riesgos y más rentabilidad si se acierta en las decisiones.



El uso inteligente y productivo de Big data implica el uso de herramientas de análisis poderosas  y el apoyo en la Ciencia de datos, Data science, caracterizada por el proceso creativo de datos masivos y la creación de valor a partir de  ellos, valor que mejora notoriamente el proceso de toma de decisiones. Este valor  es el insight de Big data, que permite actuar como si un “sensor interno” aconseje cuándo, cómo, porqué, para qué, dónde, a quién  ofrecer un producto o servicio.

El tomador de decisiones  ya no puede ser  un empírico, un contador o administrador puros, debe ser más ingeniero y por supuesto, más creativo, más visionario  pero si las dificultades  lo atemorizan, puede recurrir siempre a especialistas que serían un soporte adecuado. Esos son los científicos de datos, data scientists,  quienes  pueden ayudar el crear  el valor para la organización a partir de Big Data.





Para los cangrejos, decidir si regresan a su refugio observando el acercamiento de la masa de agua equivale a las decisiones que toma un ejecutivo para responder al mercado actual, siglo XXI, apoyándose en los datos que le proporcionan  los reportes de ventas, la historia de sus clientes, encuestas (lentos, parciales, fuera de tiempo). Ambos morirían si actuaran así; el cangrejo  se ahoga y el empresario o ejecutivo es devorado por la competencia.

Cuando el cangrejo usa su “reloj biológico lunar” siempre sabe con exactitud en que momento debe retirarse con su “ejército”. Cuando el ejecutivo se apoya en la información que le aporta Big Data, elabora robustos análisis a partir de ellos y obtiene el insight pertinente, tiene muchas posibilidades de salir vencedor en la pelea por el mercado.


Referencias

Big Data visualización: Turning Big Data into Big insights

Big data

Marea

Mictyris longicarpus


Tuesday, November 29, 2016

Sunday, April 10, 2016

The prince and the Anscombe quartet-When the essential in not seen in business



The Anscombe's quartet and the Little Prince-When you lose sight of the essential and making wrong decisions



The prince, a children's novel published on April 6, 1943 by the French pilot Antoine de Saint Exupery, contains lessons and messages to be captured and applied in real life by children as well as adults to keep the spirit young and vitality. These lessons can also be applied in other areas of life. Just enough to regain naivete, open-minded and open-mindedness that characterizes a child to access the "secret of life". Paradoxically, the more complex is not meant assuming the position of the wise or omniscient but one who is supposed to know less and who erroneously considered as unfit to understand the complexity of the world, the child.

On ne voit le cœur qu'avec well. L'essentiel est pour les yeux unseen. (Le petit prince)
(Only it looks good with the heart. The essential is invisible to the eye)

The message for daily life is clear and has multiple interpretations. "Do not judge a person by appearance, but by their personal values." "Do not evaluate a situation by the apparent facts, look for the deeper reasons". And much more.

But in the business world, in everyday business practice is this message also applies? If, in all areas, from matters where only involved people to situations where technology, impersonal, cold and seemingly objective is imposed and accurate to solve or help "solve business problems" or improve the process of "taking making. " impressive phrases but many reveal the weaknesses or deficiencies of those who use or apply because they see the appearance and not the essence of the situation.

In some cases, studies or practical life, certain formulas derived from logical associations and common sense become a kind of gods, idols that magical powers are attributed and whose relevance or veracity should not hesitate . (Note 1)

In other cases, it comes procedures, methods or generally mathematical algorithms, internally consistent testing, but whose application should be performed judiciously and weighting of the circumstances, as they are tools and should be a hammer serves to put the nails, screwdriver screw; the reverse use of the tools is ineffective and may exacerbate a problem.

Consider the case of linear regression, a statistical technique that allows a projection of a dependent variable (Y) given a value of the independent variable (X); after previously found functional mathematical relationship between them from a set of predetermined values. The algorithm exists, it can be done manually or with the aid of computers, powerful allies for the calculation.

Imagine this situation. For 24 consecutive months, it is available data on the total sales and the number of vendors. You want to estimate or project sales over the next six months. The person using the algorithm, after calculations, triumphant shows the linear regression equation and delivers it to who will make the decisions and give the necessary orders.

If the person who calculated is the same as the user, if conscious, responsible and cautious, and also takes into account the message of The Little Prince (what is essential is invisible to the eye) can stop and check the reverse procedural, the formula , calculations and finally data might discover that something is wrong and therefore do not fall into the trap of Anscombe's quartet. You can avoid losses and costs of bad decisions.

If two different people, systems engineer or someone similar and general manager, is almost certain catastrophe. The user (general manager) can order the expansion of production if the regression equation suggests gradual increase in sales, when in fact the data showed a downward trend and one outlier distorted this trend.
 


                                                 Manager desperate because sales fall

And what is Anscombe quartet? Statistical Francis Anscombe, in 1973 discovered the hidden trap in what is called the "Anscombe quartet". It is four datasets that have properties identical basic statistics (mean, variance, correlation index and the same regression equation) but appear very different when plotted in the Cartesian plane, showing striking differences. Each group has 11 data and example was designed to demonstrate the importance of graph data before analysis and take into account the impact of extreme or anomalous data. Note that the four scatter plots do not suggest the linear plot and linear regression as a solution (Note 2).

 
 


      It can be said that when there are many "unknown unknown" (unknown unknowns) or things we do not know we do not know (things we do not know we do not know), it is important to human judgment relied on data to make decisions.
Data visualization, a clever way to apply the judgment or common sense, is an unusual practice and for which many executives do not have proper training, can reveal patterns and shapes that otherwise could not have been discovered. Once again "intrudes" The Little Prince.

One could argue that the lesson of Anscombe, proposed more than 40 years ago is no longer valid in the present, where technology facilitates calculations and processes. This claim is easily refuted because precisely at this time that the data is available by millions, at all times and in different formats, forming the context of Big data, the need for visualization is absolutely true.

According to Jewett (2014: 5) Big Data must be set to eye level, so a report by the Aberdeen Group in 2013, indicates that in organizations using discovery tools for visualization, 48% of users of Business Intelligence are able to find the information they need without assistance computer equipment. Often they are the "geniuses" that are not available when they are needed. Without the help of visualization, independence rate falls to only 23%; executives also employing data visualization, were 28% more likely to find the required information on time; those who interacted with the data were 33% more productive compared to 15% who do not. That is, they were the value of Big Data with greater intensity, speed and relevance.

Moraleja. Technology, algorithms, mathematical models and procedures are not gods or fetishes, are just tools and before use, we must assess the context to avoid falling into the trap of "Anscombe quartet". Take a little air, a little time and try to see what is essential, if it succeeds, the rest will be easier and will be done correctly. Incidentally, if you read The Little Prince, do it again and if not, it's time to do so.

Note 1. I remember in my classes Master, the formula of an accounting balance, used to calculate the amount produced in revenues equaled revenues and costs, which could be deduced quickly with a few calculations. Some comrades do not know whether out of laziness or deficiency in their professional training, resisted that and for exams, preferred memorize "the sacred formula" other less honest used their means of plagiarism (strips of paper, write in the folder, writing on clothing or arms); there were some who were willing to to tattoo the formula. At that time there were no Ipods, but all had chosen this medium. These people certainly were and are victims of "Anscombe quartet".

Note 2. The initial chart data allows better to choose the mathematical model. The regression model can not be applied to everything. A hammer used to drive nails, but not to cut wood, unless it is very clever to give the precise blow.

References

Dan Jewett (2014) 7 Tips to Succeed with Big Data in 2014
VP Product Management

Wil M. P. van der Aalst (2014)  Data Scientist: The Engineer of the Future

Anscombe's quartet
https://en.wikipedia.org/wiki/Anscombe%27s_quartet