Enter in your values and there you have it! I hope some fellow A level mathematicians find this and use it instead of spending ages typing in the formula to their calculator for homework! *-*-*-* The Maths... *-*-*-* The PMCC is a property of a correlation between two variables (bivariate data). To explain it simply, it is how far the points on a graph are from the line of best fit. x and y here are the x and y axis variables, although you usually take their values from a table. 'n' is a variable which represents the number of x or y values, it shouldn't matter as there are meant to be as many x values as y values used. The weird Σ (sigma) symbol means sum-of, so Σx is the sum of all the x values. Σx^2 is the sum of all the x^2 values (sum of (x squared)). The PMCC has the symbol 'r', and it is found using all the 6 variables the cat here asks for. You can search the equation up on the internet or try to find it out from my code (see inside). The value of 'r' can range from -1 to 1. -1 means the points have a perfect negative correlation, whereas 1 means a perfect positive correlation. 0 means absolutely no relationship exists between the two variables. Values between 0 and -1 mean there is a negative correlation but not perfect, and between 0 and 1 indicates an imperfect positive correlation. The further above or below 0 the number is, the stronger the correlation. Spearman's Rank Correlation can also be used to find the strength of a correlation, but it ranks the data so looses information about the actual values, so naturally produces a less accurate result. Again, you can search this equation up on google, although this time I haven't implemented it in this scratch project.
Pixelart cats by me, equations implemented by me, other stuff by me, idea by me, basically everything apart from actually discovering the equation, which you can thank whatever statistician made it for. NOW CALCULATES SPEARMANS RANK AND CAN EITHER USE SUM OR MANUAL DATA, TO ACCOUNT FOR ALL POSSIBLE EXAM QUESTIONS! *Spearmans rank uses RANK data, so dont put actual values in. work out the ranks yourself for now*