Friday, August 31, 2012

Data Table an Introduction



Data in mathematics is the collection of facts which can be values or measurements. They consist of numbers or observations or values or just description of the things. Data is mainly of two types, quantitative data which consists of numbers and qualitative data which consists of descriptive information that which describes something. Quantitative data can be further categorized into discrete and continuous data. A discrete data can be only certain values or whole numbers and continuous data can be any value within the given range. These values can be tabulated for better understanding of the given data.  Data Table as the name suggests is the data tabulated in rows and columns. Data Table Definition is the tabulated display of information or data in named rows and columns.
Example of a data table : The rainfall (in mm) in a city on 7 days of a certain week was recorded as follows:

Day Mon Tue Wed  Thu  Fri   Sat  Sun
Rainfall 0.0 12.4  3.2  0.0  20.4  6.8 1.2
(in mm)

Two way Table is a table in which the data is categorized in a two way that is a cross classification table.
In a two way table we have a column of data for one input and a row of data for the second input. At the intersection of the row and the column the
answer is written.

The following is a two way table showing the information about the number of girls and boys with their ages, in year 9, in year 10, in year 11 in a school
               Year 9     Year 10 Year 11
Boys   70    80   140
Girls   75   110   170
Total  145    190   310

In the above two way data table we have two parameters boys and girls at once in the rows and in the columns the ages with number of girls and boys.  This two way table is useful to estimate the probability of an outcome.
Creating a Data Table
First the table is to be named. The title should be related to the data put in the table.
Next we need to figure out how many rows and columns are required according to the data given
We need to now draw the table with the necessary rows and columns. The top row and the first column are used for labeling. The leftmost column is for the independent variables for instance, if the data is about the rainfall in the previous year. Here, the independent variable will be the ‘months of the year’. So, the leftmost column is labeled ‘Month’ and the next column is labeled as ‘rainfall’
The experiment outcomes are recorded in the appropriate columns. The information displayed in the table should be clear and obvious. All the spaces should be filled with a number, no space should be left.  If any derived result from the data or an average in the given data should be written in the right most column.
Finally the table has to be checked thoroughly making sure all the data is clear and correct for further use of the information of the data table.

Wednesday, August 29, 2012

Sum and Difference Formulas in Trigonometry



In this article, we will discuss about the sum and difference formulas in various parts of mathematics. First we see the sum and difference formulas in trigonometry for various trig functions. The sum & difference formulas include two angles which will be defined and the angles are applied to the various fundamental trig functions. The formulas show the relationship between the two angles and trig functions. These formulas are very useful to solve the problems in trigonometry.

First we discuss about sum and difference formulas for sine function. Suppose we have two angles named as (a) and (b), then for the two angles we write the relationship as sin (a+b) =sin (a) cos (b) +cos (a) sin (b). the  difference formula is expressed as sin(a-b)=sin(a)cos(b)-cos(a)sin(b). To prove these formulas we have to use geometry calculus. Now we take cosine function, suppose we have same angles, then for the two angles we expressed sum formula as cos(a+b)=cos(a)cos(b)-sin(a)sin(b) and difference formula expressed as cos(a-b)=cos(a)cos(b)+sin(a)sin(b).

The sum & difference formulas for third trigonometric function mean Sum and difference formulas for tangent function. This formula is valid for all values where tan a, tan b and tan (a+b) are used. Where (a) and (b) are the two angles. The formula can be expressed as tan (a+b) = (tan a+tan b/1-tan a*tan b) and difference formula is tan (a-b) = (tan a-tan b/1+tan a*tan b). The formulas for tangent function also used for finding the angle between two lines. But the question is how to find the angle, so for finding angle we have to calculate the slope of both lines. The equations can be written as tan θ= (m1-m2/1+m1*m2), where m1 is slope of first line and m2 is slope of second line.

Now sum and difference formulas examples. First we take example for sine and cosine function then tangent function. First problem is, suppose we have to calculate exact value of sin (75°). For this we use sum angle formula such as sin(75°)=sin(30°+45°)=sin(30°)*cos(45°)+cos(30°)*sin(45°) and we know the value of sin(30) and sin(45). Second problem is, suppose we have cos x=1/2 and cos y=1/3 then we calculate the value of cos(x+y) and cos(x-y). So using sum and difference formula cos(x+y) = (1/2*1/3-1/3*1/2) =cos 0=1.

Now problem based on tangent formulas. First problem is, find the exact value of tan (105). Using sum formula tan (105°) =tan (60°) +tan (45°)/1-tan (60°)*tan (45°) and we well know the value of tan (60°) and tan (45°). Second problem is, suppose given data is y=3x-5 and y=-2x+2. From these two data we write slope of both lines m1=3 and m2=-2. Then we use angle formula tanθ= [3-(-2)/1+ (3)*(-2)]. After simplifying we calculate the angle.

Tuesday, August 28, 2012

Table of Integrals


Integration is a fundamental operation in integral calculus. Integration means calculating the area made by curve. While doing integration, table of known integral are very useful. There are various types of table of integral. First type is definite integral table, definite integral means integration of function with definite limit. Such as integration of fx dx where limit are x=a and x=b, which made an area. Suppose limits are indefinite then it is known as improper integral. For this type of problem we use suitable limiting procedure to convert indefinite limit to definite limit.Definite integral table contain many expressions. In contains elliptic integral, square root, arc tangent means inverse tangent functions, exotic function and some special functions.

Gaussian integral table contains expressions of erf function or error function, Gaussian integral table also known as probability integral.  In this type of integration  we have to integrate one dimensional Gaussian function over the limit from negative infinite to positive infinite(-ve8, +ve 8) it can be solve by using a technique like combining to, one dimensional function in Gaussian function. Here we integrate first dummy variable present in the integral and carryout the term in the end. The n it becomes function of one variable. Now we move to polar coordinate. It is not necessary to use polar coordinates, also we can proved in simple way. Now we take continued function whit erf, or error function.  To solve this function we use Laplas method.

Exponential integral table contain integration of exponential functions. Exponential functions means e^x functions, where e is a number whose value is 2.718. Integration of exponential functions means constant change in the independent variable gives same change that is proportional to input. Exponential functions some time written as exp(x), but it is unpractical to write for any independent variable. Other than mathematics exponential functions are also used in physics and chemistry. Some integral table exponential function are-

Exponential function = e^x
Inverse exponential function = ln x
Derivative of exponential function = e^x
Indefinite integral of exponential function = e^x +p

Increasing exponential function always above from x axis and closed to negative value of x. some time it can be expressed as cbx in this form base b is real number, Variable x can be real or complex number and c is a constant term. Decreasing exponential functions always below from x axis and closed to positive value of x.

Thursday, August 23, 2012

Prime Numbers



Prime Numbers:

A prime number is one that has only two factors namely 1 and itself and a composite number has factors besides 1 and itself.


A natural number greater than 1 that has no divisor between 1 and itself is said to be prime, hence called a prime number or simply a prime. Every natural number greater than 1 has at least the two distinct divisors 1 and itself; a prime has no others.








The number 2 is a prime, there being no candidate divisors between 1 and itself; from it, all even numbers thereafter are non-prime, i.e. 50% of all subsequent numbers. The numbers 3, 5, and 7 are all prime, meaning that, of the first six such subsequent numbers, precisely half are prime, half non-prime. However, of any subsequent six consecutive numbers, at least one of the odd values must be divisible by 3; including the three even numbers this means that at least 66% must be non-prime. So the trend goes; as we look further afield, with an accumulating collection of primes to be divisors, the density of primes declines progressively. But, no matter how far up the numbers we travel, we never exhaust the primes, nor is there any known point above which all further primes are spaced by more than the minimal value of 2 .

Hope you like the above example of Prime Numbers.Please leave your comments, if you have any doubts.

Finding variance and variance analysis



We know that the mean is a measure of central tendency. However, what we don’t know is that the mean is many a times not very useful in making informed decisions. Let us consider the following example to drive the point.Suppose one cricketer is to be selected from two on the basis of his batting performance.

The scores of the cricketers A and B in the last 5 innings which they played together are as follows:
Cricketer A: 51, 53, 52, 55, 59
Cricketer B: 85, 23, 69, 07, 96

If we compare the scores based on the mean, then mean of cricketer A is (51 + 53 + 52 + 55 + 59)/5
= 54 runs
And the mean of cricketer B = (85 + 23 + 69 + 07 + 96)/5 = 56 runs.

Thus if the decision is to be taken on the basis of comparison of the means only, then cricketer B would be selected since he has a higher mean runs. But if we take into consideration the reliability of A and B we can obviously notice that B is not reliable, because he is not consistent. B scores 96 runs in one inning but at the same time scores only 7 runs in another inning also. A is consistent in his score and so is more reliable. In other words the difference between two scores of B is very large where as in case of A it is very small. It means that the data regarding the scores of B deviates from the centre instead of concentrating at the centre.

This tendency of a data set to deviate from the mean is called dispersion and its value is called the measure of dispersion. Thus to come to a sensible conclusion from a given data set, we need to know the mean as well as the dispersion. The lesser the dispersion, the more reliable is the mean of the data.

Define Variance: Variance is a measure of dispersion from the mean. Just like how we saw in the example above, variance analysis helps us to understand dispersion of data from the mean so that we can decide better.

Formula for variance: For finding variance we use the following formula:
Variance = V =[ (X1-M)^2 + (X2-M)^2 + (X3-M)^2 + …. + (Xn-M)^2]/n
Where, X1,X2,X3,….Xn are the n observations and M is the mean of these n observations.

Tuesday, August 21, 2012

Second Order Differential Equation



A second order differential equation is an equation involving the unknown function y, its derivatives y’ and y” and the variable x. in the mathematical form we can write d^2y/dx^2= f(x,y,y’).  This equation is the basic form of second order differential equation.

Let’s discuss some types of second order differential, first is second order linear differential equation. The most general form of second order linear differential is p (t) y”+q(t)y’+r(t)y=g(t).  Where p,q,r and g are continuous function, we can use this equation to study of the motion of spring. In the above equation if g(t) =0, the its is called homogenous linear equation so the form of second order linear homogeneous equation is p(t)y” + q(t)y’ + r(t)y = 0. As same if g(t) is not equal to 0 then the equation is called nonhomogeneous linear equation.

Now lets consider second order linear homogenous equation, now to solve this type of equation, there are two basic facts that we have to consider to solve linear homogeneous equation. The first fact says that if we know two solution y1(x) and y2(x) of such a equation, then the linear combination y= c1y1(x) +c2y2(x) is also a solution. The second facts says that if y1 and y2 are linearly independent solution of such equation (second order linear differential equation) and p(t) is never 0, then the general solution is given by y(x) = c1y1(x) + c2y2(x).

Generally this is not very easy to find the particular solution to second order linear differential equation, but it is always possible to do so if the coefficient p, q, and r are constant functions, that is, if the differential equation has the form
ay” + by’ + cy = 0, where a, b and c are constant and a is not equal to 0.

There is also some Second Order Differential Equation Solver, you can find it online. We can use MATLAB to solve second order differential, even we can find plot for the equation. In MATLAB we can solve second order ordinary differential equation with out any knowledge of numerical methods. MATLAB has number of tools to solve ordinary differential equation, but the two main tools are ode23 and ode45 which implement the version of RUNGA KUTTA 2nd/3rd and RUNGA KUTTA 4th/5th respectively. In MATLAB we can use LAPLAS transform, EULER’S method   and Taylor methods.  MATLAB has some additional solvers like ode113, ode23s, ode15s, ode23t and etc.

Monday, August 13, 2012

Stepwise Regression



Regression, in statistics regression means modeling and analysis of variables. It shows the relationship between a dependent variable and a independent variable, it may be one or more then one.  Now we more simplify the term regression, it shows how a dependent variable changes when we vary one independent variable and treat another independent variable as a constant. Regression is used for prediction and forecasting. It also shows how an independent variable is related to dependent variable.

What is stepwise regression?
Stepwise regression means regression analysis in which the choice of predictive variable is taken out by an automatic procedure. If we more specify step-wise regression then suppose we have any mathematical equation with several dependent and independent variables which we have to solve by step-wise regression modeling.  By applying several techniques we first eliminate the independent variables one by one to find the final value.

For better understand the step-wise regression we have to take the stepwise regression example, because with example we easily understand the procedures. For this we take a quadratic equation such as (aX^2+bX+c). In this we have to find dependent variable X by eliminating the independent variables. In step one; we separate the middle term in two parts with checking suitable multiplication of first and third term and addition also. In step two, we take out the common terms. In step three, we equate each term with zero and then finally we get the value of X.

Step-wise regression is of various types. First we discus about forward step-wise regression, this type of regression starts with no variables in the model.  Basically we have to improve the model in forward stepwise regression by applying suitable procedure, such ass apply addition of each variable from a given model and improve the model. Repeat the procedure until none improvement take place. The total calculation is based on the F-distribution and degrees in the regression terms.

Now we discuss about another type of stepwise regression which is stepwise linear regression. This type of regression shows the relationship between a dependent variable which is scalar and one or more explanatory variables. If one explanatory variable is used then simple regression and more than one explanatory variable is known as multivariate linear regression, where the multiple variables are predicted which correlated with dependent variable. In linear regression linear predictor functions are used in regression analysis. Linear regression has also many practical uses.