Help mother choose a son-in-law from a mathematical perspective

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.