topmath.in

karl pearson correlation coefficient and regression line
--------------------------------------------------------------------

---------------------------------------------------------------------



karl pearson correlation coefficient and regression line
 

This is the formula for Carl Pearson coefficient
of correlation which is a measure of the linear relationship
between the values of X and Y.

The regresion line of Y on X is derived on the assumption
that X is independent and Y depends on X.



The regresion line of X on Y is derived on the assumption
that Y is independent and X depends on Y.

carl pearson correlation, equation of line of
              regression


---------------------

C program for eulers method for solving a differential equation with intial conditions



to solve

dy/dx = f(x,y)

y(x0) = y0


f(x,y) is being evaluated as a separate function “funct” which can be suitably adjusted




-------------------------------------------------------


#include<stdio.h>
#include<conio.h>
#include<math.h>




float funct(float x,float y)
{

   float f;
   /*edit f into required function*/

   f= (x+y)/2 ;



   return (f);
}

void clearline(int i)
 {
 /*funtion for clearing "i" lines */
int j;
for(j=1; j<=i;j=j+1)

	printf("\n");

 }

main()
{
  float x,y,x0,y0,xn,yn,xcurr=0,ycurr,xnext,ynext,h;
  int n=0;


   clearline(50);

 printf("\nEnter the initial values:x0=");
  scanf("%f",&x0);
   printf("Enter the initial values:y0=");
  scanf("%f",&y0);

   printf("Enter the final value of x for which y is required:xn=");
  scanf("%f",&xn);
  printf("Enter the value ofh, h=");
  scanf("%f",&h);

  xcurr=x0;
  ycurr=y0;

  iterat:

	    if(h>0 && xcurr>=xn)
			 goto end;


	    if(h<0 && xcurr<=xn)
			 goto end;

	    ynext = ycurr + h*funct(xcurr,ycurr);
	    xnext = xcurr + h;

	     printf("y[%f] = %f \n ",xnext,ynext);
	     xcurr = xnext;
	     ycurr = ynext;

	       n=n+1;

	      if((n%10)==0)
	      {printf("press enter to continue");
		getch();
		printf("\n");

		}
	    goto iterat;

end:
getch();

      }

                                                      








----------------------------------------------------------------------------------------------
trigonometric identity and ratio of  certain standard angles

*list of differentiation formula     *integral calculus integration formula
---------------------------------------------------------------------------------------
*HOME PAGE   * mathematical formulae  * Indices, surds and some identities:   * Quadratic equations  * Progression  *Analytical Geometry * Trigonometry formula
  *Laplace Transform Inverse laplace transform *Vector
---------------------------------------------

---------------------------------------------

* Complex Number  *Hyperbolic function
disclaimer:
There is no guarantee about the data/information on this site. You use the data/information at your own risk. You use the advertisements displayed on this page at your own risk.We are not responsible for the content of external internet sites. Some of the links may not work. Also some of the companies which are displaying
advertisements may install cookies on your computer and may be tracking your browsing habits.