Financial Calculations and Variable Identification
The initial calculations involve specific currency values and date-related data points. A calculation is presented as 1,13×1,14 and 7442 resulting in =0.6934/100%. A specific value of 2081.54PLN is recorded alongside the date 23.04.2026. Another sequence of values includes 1.13−1.14, 1.12, and 1.11=1,6015−1,300. These appear to be related to exchange rates or financial coefficients.
In the study of statistics, variables are identified by their roles in a relationship. In this dataset, the variable X represents income, and the variable Y represents spendings. The relationship between these two can be visually represented on a scatter plot. Different patterns are identified: a positive correlation that is not linear, and a positive linear correlation where the data points align closely to a straight line.
Introductory Example: Bonus and Job Satisfaction
A practical example is provided to illustrate the relationship between the amount of a bonus (X) and job satisfaction (Y). The sample size is denoted as n=25. Specific frequency counts are tracked across different categories. For instance, at the beginning, the values are given as X=amount of bonus and Y=satisfaction.
Indices are used to track specific data points within a frequency table, such as ni1=10 and terms like n13=1. Marginal frequencies are essential for analyzing bivariate data. The term ni. refers to the marginal frequency for the X variable (sums across rows), while the term n.j refers to the marginal frequency for the Y variable (sums across columns).
Parameters of Marginal and Conditional Distributions for X
Detailed distributional parameters for the X variable are calculated using specific frequency tables. The data utilizes midpoints (xi) and counts (ni.). Calculations for the mean include terms such as xini. and xi2ni.. The specific sums recorded are ∑ni.=25, ∑xini.=19.250, and ∑xi2ni.=22.563.
The arithmetic mean of X is calculated using the formula xˉ=n1∑xini., which for this dataset is xˉ=2519.25=0.77.
The variance is determined by $S^2(x) = \frac{1}{n} \sum x_i^2 n_{i.} - (\bar{x})^2.Applyingthenumbers:S^2(x) = \frac{22.563}{25} - (0.77)^2 = 0.310. \n\nThe standard deviation is the square root of the variance: S(x) = \sqrt{0.310} = 0.556. \n\nAdditional complex calculations involve the sum of products \sum xy,whichisrecordedas74.75andavalueof200.52inexpandedtables.ThePearsoncorrelationcomponentsareintroducedhere,showinghowindividualobservationsofx(1, 2, 3, 4, 5, 6, 8, 4) map to their respective frequencies.\n\n# Parameters of Marginal and Conditional Distributions for Y\n\nSimilar to variable X,thedistributionofYisanalyzed.Thefrequencies(n_{.j})forvaluesofyaresummedton = 25.Thevaluesofyinclude2,3,andothers.Thesumsresultin\sum y_j n_{.j} = 31.5(lateradjustedorrecalculatedincontextsto23.75orspecificsumslike39and81.5). \n\nIn one specific iteration of the data, the mean is calculated as \bar{y} = \frac{31.5}{25} = 1.26or,usinganothersubsetofdata,\bar{y} = \frac{81.5}{25} = 3.26. \n\nThe variance for YisgivenasS^2(y) = \frac{1}{n} \sum y_j^2 n_{.j} - (\bar{y})^2.Forthevaluesetwhere\bar{y} = 3.26,thecalculationisproceedsasS^2(y) = \frac{300.5}{25} - (3.26)^2 = 12.02 - 10.6276 = 1.3924. \n\nThe standard deviation for YiscalculationasS(y) = \sqrt{1.3924} = 1.18.Inothernotes,specificvaluessuchasS(y) = 2.73or1.2 are mentioned based on different data subsets.\n\n# Pearson Correlation Coefficient (r)\n\nThe Pearson Correlation Coefficient, denoted as r_{xy}orr_{yx}, is defined specifically for linear relationships. It measures the strength and direction of the linear association between two variables. \n\nThe formula for the correlation coefficient is r_{xy} = \frac{COV(x, y)}{S(x) S(y)},whereCOV(x, y) is the covariance. \n\nThe value of rrangesfrom-1to1: \n- r = 0: No correlation.\n- r > 0: Positive correlation.\n- r < 0: Negative correlation.\n\nA specific covariance calculation is shown: COV(x, y) = \frac{1}{n} \sum x_i y_j n_{ij} - \bar{x} \bar{y}.Basedonthecalculatedvaluesof\bar{x},\bar{y},and\sum xy,thecoefficientinthesatisfactionexamplewasdeterminedtober_{yx} = 0.76. This is interpreted as a high, positive linear correlation between the amount of bonus and job satisfaction.\n\n# Correlation Ratio and Non-Linearity\n\nWhen a relationship is not linear, the correlation ratio (denoted as \etaore)isused.Itiscalculatedusingthevarianceoftheconditionalmeans.TheformulainvolvingtheempiricalvarianceisS^2(y) = S^2(y_c) + S^2_{res}(y),whereS^2(y_c)isthevarianceexplainedbytheregression(inter−groupvariance)andS^2_{res}(y) is the residual variance (within-group variance).\n\nThe correlation ratios are given by: \ne_{yx} = \sqrt{\frac{S^2(y_c)}{S^2(y)}}\ne_{xy} = \sqrt{\frac{S^2(x_c)}{S^2(x)}}\n\nTo measure the degree of curve linearity, the measure m_{yx}isused:m_{yx} = e^2_{yx} - r^2_{yx}.Ifm_{yx} \le 0.3,thecorrelationisconsideredlinear.Ifm_{yx} > 0.3,thecorrelationisnotlinear.Inthesatisfactionexample,m_{yx} = (0.75)^2 - (0.76)^2,whichresultsinavalueclosetozero(0.01),confirmingthatthecorrelationislinearsinceitislessthan0.3.\n\n# Linear Regression Modeling\n\nTheoretical regression is represented by the equation of a straight line: \hat{y} = ax + b. \n\nThe slope aiscalculatedasa = r \times \frac{S(y)}{S(x)}. \nIn the example, a = 0.76 \times \frac{1.3}{1.035} = 0.96.\n\nThe intercept biscalculatedasb = \bar{y} - a\bar{x}. \nExample: b = 2.5 - 0.96 \times 1.15 = 1.4. \nThis gives the theoretical regression line: \hat{y} = 0.96x + 1.4. \n\nThis model can be used for prediction. For instance, if X = 1.23,then\hat{y} = 0.96 \times 1.23 + 1.4 = 2.58. \n\n# Coefficient of Determination\n\nThe Coefficient of Determination (R^2)measurestheproportionofvariabilityinthedependentvariablethatisexplainedbytheregressionmodel.Itrangesfrom0to1.\n\nThe formula is R^2 = 1 - \frac{\sum(y_i - \hat{y}i)^2}{\sum(y_i - \bar{y})^2}. \nFor linear models, R^2 = r^2. \nIn the bonus/satisfaction example, R^2 = (0.76)^2 = 0.58.Thismeansapproximately58\% of the variability in satisfaction is explained by the bonus amount.\n\n# Advanced Examples: Sales and Invoices\n\nA dataset regarding sales representatives (X)andcomputerssold(Y)providesfurtherpractice.Forasamplesizen = 20:\n- Sums: \sum x = 44,\sum y = 122,\sum x^2 = 108,\sum y^2 = 826,\sum xy = 310.\n- Means: \bar{x} = 2.2,\bar{y} = 6.1.\n- Variances: S^2(x) = 0.56,S^2(y) = 9.09.\n- Standard Deviations: S(x) = 0.75,S(y) = 3.01.\n- Covariance: COV(x, y) = \frac{155}{20} - (2.2 \times 6.1) = 7.75 - 13.42 = -5.67(Note:alternativecalculationsprovidedinthetranscriptsuggestCOV = 2.08or0.92 depending on context).\n- Regression result: \hat{y} = 3.69x - 2. \n- If 20computersarepredicted(Y=20),thenumberofrepsneededis20 = 3.69x - 2 \rightarrow x = 5.96.\n- If 5salesrepsareemployed(X=5),predictedsalesare\hat{y} = 3.69 \times 5 - 2 = 16.45.\n- A calculated R^2 = 0.8498indicatesthat84.98\% of the variability in the number of computers is explained by the number of sales representatives.\n\nA separate case regarding Account task/invoices and consumption (C)vsincome(Y)followsasimilarstructure.Aregressionequationforconsumptionisgivenas\hat{C} = 250 + 0.911Y.Underthismodel,ifIncome(Y)is0,theconsumptionexpenditureis250.Thisrelatestotheeconomicconceptof"MarginalPropensitytoConsume"(C = C_0 + cY).Ifconsumptionistargetedat2500,then2500 = 250 + 0.911Y,resultinginanincomerequirementofY = 1372.12. \n\n# Distribution Tables with Grouped Data\n\nFor larger datasets involving grouped data or ranges (e.g., 0-2,2-4,etc.),midpointcalculationsarecritical.Adatasetwithn = 650showscalculationsforthemarginalsofA and income ranges. \n\nFor the marginal of X in this group:\n- \sum x_i n{i.} = 2686\n- \bar{x} = \frac{2686}{650} = 4.132\n- S^2(x) = \frac{16926}{650} - (4.132)^2 = 26.04 - 17.07 = 8.97 \rightarrow S(x) = 2.99\n\nFor the marginal of Yinthisgroup(n = 650):\n- \sum y_j n_{.j} = 5284\n- \sum y_j^2 n_{.j} = 56672\n- \bar{y} = \frac{5284}{650} = 8.129\n- S^2(y) = \frac{56672}{650} - (8.129)^2 = 87.18 - 66.08 = 21.10 \rightarrow S(y) = 4.59\n\nConditional distributions are also analyzed, such as the conditional distribution of XforspecificrangesofY(e.g.,forindividualshavingbetween4−8months).ThemeanofXforthatspecificgroupiscalculatedas3.31andthestandarddeviationas1.9$$.