Indian Notation System for Word Processor

In today’s computer age, word processors are indispensable tools. Western music relies heavily on symbolic staff notation, which necessitates specialized software for computerized notation. Conversely, Indian notation systems such as Bhatkhande or Rabindrik employ alphabets for notation. Regrettably, the current method of writing Indian notations isn’t conducive to word processors. Drawing from conventions used by musicians, I’ve devised a hybrid convention, amalgamating aspects of the Bhatkhande and Western systems, making it effortlessly typable in any standard word processor.

Basic Notation: We write sudhh swars in its nearest Roman letter i.e. S R G M P D N. Other komal or tivra swars we write in lowercase, i.e. r g m d n. Each note is indicated by a space after the swar. Beat is indicated by a pipe (|) symbol. For example: S R G M | P D N S’| …

Notes in an upper octave are indicated by the apostrophe symbol. The lower octave is indicated by a succeding comma. Example:

N, S R G | N D M – | S’ N d P | m G m R |

A sustained gap is indicated by a dash (-). A semicolon (;) is used to indicate silence.

Timing: Each note followed by a space denotes one matra. When more than one note is played in one beat then we write the notes together without any space in between. For example, in the notation below “PGM” denotes one note, it should be played at the same time that one takes to play the notes like S R, etc.

S R G M | PGM D N S’| …

Half-matra Notes that should be played in half the time it takes to play one note can be denoted by adding a colon after the note. For example S: will mean Sa should be played for just half the time.

Quarter-matra: On rare occasions, we may want to indicate one-fourth time for a note. We can use a dot symbol to indicate one-fourth time for the note. Ex: S.

Ornamentation:

Kan(touch notes): These are indicated by superscipt. Example: S R MG P| G M D S’|

Meed (Glissando): An underline indicates that notes will is played or sung as a smooth glide from lower Dha to Re while touching teevra Ma and Ga along the way. This is indicated as:

N D – R | S N, d, P, | m G m R |

Murki(Trill or Mordent): A small quick taan made up of 3-4 neighboring notes for ornamentation purposes. It is denoted by a preceeding tlide. Ex. P~ could indicate a quick taan such as PdP. Reverse murki or lower modent is indicated by putting the tlide symbol before the note, as in ~P. This will indicate PmP.

Gamak: Gamak is a combination of meed and murki, where the notes slide from one to another with a oscillation. This is indicated by meed sign preceeded by a tlide sign. Example:

N ~D ~ R

Polyphony: Unlike Western staff notation, the Indian notation system does not have a method to indicate polyphonic notes. But with keyboard, harmonica, etc. It is possible to play multiple notes together. I propose to put the notes in a bracket to indicate them being played together. For example, here G and P are played together:

S R (GP) S’| G M D S’|

Section Seperator: A double pipe symbol (||) indicates end of a section like Asthaye, Antara etc. Normally, in indian music asthaye part is played after every section.

Repeat:

Modern notations make many innovative uses of repeat to write the notations in concise manner. We can use few such concept from the western notation system.

Repeat: A curly bracket indicates repeat of the certain part of the notation. If there is some variation in the repeat then that section should be put in a square bracket.First bracket is for playing first time and second one is for second time. For example:

||{S R G D | [GDG – – -]| [GDR – – -]}| MG RS RN, -| N, – N -| P D M G ||

Yeah! You are right. It is the famous Sholay tune.

Measure Repeat Another common type of repeat symbol you may see is a measure repeat, or bar repeat. A bar repeat tells you to play the same thing as in the previous bar. Sometimes you’ll see multi-measure repeats which span 2 or more bars. We can use % symbol for such repeat. A single % sign means repeat the previous beat, %% means repeat previous two beats, and so on.

Da Capo Da Capo is an Italian word that literally means from the head. It is abbreviated as DC and written above the main notation line. This means to play the notes from start. There are three variations to the Da Capo.

1. Da Capo al Fine (often abbreviated as D.C. al Fine): Repeat from beginning to the end, or up to the word Fine (should that appear at the end of the passage)—the word Fine itself signifying the end. Example:

                                                                                 Fine                D.C. al Fine
|{S R G D | [GDG – – -]| [GDR – – -]}| MG RS RN, -| N, – N -| P D M G |

Here after the last “P D M G” the musician should go back to the start and play till “MG RS RN, -”

2. Da Capo al Coda (often abbreviated as D.C. al Coda): Repeat from beginning to an indicated place and then play the tail part (the “Coda”). It directs the musician to go back and repeat the music from the beginning (“Capo”), and to continue playing until one reaches the first coda symbol. Upon reaching the first coda symbol, skip to the second coda symbol and continue playing until the end. The portion of the piece from the second coda to the end is often referred to as the “coda” of the piece, or quite literally as “the tail”. This may also be instructed by simply using the words al Coda after which the musician is to skip to the written word Coda. We use “@” symbol for Coda. Example:


          @              D.C. al Coda
N D – R | S N, d, P, | m G m R |

@
|{S R G D | [GDG – – -]| [GDR – – -]}| MG RS RN, -| N, – N -| P D M G |

Here after playing the first line the musician should go to start and play till the @ sign. After playing “N D – R” he will jump to the portion given in the second line, starting from “S R G D”.

3. Da Capo al Segno (often abbreviated as D.C. al Segno or simply D.S): It means “From the beginning to the sign”. We shall use “$” symbol to indicate the sign. Example:

                                                              $                                                        D.S.
|{S R G D | [GDG – – -]| [GDR – – -]}| MG RS RN, -| N, – N -| P D M G |

In my next blog post I will show how the notation system will work.

Posted in music | Leave a comment

Missing link of analytics – the human

Data analytics can tell us everything from the correlation between adverse weather conditions and profitability to the trends in consumer behavior that fuel the success of a start-up business going to initial public offering (IPO). According to a recent survey that EY conducted with Forbes Insights, the majority (66%) of global companies are investing upwards of US$5 million in analytics, yet only 12% of global companies describe their analytics maturity as “leading.” Those who were not “born” digital have a longer journey ahead than those who are capturing customer data and interactions digitally from the start.

 

Organizations are investing in data collection but are often struggling to derive value from it. So what’s the solution?

Creating value from big data

Analyzing collected information with a human lens is where the true business advantage lies. Without the human element, analytics is an informative tool to create a bank of information. To create value from big data, you need to intelligently analyze, review and act on data findings.

Data, at its best, should have the power to disrupt and transform. Results from a rigorous analysis of short- and long-term data sets can confound an organization’s accepted wisdom and assumptions influenced by human bias. The leading 10% of enterprises surveyed reported a “significant” shift in their ability to use data to help meet competitive challenges. They encourage data analysis to be performed by someone who knows the organization — someone who is fully aware of the business objectives in the context of culture and leadership and who will inspire the right line of questioning. Rigorous questioning will lead to better answers and produce solutions that are fit for purpose.

How can big data drive transformative business change?

A quick glance at the way bigdata enabled analytics is being used will tell us that the current focus of business houses is to manipulate human emotions and choices to push their sales rather than make the product better. Such a strategy can, at the very best work for a short time. Long-term manipulation of people is bound to fail. People are not mere objects that can be expected to produce the same result by a given stimulus. Once people feel being manipulated, they react by losing trust in the process. Fact-checkers of social site content are proof that society is currently getting into a trust deficit. Next, it will follow up with an outright rejection of digital technologies. 

Big data analytics give us the power to combine information from diverse contents and comprehend it. Used to create an adorable product that the consumers will like it can actually transform the user experience. For that to happen data analysis focus will need to shift from user manipulation to user research. Instead of pushing sales promotion data analytics need to feed product development activities. Create values for the customer and society.

Crowd sourced map and traffic information is one such excellent example. This can even expand to reduce carbon footprint. Map navigation may suggest the most eco-friendly route and speed reduce greenhouse gas footprint. In my recent paper, we present an IoT-based methodology to collect the vehicle emission data during vehicle movements and provide information to various stakeholders with location, performance, and status data to address the problem directly. Crowd-sourced performance analysis will show the best operating parameters and point out the problems be it the road condition, vehicle design, or driver’s training. 

Vehicle performance monitoring is not the only example of a transformative business application of big data. Similar changes can be made in inventory management of slow-moving goods, disaster planning, public health, redistribution of pre-owned products, and product recycling. 

Big data analytics is about big collaboration, bringing bigger harmony, about creating systemic changes. It is foolish to misuse such beautiful technologies for manipulating and dehumanizing fellow human beings. 

Posted in Analytics, automation, Environment, right technology, spatial data | Leave a comment

Geo-Spatial Analytics with R

I got couple of questions about what is R. Well, R is freely available language and environment for statistical computing and graphics. R provides a wide variety of statistical and graphical techniques: linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering. R is a free software. Here the word free is used in the same sense as freedom. R can be developed, modified and distributed freely, provided one abides by the GNU General Public License. You may consult the R project homepage for further information.

Being Open source and free, lot of interesting development has happened in R, that help us to perform data analysis quickly. R has many excellent library that can put most costly commercial products to shame. R is powerful, though not very easy to learn. There are too many choices in R and one need to devote considerable time to understand what works best for a particular situation.

In this blog, we will see how to read data from a RDBMS – MySQL. Perform some amount of data manipulation to generate reports. We will also present data in Geo-spatial reports in addition to  standard charts.

For our tutorial, we use month-wise sales data at dealer level. We also have address of dealers in our database that we will leverage to generate sales data at district level. We have this data in a relational database – MySQL. R has library to extract data from most standard data bases. Here to access this data we need to first connect R with the database. This require RMySQL package, which is currently not installed in my machine. I need to get this package. So I give a command in R:

install.packages(“RMySQL”)

It gives me a list of server to choose form. I select the closest server in India, about a minute later I get confirmation that the package is downloaded but it has failed with an error. A quick look in the terminal window tells me that it could not find mysqlclient-dev library. This error is kind of expected in a Linux system. Unlike windows, linux machines compile the code in local machine. I have not installed mysql client programs in my machine, all I have is a server. Naturally RMySQL installation fails. Error message gives me the way out is to install libmysqlclient-dev or  libmariadbclient-dev. I install this library with in Ubuntu:

sudo apt-get install libmysqlclient-dev

and then again try installing RMySQL. This time installation succeeds without any problem.

Note: There are some alternate remedy suggested like installing r-client-dev of libmariadbclient-dev. These solutions do not work, at least in my Ubuntu 14.10 machine. So stick to the suggestion pointed in error message.

To connect to MySQL one needs userid and password. While these can be given in script, it is actually a foolish idea to do so. It is quite easy to share program script with someone with userid and password, I would never take such chance and prefer to use a configuration file to keep the connection recipe secure. The file where these information is kept should be named .my.cnf and placed in the home directory. Here is how you set up .my.cnf file (or ‘c:/my.cnf’ under Windows)
# this is a comment
[client]
user = dj
host = localhost
[rs-dbi]
database = s-data
[lasers]
user = opto
database = opto
password = pure-light
host = merced
…
[iptraffic]
host = data
database = iptraffic
This file should be readeable only by you. Inside each section, MySQL parameters may be specified one per line (e.g., user = opto). MySQL always considers default options from the [client] group for connecting to a server. To override or add additional options, R MySQL combines default options from the [rs-dbi] group, but you may specifiy you own group in the dbConnect call to tailor your environment. Note that to override options, you must place your group after the [client] group in configuration file.
For instance, if you define a group, say, [iptraffic], then instead of including all these parameters in the call to dbConnect, you simply supply the name of the group, e.g., dbConnect(mgr, group = “iptraffic”).
library(DBI)
# Connect to my-db as defined in ~/.my.cnf
con <- dbConnect(RMySQL::MySQL(), group = "my-db")

dbListTables(con)
dbWriteTable(con, "mtcars", mtcars)
dbListTables(con)

dbListFields(con, "mtcars")
dbReadTable(con, "mtcars")

# You can fetch all results:
res <- dbSendQuery(con, "SELECT * FROM mtcars WHERE cyl = 4")
dbFetch(res)
dbClearResult(res)

# Or a chunk at a time
res <- dbSendQuery(con, "SELECT * FROM mtcars WHERE cyl = 4")
while(!dbHasCompleted(res)){
  chunk <- dbFetch(res, n = 5)
  print(nrow(chunk))
}
# Clear the result
dbClearResult(res)

# Disconnect from the database
dbDisconnect(con)

MySQL configuration file

Instead of specifying a username and password in calls to dbConnect(), it’s better to set up a MySQL configuration file that names the databases that you connect to most commonly. This file should live in~/.my.cnf and look like:

[database_name]
option1=value1
option2=value2

If you want to run the examples, you’ll need to set the proper options in the [rs-dbi] group of any MySQL option file, such as /etc/my.cnf or the .my.cnf file in your home directory. For a default single user install of MySQL, the following code should work:

[rs-dbi]
database=test
user=root
password=

Posted in Analytics, spatial data | Leave a comment

Of Pickle and Money – Part I

Pranati is in very bad mood today. She needs to leave for her office in another half an hour and her cook just phoned to say she won’t be coming.  Great news! Today her boss is coming from Bangalore.  In the afternoon there is a board meeting.  There is absolutely no way she can take a leave.  Yet if she do not cook something her daughter Minu won’t get her lunch.  Pranati checked the store and started to prepare a quick lunch for Minu. She knows, the result will be bad, but that’s all she can manage in this short time. While preparing Pranati remembered the nice food her mother used to make and how she played with her. The memory made her feel guilty.

Pranati works in a food processing plant, Grannis Pickles.  She is chief accountant there.  The plant is one of the best.  They buy best quality ingredients and strict process control. Pickles they make taste good, but Pranati knows the difference.

In her childhood days, Pranati used to help her Grandma in those chore.  Grandma used cut the mangoes and then put lots of salt and spice. Then she will dry it in the sun. Salt dehydrated mango. In this slow dehydration process some fermentation will also take place. That will turn the sugar into vinegar.  Once the fruit is properly dehydrated She will preserve it in oil.  In her plant the process is different. They will boil the mango and spice in vinegar. After good amount of boiling they preserve it in oil.

In this process, most vitamins and antioxidants are destroyed. Fruit will have lots of sugar so it will spoil easily so they add some preservatives.    The taste is also not same.  But plant can’t spend one month to mature the product.  It will be a financial nightmare.

Many times Pranati thought of quitting the job but she needs the money. She has to pay for the car loan that she took. More over inflation has made everything so costly. Even her child’s toys cost almost her weeks salary.  Car has been invaluable help in her commuting to office.  She thought again: no she can’t quit.  In her guilt, Pranati put a reminder to buy a toy for Minu on her way back to home.

As Pranati was returning she went to the toy shop. As usual, she went straight to the barbie doll section. But suddenly Ravi’s sermons came to her mind.  She knew Minu won’t like anything other than the best.  Just to prove Ravi false,  Pranati bought an ethnic doll. She was getting a sadistic picture of Minu trampling Ravi’s idea of ethnic consumption.  She could imagine Minu ripping the flimsy doll apart. She was thinking of making a video of the destruction and giving it to Ravi and see how he defends bad quality ethnic stuff over good quality imported doll.

Minu was happy to get a different doll. She put it in the doll house.  It was too big for the other furniture designed for Barbie doll. “Lack of standards” Pranati thought.  Minu cleared some stuff to make room for her new doll.  Result was some more broken Barbies but surprise of surprise, new doll remained intact.   Pranati was not sure, if she was disappointed of the lost opportunity of proving Ravi wrong or was happy that Minu liked her gift.

Posted in Art of living, fantasy, Story, Sustainability | Leave a comment

Harvest your data

Image result for money

All of us heard about bitcoin, the new money of digital world that is supposed to become the money of the future. Little do we realize that we ourselves are sitting over a goldmine, a goldmine of data. The companies which have found the magic wand are converting this data into commercially viable tangible asset and disrupting the way business is done. Those who fail to find use of their data may well start to prepare for bankruptcy. The days of business as usual has gone. Ability to use and monetize data is now impacting almost every industry that is in business.
Most companies realize that they have wealth of data. Many feel the data to be somewhat important, but few are aware on how to derive economic benefit out of the data. Situation of the business houses today are very similar to Mayan tribes. They have lots of gold, and even realize it to be valuable but is ignorant on how to derive benefit from its wealth. Even though many business are better at leveraging their data for their own purposes than they once were, the value of the data from an enterprise perspective has not been fully realized. Young Bang, VP of the civil health business at Booz Allen Hamilton, said in an interview, “I think the piece a lot of folks miss is: You need to understand the business so you can understand the value of the data and then [you can] monetize it”.
Very often organization faces issues of data quality, changed environment, data confidentiality issues that restrict their ability to use data. Many times data is available in plain text or coded inaccurately. Data analytics help to reduce the errors by pattern searches. It can also use natural language processing engines to extract relevant information from plain text.  Analytics can also flag the document for potential error for further scrutiny.
Now-a-days many organization use surveys and social media sentiment analysis to better understand customer satisfaction levels. Analysis of past services can also help in this regard. For instance, if you know that a particular customer was allotted middle seat in her past 7 flights, you can jolly well deduce that she is pretty unsatisfied. You need to do something about such undeclared dissatisfaction otherwise the passenger may switch to some other airline. You don’t need any costly survey to get such data. A simple analysis from your own data archive is all that is required to pull out such information.
Many companies are using the customer data to develop new product, expand their market. Many manufacturing company has supplemented their products with new offerings and create new value streams. For instance, a leading pharmaceutical retail chain in Kolkata used its customer data to launch medical insurance service. Another shop provided free weighing facility. It captured the customer data and used it to market a weight control package. Companies are not selling data to others, but instead using the data they have to provide new products and services. They are also using the data to price their product correctly and create new market segments.
Real value of data comes from combining different data. For instance real estate prices can indicate changing demographic profile in a locality. In turn, this can indicate latent demand for products and services. Using analytical algorithm, data scientists can pinpoint location that has such unfulfilled demand and help business to locate their outlets better.
Every business operates in its own way and their practices evolve over time.  More and more business run today on digital platform. New technologies, like IoT, RFID are making the products generate rich data that was not available in the past. These data, by themselves has no value. It require to be matched with some other data and analyzed to generate new meaning and discover new possibilities. The business that embraces these technologies and harvest their data will flourish.
Posted in Analytics | Leave a comment

Auram Field Trial

Compressed Earth Blocks are environment friendly alternative to normal bricks. It has better properties than earth fired bricks and does not pollute environment. Automated press can make about 1000 bricks per hour. Automatic controller for the press has to perform in dusty environment with lots of vibration. The bricks need good control on dimension.

DeciGen Consulting Services developed complete electronics for the controller and also advised on suitable modification of the press structure to ensure dimensional accuracy.

Posted in automation, robotics | Leave a comment

Are you ready for Business Data Analytics?

Introduction

If we look around us we see many large companies that were Industry leader a couple of decades back have faded into history. To name a few – Xerox, Dunlop, NOKIA, Hindustan Motors, Premier Automobiles. It is important to know what went wrong with these companies. In September 2013, NOKIA announced that they had been acquired by Microsoft in a deal valued at $7.17 billion. At the time, Nokia’s CEO, Stephen Elop ended his speech with the following words, “We didn’t do anything wrong, but somehow, we lost.”  His statement is a typical one of many erstwhile excellent companies. Technically these successful companies did the right things to be what they were. Once successful they continue to do the things that made them successful and fail to notice the changed environment and customer preferences, till one day their competitors do the right things and surpasses them.

In early days, prior to globalization and internet running a business was like sailing a ship. The captain of the ship set the direction, conducted periodic review and took action for mid-course correction. In the present era of rapid information exchange and global competition running a business has changed from isolated sailing to more like driving in a busy road. Only vision and direction are not enough to run a successful business. One need to get continuous feedback of changes that are happening and be agile to make quick correction.

Business Analytics give us this visibility to know about our business transparently and quickly. It assimilates information from outside agencies, our own operations and compares them with our business plans to provide timely actionable information in the way it is easy to comprehend and act.

What is Data Analytics

Business Data Analytics is the science of examining data about business operations, customers and its environment to derive some knowledge that help to make better decisions. Many people tend to mix-up Data Analytics with Data Mining. It is often easy to mistake one for another.

Many of the techniques and underlying technology between Analytics and Data Mining are common but one must remember the focus of two are entirely different. Data Mining is focused at discovering  new relationship between data. Business analytics on the other hand aims at making better business decision. Discovering new relationship is not the focus of Analytics.

Data Analytics aims at collecting, cleaning, transforming, harmonizing data from different sources and using them in mathematical models to derive useful information, support conclusions and support decision making process. Data Analysis has many different facets and diverse techniques that find use in different business, science, technology and social domains.

Different types of Analytics

Data Analytics can be broadly divided into exploratory data analysis (EDA), where new properties of data is discovered and confirmatory data analysis (CDA), where existing decision hypotheses are proven true or false. There is another branch of analyzing qualitative data (QDA) that deals with non-numerical data. QDA is used in the areas of social sciences, cognitive computing like pattern recognition, gesture analysis, defect detection etc.

Exploratory Analysis involves extracting various properties of data and its relationship with other data elements. Typical example of EDA involves regression analysis, time series analysis etc. to reveal underlying trends in the data, cluster analysis to identify groups of data, Box plot to interpret trend of mean value and its variation, histogram to understand how data is dispersed. Sometimes exploratory analysis is used in conjunction with data transformation to modify and view it from different perspective.

Exploratory analysis tell us new details of our business that may have been hidden from our view. For example exploratory study may show us some new market segment that are not yet tapped by competition. It may show us reduced business from a segment of customers, which may have been neglected by simple charts.  Exploratory analysis may help us to predict result of our business decisions. It may show us additional profit that can be made by some capacity expansion or by adding new product.

Confirmatory Analysis is used to confirm business decisions and optionally evaluate risk of wrong decision. CDA is used in medical industry to establish efficacy of a treatment. It is at times used to check effectiveness of some business policy, verify authenticity of transaction, establish authorship of documents, selecting best policy from different conflicting choices. Decide process parameters to improve its performance and such things. Some example of CDA are use of cash incentive for family planning, use of speed breaker to prevent accident, decide amount of spice to use in a snack.

If you are using any social networking site then you are probably aware of QDA. Most social networking sites use QDA to find friend of your friends and can flag the relationship. These sites also perform a text analysis of your comments and writing and target advertisements based on keywords that you used. QDA can be used in similar way to find out about your end customers, competitors. One can purchase data from various stores and market research agencies to gather further intelligence about price movements at various markets or change of market segments.

Steps of Data Analysis

Most data analysis goes through very standard steps. These are:

1. Data Acquisition: Data for most analysis comes from various sources. Some data may come from data base, some may be transferred over internet using XML format, some data may need to be retrieved from website and some data data may be available as text files. All these data needs to be acquired and brought into purview of analysis.

2. Data Cleansing: Once the data is acquired it needs to be checked for accuracy. Some junk data may get bundled with the main data. These junk data need to be filtered. Some data correction may need to be made before the data is taken for further processing.

3. Harmonizing: In this step data from various sources are merged together. Certain amount of transformation may take place at this stage to accommodate for different international standard of decimal, date and currency.

4. Transformation: Once the data is ready for analysis, usually the first step is to transform the data to make it ready for analysis. Transformation may involve extracting statistical information like average and variance. It may involve using some mathematical transformation, aggregation, comparison etc.

5. Staging: After transformation data for analysis is normally stored into staging layer. Staging layer often use special storage technology like columnar storage like SAP/HANA, in-memory data base, high performance file system (like HADOOP). These storage techniques makes it easy for us to use the data in multidimensional query, perform complex analysis over relatively large amount of data.

6. Visualization / Reporting: Visualization layer is what we normally see in data analysis. These tools make it possible to display result of data analysis in attractive and easy to comprehend manner. Some of the reports may be stored in pre-calculated form, while some other may be distributed by e-mail. In some specific cases the data maybe used to trigger some automated process, like ordering material or make one changes in process parameters.

Why Analytics is important

Data Analytics is used by Travel and Hospitality industry to know about customer preferences, predict demand reach out to target market. Retail industry uses it to predict product demand, manage their inventories, decide on product pricing, keep track of customers buying habits, manage their loyalty programs, keep track of market trends. Health-care industries use analytics to keep track of their patent records, health plans, insurance plans, plan their capacity and schedule their resources. Manufacturing industry uses it to track supplier performance, monitor their supply chain, monitor quality, reduce costs and find opportunities of new product. Agro industries uses analytics find price trends in different market, gather knowledge about end customers, keep track of crop growth, analyze performance of different seeds, fertilizers and other inputs.

There is no industry that do not benefit from better knowledge and insight that are based on real data. The days of depending on only personal opinion and hunches are over. Today every one is using data driven decision making. In the world of analysis, there is a place for personal wisdom. These are used to form decision rules and hypothesis that form the basis of CDA. Analytics add value to these wisdom by checking effectiveness of these hunches with actual data and show if the decision will real benefit. CDA makes personal wisdom robust by flagging the good decisions and not so good ones.

Business Benefit of Analytics

Most companies generate lot of data that lies in their files and hard disks underutilized. Data analytics helps organizations to use their data to identify new opportunities. Such analysis makes it possible to make smarter business moves, more efficient operations, higher profits and happier customers. People have found from the studies in companies that already uses Data Analytics to understand how they used it. They found the companies got benefit in the following ways:

Cost reduction:

Big data technologies such as Hadoop and cloud-based analytics bring significant cost advantages when it comes to storing large amounts of data – plus they can identify more efficient ways of doing business.

Faster, better decision making: 

With the speed of Hadoop and in-memory analytics, combined with the ability to analyze new sources of data, businesses are able to analyze information immediately – and make decisions based on what they’ve learned.

New products and services:

With the ability to gauge customer needs and satisfaction through analytics comes the power to give customers what they want. Davenport points out that with big data analytics, more companies are creating new products to meet customers’ needs.

Matching reporting with users

One can make excellent analysis and beautiful reports but if these reports are not actually used for decision making then it is of no use. To be useful data analytics needs to be presented in correct format, time and in correct medium.

For example, IT department of a big real estate industry made a report to show flats availability across multiple projects and cities. Technically the report was excellent and very useful, but it was not being used. The persons who will use the reports, the real estate agents are out in the field, meeting prospective clients. They did not have the data readily available with them. When the same report was made available in a mobile platform, it become a much loved tool. The agents could use the report to tell customers availability of flats at different cities that meet their liking in terms of locality, floor, size and budget. They could also book these on-line sitting at the field office.

Similarly, users have their preference for consuming the information in tabular data format or in graphical form. Some users like the graphs simple with one graph in a page, some love to have them together in a dashboard like presentation. One has to take into consideration of the user profile, their background and environment where the report is being used. Presentation of analytics report play an equally important role as data crunching part.

How to deploy Analytics reports

With the technological advancement, today there are number of choices to make reports available to final decision maker. We can make the reports available on mobile platforms, show it on terminal, display it on electronic boards or send it as email. Choices are many. Each platform requires the report to be formatted in certain way.  Each technology has its advantages and disadvantages. One has to choose the technology judiciously to disseminate reports.

Best Practices for Data Analytics

One must remember that analytics do not run the business. It provides important information to aid decision making process. Very often people make the mistake of referring too many parameters. With automated reporting it is quite easy to err on the wrong side.  Making decision that are based on too many reports is like driving a car with dash board full of instrument clusters. Such approach blurs our focus and confuse us.

Successful Analytics implementation will devote lot of effort in selecting a handful key performance indicators that have clear and direct relationship with the organizational strategy. These KPIs are then owned by responsible members of the board. To support the KPI some auxiliary indicators are identified. Organization will use these KPIs to monitor progress and get feedback on the progress.

Other data that have no relation to organizational strategy will be used to explore for future opportunities but never be allowed to meddle with main executive dashboard. In large organization main KPI maybe

broken up into a set of smaller KPI that form the main focus of different branches of the organization. Such breakup may happen by functional, regional or product group-wise. The dynamics of distributing the main KPI into sub-targets is based on the way organization operates. When such sub-division of KPI is made analytic report needs to get tuned to report figures in the same line. When strategy and data analysis are in harmony the organization gets best benefit.

Posted in Analytics | Leave a comment

Laxmi to Narsi, Palam with directed path

I joined IT-BHU (now IIT-BHU) in 1979. It was my first time in a hostel. We met so many new faces of nearly same age group. Most of us was worried with uncertainties of facing a new place, new environment and that dreaded feeling of “ragging”. With all these tensions around I found one guy was ever smiling. That was Laxmi.
Laxmi was ever helpful. In third year we had computer. It was our first experience in typing on qwerty keyboard. Laxmi knew typing and he helped me to pick up touch typing so that it was easy to interact with computer.

That year we had a rather short winter vacation and I did not go home. Laxmi also did not go home. On Dec 25th we discovered that most hostels are deserted. Life suddenly felt very dull sitting quietly in the deserted campus. We got a brainwave to go to Obra on bike. Fortunately that was not the age of internet, and we did not have many sites to consult and contemplate. The distance of 110 Km looked achievable. We packed our bags, took a bicycle pump for insurance and paddled our way to Obra. We took a decision on spurt of a moment, did not realize that near the end of our journey, we shall have to bike up the hill. There were five of us – Ashish, Sakil, Laxmi, Wahati and me. We faced the challenge but somehow made it to Obra by evening.

The journey was memorable. Biking such long distance and on hilly road had its own thrill. View around was fantastic. What eye saw compensated the pain we had on our legs. We spent couple of days in Obra and then returned on 31st.

Now after thirty odd years, most of the photographs that we took on the way have gone. Only a few prints remain, but the memories remain fresh.

Later in the next semester both Laxmi and I took Operations Research as electives. There were only a few students in that class. We used to clear each others doubts, in the process we become close friends.  In final year all of us shifted to new hostel. Laxmi was one of the first batch of students to reach hostel that year. He had reserved two rooms beside his for me and Srini, who was also very close friend during my college days. While returning both of them visited my house in Kolkata. That was last we saw. 

Laxmi went to do his PhD in USA, I went for my PG in NITIE. During the student days we used to write often. Sometime for some books he wanted to be shipped from India. Some time, when chatting and skype became an option we had long discussion over influence of philosophy over scientific thinking. It was through such discussion I developed an awareness of of duality concept that graeco-roman scientists tend to follow and most of us follow the same line of reasoning unquestioningly and its difference with oriental pluralistic systemic thought process. After his PhD and few years of teaching, Laxmi was bitten by the entrepreneurial bug and floated his first company – OHMS: Optimization & Heuristics Management Solutions Inc. He was very thrilled with the new venture and sent me his visiting card. During Dot-Com boom OHMS did good business by advising new companies on algorithms. As the bubble burst, so did OHMS. Laxmi was very fond of OR and maths. When e-mails became popular and came to India, he was one of the first one to send me an e-mail. His id was orpi@cmil.com; orpi was combination of OR and Pi (representing Maths). 

After OHMS, Laxmi floated many companies. Palam was one of the successful one that rode on the outsourcing wave. Palam acted as quality and delivery agent for many Indian companies, in the process it helped quite a few Indian companies to reach out to US market. Laxmi preferred the business model of taking share of company and being on board for the companies he helped to expand in US. Over the years Laxmi became board members in quite a large number of companies. During this time he preferred to be called as Narsi, which was short of his family name. Thus S Laxmi Narasimhan metamorphosed into Narsi. 

During this time I also saw him develop a strong passion for community work. He was very passionate about the Swaminarayan Temple of Atlanta and loved to accompany visiting Indian celebrities. He used to be a shy person during his student days, but we saw him change to a heavily networked person and become founder of Indian Professionals Network (IPN). Whatever Narsi did, he will drop in a link or share the news clip. Like his getting elected as  chairman of the Georgia Indo-American Chamber of Commerce or his photo being published in local newspaper.  Narsi was a co-traveller who took the road I did not take but we had a bridge (“palam” in Tamil as he explained it to me) that remained between us.  But then Narsi crossed a bridge that has no return path. A directed graph as Narsi would probably have like to call it. On 2nd May, 2016 I was in Pune. I was not reading the mails regularly. Suddenly I got a mail with this shocking news that Narsi has passed away after a massive heart attack on Apr, 29th in his apartment. This is a news that took a long time to register and will take a long time to digest. We will all cross the bridge that Narsi crossed at some point in time but this time he could not share the news.  This news brings association to a song that keeps buzzing in my head, let me share it with you all — 

Posted in BHU, My Life | Leave a comment

Spatial reporting with R

Many times we need to plot geo-spatial data in analytics. Information like sales per region, income distribution makes more sense when they are plotted on a map. We can do this quite easily in
R. Let us see it in action.

First of we need data about the map. There are many libraries from where we can download this data
for our personal use. Here we will use data from http://gadm.org/  Here there are data at different levels of details available for most countries. Let us use data for India. To load this downloaded data into R, first open R in R-Commander and change your working directory to where you saved the file

setwd(“/home/soumyanath/Downloads/R_Maps”)
and then read the data into a variable with

ind1 <- readRDS(“IND_adm1.rds”)

Let us check what kind of data has been loaded with

class(ind1)

It will show

[1] “SpatialPolygonsDataFrame”
attr(,”package”)
[1] “sp”

As it is SpatialPolygon, let us load library(sp)

library(sp, pos=4)
library(methods, pos=4)

Now, the question is, how do we see this data? There is a function to plot spatial data, we use that

spplot(ind1, “NAME_1″, scales=list(draw=T), colorkey=F, main=”India”)

will show a map. Actually I do not like it, it shows a truncated view of Kashmir, but then we are

using data from an USA repository and I have no means to influence them. We shall revisit this part at a later stage on how to correct the maps, but for now, let us make use of what we have. To manipulate data we need to know properties of the data that we have. We can look into the loaded data with names function. It shows:

> names(ind1)
 [1] “OBJECTID”  “ID_0”      “ISO”       “NAME_0”    “ID_1”      “NAME_1”    “HASC_1”    “CCN_1”     “CCA_1”    
[10] “TYPE_1”    “ENGTYPE_1” “NL_NAME_1” “VARNAME_1”

We can also check property of the data by using

summary(ind1)
This will show various properties of data loaded. Right now we are interested in knowing ID for the states so that we can use it to color the maps with our data. We can user print(ind1) to view complete data, but in this case it will be a huge print. In this example we will use state ID “HASC_1” to plot our data. We can see the values with:

print(ind1$HASC_1)

Right now we do not have any data so we populate a excel sheet and fill data with state ID, fill some sales data and assign a color value based on sales amount. In reality we will probably use a data base to get this data. We save data into csv format and read it in R by:

pdata = read.csv(“filename”)

confirm data has been read correctly
We add a new property color.data into the dataframe ind1 based on color values taken from csv file

ind1$color.data =pdata[pdata[1]==ind1$HASC_1,3]

Now we plot the map with these color. The command is

spplot(ind1,”NAME_1″,  col.regions=ind1$color.data, colorkey=T, main=”Indian States”)

We have the result here

Same concept can be extended to district level for more granular analysis.

In our next blog, we shall see how to link this map projection with database to get real time analysis

Posted in Analytics, R, spatial data | Leave a comment

Flower Cycling options

Today in the news feed I saw a news that I thought I shall dwell a bit. The news was about a new venture setup by two friends Ankit Agrawal and Karan Rastogi. They are from a place that is pretty close to my heart — Kanpur.  The city is one of the typical polluted industrial city that has grownup organically without much planning. But what these guys did is commendable.

These friends realized that our religious minded people do not like to dump flowers in garbage. They would dispose these flowers in river. The flowers, approximately 80, 00,000 tons  that gets dumped in rivers cause enormous pollution. They have setup a venture to collect these flowers and use vermi-culture to convert it into good organic fertilizer.

It is a novel idea, but I would say it is also a waste of sorts. Flower has many things that we value – smell and color are two most visible thing in flower. Dried and grounded flower powder is often used as gulal that we use during holi. Essential oil from flower can be extracted by many different methods, like:

  • Enfleurage
  • Expressed Oils
  • Steam Distillation
  • Solvent Extraction
  • Fractional Distillation and Percolation
  • Carbon Dioxide Extraction
  • Phytonic Process
More details about it can be found in Nan Martin’s blog.
As we have a huge stock of flower, extracting this oil could lead to substantial increase in our GDP. After extracting the oil we may use the flower for making organic dye, that can be used in our textile and other cottage industries, part of it can also be used to make organic gulal. Only after we have actually extracted the usable parts, we should feed the rest to worms. Worms do not need the perfume and color, we do. 
Recycling is good but making full use of the potential is better. 
Posted in Art of living, Environment | Leave a comment