Mother the standard weight distribution of several conditions for a son-in-law:
Height: H Weight: h%
Weight: W Weight: w%
Character: N Weight: N%
Appearance: S Weight: s%
Income: M Weight: M%
Potential: D Weight: D%
After the son-in-law met mother, mother to son-in-law satisfaction distribution:
Height satisfaction: h%
Weight Satisfaction Degree: w%
Personality satisfaction: n%
Appearance Satisfaction Degree: s%
Satisfaction of income: m%
Potential satisfaction: d%
To get two vector space, the prerequisite for choosing a son-in-law is to be as good as possible, that is, the smaller the angle of the two vectors, the better, and then the cosine cos, the closer the cosine is to the 1, the closer the candidate is to the ideal.
The specific calculation method is as follows,
1, vector space X = (h,w,n,s,m,d), y= (h,w,n,s,m,d)
Inner product [x,y]= h*h + w*w + n*n + s*s + m*m + d*d
Norm | | x| | = (h^2+w^2+n^2+s^2+m^2+d^2) ^-2
Norm | | y| | = (n^2+w^2+n^2+s^2+m^2+d^2) ^-2
And according to the cosine theorem:
cos (θ) = [x, y]/(| | x| | * || y| |)
Well, the model is done, and then a concrete example is calculated:
Mother standard requirements for son-in-law:
Height Weight: 15%
Weight: 15%
Personality Weight: 25%
Physical Weight: 15%
Revenue Weight: 15%
Potential weight: 15%
The satisfaction of quasi-son-in-law after investigation mother:
Height: 180cm 100% Note: good height ah, ideal!
Weight: 95kg 30% Note: too fat;
Character:...... 80% notes: The boy humor, good temper, nice guy;
Appearance:-50% Comment: A little ugly, but also not can not see;
Revenue: 20k/m 80% notes: 160,000 per year, satisfaction;
Potential:-90% notes: Looks like a potential stock.
So [x, y] = 15%*100% + 15%*40% + 25%*80% + 15%*50% + 15%*80% + 15%*90% =0.69
Norm | | x| | = (0.15^2+0.15^2+0.25^2+0.15^2+0.15^2+0.15^2) ^-2 = 0.418
Norm | | y| | = (100%^2+30%^2+80%^2+80%^2+50%^2+80%^2+90%^2) ^-2 = 1.852
cos (θ) = 0.69/(0.418*1.852) = 0.89
Similar to the standard son-in-law 89%, only 11% of the distance, the son-in-law is very good, although very ugly and fat.
Help mother choose a son-in-law from a mathematical perspective