zoukankan      html  css  js  c++  java
  • [Big Data] Week4B (Basic)

    Question 1

    Note: In this question, all columns will be written in their transposed form, as rows, to make the typography simpler. Matrix M has three rows and two columns, and the columns form an orthonormal basis. One of the columns is [2/7,3/7,6/7]. There are many options for the second column [x,y,z]. Write down those constraints on x, y, and z. Then, identi fy in the list below the one column that could be [x,y,z]. All components are computed to three decimal places, so the constraints may be satisfied only to a close approximation.
     
    Your Answer ScoreExplanation
    [.485, -.485, .728]      
    [.702, -.702, .117] Correct 1.00  
    [-.702, .117, .702]      
    [-.548, .401, .273]      
    Total   1.00 / 1.00

    Answer:

    1. x^2+y^2+z^2 = 1

    2. 2x/7+3y/7+6z/7 = 0

    Question 2

    Note: In this question, all columns will be written in their transposed form, as rows, to make the typography simpler. Matrix M has three rows and three columns, and the columns form an orthonormal basis. One of the columns is [2/7,3/7,6/7], and another is [6/7, 2/7, -3/7]. Let the third column be [x,y,z]. Since the length of the vector [x,y,z] must be 1, there is a constraint that x2+y2+z2 = 1. However, there are other constraints, and these other constraints can be used to deduce facts about the ratios among x, y, and z. Compute these ratios, and then identify one of them in the list below.
     
    Your Answer ScoreExplanation
    y = -3z Correct 1.00  
    y = 3z      
    z = -3y      
    z = 3y      
    Total  

    1.00 / 1.00

    Answer: 

    2x+3y+6z = 0

    6x+2y-3z = 0

    The 3th col would be something like [-3 6 -2]

     

    Question 3

    Suppose we have three points in a two dimensional space: (1,1), (2,2), and (3,4). We want to perform PCA on these points, so we construct a 2-by-2 matrix whose eigenvectors are the directions that best represent these three points. Construct this matrix and identify, in the list below, one of its elements.
    Your Answer ScoreExplanation
    19      
    12      
    17 Correct 1.00  
    22      
    Total   1.00 / 1.00

    Question 4

    Find, in the list below, the vector that is orthogonal to the vector [1,2,3]. Note: the interesting concept regarding eigenvectors is "orthonormal," that is unit vectors that are orthogonal. However, this question avoids using unit vectors to make the calculations simpler.
     
    Your Answer ScoreExplanation
    [-1, -1, 1] Correct 1.00  
    [0, 2, -1]      
    [-1, 1, -1]      
    [1, 1/2, 1/3]      
    Total   1.00 / 1.00

    Answer:

    orthogonal : [1 2 3] * [-1 -1 1]^(-1) = [-1 -2 3];

    -1-2+3 = 0

  • 相关阅读:
    js直接获取当前windows登陆账号---仅适用于IE
    Windows变量路径与通配符
    IDEA数据库生成Entity 带注释, 默认值
    BIM+区块链在建筑业施工过程结算的应用
    Java中动态规则的实现方式
    Git查看本地仓库关联关系以及清理无效远程分支
    Golang把字符串数组、[]interface{}打乱、切片乱序
    Golang将map数组按照指定字段排序
    Golang把时间和数字相乘报错invalid operation: second * time.Second (mismatched types int and time.Duration)
    Golang获取明日时间及距离明日凌晨的时间差
  • 原文地址:https://www.cnblogs.com/Answer1215/p/4070369.html
Copyright © 2011-2022 走看看