Monday, August 1, 2011

The Phenomenon (Human Reaction to choices)

Since our group is curious to find out about the time taken for a person to choose. We decided to work in this area. During our research, we found out that Hick's Law proposed that the time taken for a human to choose something increases exponentially as the number of choices given to that person increases. Thus Logarithms is involved.

We decided to investigate in this area. And we found that the Hick's Law is the most suitable to calculate this phenomenon. To prove that we understand this topic on logarithms and to prove that Hick's Law is true, we did an experiment with several friends. (As this is all about human behaviour and human reaction)

We used the formula in Hick's Law, which is T=b x log2 (n+1).

To refresh your memories, T is the time taken to choose from a variety of choices. n is the number of choices given to the person. However, there is one more constant, which is the b. We concluded that b varies from person to person as every human is different. So, how did we execute this 'experiment'?

First we had to find the constant b. We formulated a question for our friend. (Anonymous to protect his identity -- Stated in the report) We gave decided to give him 4 choices of fruits to choose from. (Since we do not know the constant b, we had to work backwards).

Q: Choose with carefully consideration and do not be bias in this test. What would you choose? Orange, Apple, Pineapple or Honeydew?

A: (After 5 seconds) Apple.

And we worked backwards to find out his constant b.

T=b x log2 (4+1) --> 5s=b x log2 (5) --> 5/log2 (5) = b
And b is 2.15338279.

And we can continue with our experiment! Next, we formulated another question. But this time, we gave him 6 choices to choose from. Before we even asked him the question, we calculated and predicted the time he will take to choose from the 6 items.

T=b x log2 (6+1)
T=2.15338279 x log2 (7)
T=6.046559356

Round down to 6s.

Q: Choose among these drinks. Peach Tea, Green Tea, Ice Lemon Tea, H-Two-O, Bubble Tea or Apple Tea?

A: (After 7 seconds) Bubble Tea.

He took 7 seconds to answer this question. Although the answer and the predicted answer was not exactly the same, it was a difference of 1 second. Give and take 1~3 seconds for human reaction, he is in the range of our predicted answer and we have successfully completed our experiment!

However, we were not happy with just 2 questions. We formulated another questions. This time, we gave him 9 choices to choose from.
Again, the formula -->
T=b x log2 (9+1)
T=2.15338279 x log2 (10)
T=7.153382789

Predicted Time taken for him to choose from 9 choices is about 7s.

Q: Choose a brand of a car. Toyota, Honda, Ford, Fiat, Chevrolet, Volkswagon, Mitsubishi, Nissan, Proton.

And indeed, this time, he took 7 seconds to answer!

Isn't it amazing!?

pH Scale (Real-life Application) -- Continued

Here's another real-life application we did to confirm this phenomenon! Again, we experimented with a drink. But this time we experimented with orange juice.

So again, .
Hydromium Ions in orange juice is 3.2 x 10^-4

Thus the pH level of the Orange Juice is about 3.5. We have also crossed referenced our findings with other dietary websites and confirmed that the pH level of orange juice is indeed 3.5

Real-Life Application of pH Scale

To prove that the pH Scale formula is correct and to relate what we have learnt about logarithms into reality, we have made this small little experiment.

For starters, we experimented on a drink that is very familiar to us -- Lemon Juice.
As we all know, Lemon is acidic. But how acidic is it? Let's find out!

By using the formula , we sub in some numbers:
Lemon has a Hydronium Ion number of 3.2 x 10-3.

Thus

pH = -log(3.2 x 10-3)

pH = 2.494

Round up to 2.49

Therefore the pH level of the Lemon Juice is 2.49. We cross-referenced it to several websites and confirmed that the acidity of Lemon juice is 2.49.

http://www.indiacurry.com/chutney/foodphlevel.htm

http://www.everydiet.org/diet/acid-alkaline-diets

http://answers.ask.com/Science/Chemistry/what_is_the_ph_level_of_lemon_juice


Friday, July 29, 2011

Hick's Law

Ah! This is interesting! Hick's Law describes the time it takes for a person to make a decision when he has choices to choose from.

Definition of Hick's Law: The time M(n) required to make a choice from a menu of n items rises with the log to the base two of n.
It's relatively simple to understand, right?

So from now on, you can use the Hick's Law to find out the amount of time it takes for your friend to make a decision!

It is logarithmic as people subdivide the total collection of choices into categories and eliminate half of the remaining choices at each step. They DO NOT consider each and every choice one-by-one. (Linear Time)

The important fact that needs to be noted is the Rule of Large Menus. Guess why restaurants have big and large menus rather than small ones? It's because of the Rule of Large Menus! (One large menu is more time-efficient than several small submenus supporting the same choices, even if we ignore the time overhead of moving among submenus.)

Another important rule is the Rule of Target Size. The size of a button should be proportional to its expected frequency of use. This explains why our shirts have small buttons! It's because we don't use the buttons often! We only think of it when we put the shirt on!

The Rule of the Infinite Edge is also another rule derived from the Hick's Law. The easiest target rectangles on the screen are those adjacent to its edges.

Hick's Law is widely used. It is used in combat fights, sports (reaction time) and many other things in life! Some of Hick's Law's favourite quotes are:
"Lag time increases significantly with the greater number of techniques"
"It takes 58% more time to pick between two choices"
"It takes about a second to pick a tactic"
"Selection time gets compounded exponentially when a person has to select from several choices"

And how is the Hick's Law logarithmic? It's quite similar to the Fitt's Law. The more choices one is given, the time taken for the person to choose is exponentially proportional to the number of choices he is given. Again, the time taken increases by the factor of 10.

T = b \cdot \log_{2}(n + 1)
http://upload.wikimedia.org/math/f/c/f/fcfb68e3f4f84b245eb0074178873575.png

Here's the Hick's Law formula!

T -- Time
b -- Constant that can be determined empirically by fitting a line to measure data.
+1 -- Because there is uncertainty about whether to respond or not, as well as about which response to make
n -- The number of choices given


The Weber-Fechner Law

The Weber-Fechner Law talks about the relationship between the physical magnitudes of stimuli and perceived intensity of the stimuli. The Weber-Fechner Law was created by 2 people, thus the name "Weber-Fechner". Weber made a law that expresses relationship between quantity an intensity of something and how much more needs to be added for people to be able to feel that something has been added. On the other hand, Fechner provides an explanation for Weber's Law, thus the name "Weber-Fechner".


Simply speaking, Weber experimented on the weight needed for a person to feel the difference when additional weight is added. Weber found out that the smallest noticeable difference in weight is proportional to the starting vale of the weight. This means that if you are holding a weight of 500g, an additional 500g is needed for you to feel a noticeable difference. If you are holding a weight of 2kg, you will need 2kg more worth of weight for you to feel a difference.

The relationship between the stimulus and the perception is logarithmic, just like pH scale and the Richter Scale. So have you found something interested about logarithms and the application of it in reality? Logarithms is used to calculate numbers that are very big. As the thing you are finding increases by 1 unit, the effect is increased by 10 times and then the following increases by a factor of 10.

Anyway, coming back to the Weber-Fechner Law, logarithms is used to calculate human perception of things. The Weber-Fechner Law does not only still true for the touch senses of a human, it is also valid for other stimuli and other sensory perceptions as well, such as our hearing and our vision.

Now, time for the formula that proves the this amazing phenomenon.
 p = k \ln{\frac{S}{S_0}}.  \,\!
http://upload.wikimedia.org/math/7/8/0/780dc889d3ca8d5048baa2acf4806d3a.png

It is derived by a series of calculations, including perception and the constant of integration.

Seeing formulas does not amaze us that much. However, when we apply it to reality, it will definitely WOW you! After we touch on the last law -- Hick's Law, we shall move on to the Real-life applications of all these formulas!!

Thursday, July 28, 2011

Logarithms in Psychology (Fitt's Law)

Logarithms can be applied to Psychology too! In the introduction of logarithms, we introduced 3 laws in Logarithms in Psychology. They are
1) Fitt's Law
2) Hick's Law
3) Weber-Fechner Law

Basically, these are laws used to calculate human reaction time. Fitt's Law is model the act of pointing, either physically touching an object with a hand or finger, or virtually, by pointing to an object on a computer monitor using a pointing device.

The person who invented this Law, Fitt's, discovered a formal relationship that models speed or accuracy tradeoffs in rapid, aimed movements. According to Fitt's Law, the time to move and point to a target of width W at a distance A is a logarithmic function of the spatial relative error.

There are a few variations to this magical Fitt's Law. (the traditional way and the improved method) However, they all use the concept of logarithms. The variations are the use of different symbols. However, if you closely compare the different formulas, they use the same theory and are the same.

Here's the formula that we find is the easiest to understand:
T = a + b \log_2 \Bigg(1+\frac{D}{W}\Bigg)
http://upload.wikimedia.org/math/e/7/e/e7e6cee6e7664d150f8db606c7f6fc02.png

Definitions:
T -- Average time taken to complete the movement
a -- Represents the start and stop time of the device (intercept)
b -- Represents the inherent speed of the device (slope)
*Note that a and b can be determined by fitting a straight line to the measured data
D -- The distance from the starting point to the center of the target
W -- The width of the target measured along the axis of motion.

However, traditionally, researchers used different symbols for this formula.
T can be replaced by MT, which is the movement time
1 can be replaced c, which is a constant of 0, 0.5 or 1. (We use 1 as c)
D can be replaced by A, which is the amplitude
And W corresponds to "accuracy"

By using this formula, we can predict speed of the action of pointing to or tapping an object.

http://cdn.sixrevisions.com/0128-03_diagram.jpg

As you can see from this diagram, the object's distance and width does play a very important role in calculating the speed and accuracy of the action.

The pH Scale

Is Logarithms only usable in geography only? (Richter Scale)
The answer is definitely NO!
Logarithms is used everywhere around us. It is so common that we don't even know it exist in our lives! Another example of applying logarithms is in Chemistry. Remember those strips of paper you use in the Chemistry Laboratory to test for acidity and alkali? It makes use of the pH level right? Guess what? The pH Scale also makes use of Logarithms!

How the pH Scale works is almost the same as the Richter Scale. The pH Scale ranges from 0 to 14 when pH level of 7 is neutral. pH less than 7 is acidic and increases it's acidity as it goes down the scale. A pH greater than 7 is alkali and it increases alkali when it goes up the scale. As mentioned just now, the pH scale is logarithmic. How much more acidic is pH 4 to pH 3? How much more alkali is pH 11 to pH 12? It applies the same concept as the Richter Scale -- Magnitude. For every unit, the acidity/alkali increases/decreases by factors of 10. For example, pH 4 is 10 times more acidic than pH 5. pH 3 is 100 times more acidic than pH 5. This is very similar to the magnitude of the earthquake.

So what is the magic formula for pH Scale? Here it is!
http://www.okc.cc.ok.us/maustin/Eval_Logs/Image827.gif

is the hydronium ion concentration in moles per litre.
Here's an example: (We are going to calculate the pH of milk)

(pH Formula)
(Substitution)
pH = - (-6.4)
pH = 6.4

And thus the pH of milk is about 6.4.


We follow the hydroxide ions by this chart
[H3O+]pH[OH-]Example
1 X 10001 X 10-14HCl (4%)
1 X 10-111 X 10-13Stomach acid
1 X 10-221 X 10-12Lemon juice
1 X 10-331 X 10-11Vinegar
1 X 10-441 X 10-10Soda
1 X 10-551 X 10-9Rainwater (unpolluted)
1 X 10-661 X 10-8Milk
1 X 10-771 X 10-7Pure water
1 X 10-881 X 10-6Egg whites
1 X 10-991 X 10-5Baking Soda
1 X 10-10101 X 10-4Ammonia
1 X 10-11111 X 10-3
1 X 10-12121 X 10-2Drano®
1 X 10-13131 X 10-1NaOH (4%)
1 X 10-14141 X 100
Isn't Logarithms interesting!?

It is easy to understand too! The same goes for decibels too!