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

  • 相关阅读:
    Linux下源码安装Kong网关
    nodejs.cn-Node.js-入门教程:Node.js 从命令行接收参数
    nodejs.cn-Node.js-入门教程:如何使用 Node.js REPL
    nodejs.cn-Node.js-入门教程:如何从 Node.js 读取环境变量
    nodejs.cn-Node.js-入门教程:如何从 Node.js 程序退出
    nodejs.cn-Node.js-入门教程:从命令行运行 Node.js 脚本
    nodejs.cn-Node.js-入门教程:V8 JavaScript 引擎
    nodejs.cn-Node.js-简单介绍:Node.js 与浏览器的区别
    nodejs.cn-Node.js-简单介绍:使用 Node.js 需要了解多少 JavaScript
    nodejs.cn-Node.js-简单介绍:如何安装 Node.js
  • 原文地址:https://www.cnblogs.com/Answer1215/p/4070369.html
Copyright © 2011-2022 走看看