Posts

OPERATORS IN C++

Image
                             OPERATORS IN C++.                                       INTRODUCTION C++, “operators” are special symbols used to perform various mathematical and logical operations on variables and values, essentially allowing you to manipulate data within your code by applying actions like addition, comparison, or logical checks, with each operation requiring one or more operands to function; they are a fundamental part of writing C++ expressions and statements. Key points about operators in C++: FUNCTION Operators take one or more operands (values or variables) and produce a result based on the operation they represent. Types of Operators : C++ has several categories of operators, including arithmetic operators (+, -, *, /, %), relational operators (<, >, <=, >=, ==, !=), log...

PEARSON CORRELATION

Image
PEARSON CORRELATION  The name correlation suggests the relationship between two variables as their Co-relation. The correlation coefficient is the measurement of correlation. To see how the two sets of data are connected, we make use of this formula. The linear dependency between the data set is done by the Pearson Correlation coefficient. It is also known as the Pearson product-moment correlation coefficient. The value of the Pearson correlation coefficient product is between -1 to +1.  When the correlation coefficient comes down to zero, then the data is said to be not related. While, if we are getting the value of +1, then the data are positively correlated and -1 has a negative correlation. The graphical representation of positive, negative and no correlation is shown below: The Pearson correlation coefficient is denoted by the letter “r”. The formula for Pearson correlation coefficient r is given by r  = Pearson correlation coefficient x  = Values...