GithubHelp home page GithubHelp logo

elenasm7 / dsc-2-13-10-linalg-dot-product-properties-lab-nyc-ds-career-012819 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-students/dsc-2-13-10-linalg-dot-product-properties-lab-nyc-ds-career-012819

0.0 1.0 0.0 10 KB

License: Other

Jupyter Notebook 100.00%

dsc-2-13-10-linalg-dot-product-properties-lab-nyc-ds-career-012819's Introduction

Properties of Dot Product - Lab

Introduction

In this lab we shall look at some interesting properties of a Dot product type matrix multiplication. Understanding these properties will become useful as we move forward with machine learning advanced linear algebra. The lab will require you to calculate results to provide a proof for these properties.

Objectives

You will be able to:

  • Understand and analytically explain Distributive, Commutative and Associative properties of dot product

Instructions

  • For each property, create suitably sized matrices with random data and prove the equations
  • Ensure that size/dimension assumptions are met while performing calculations (you'll see errors otherwise)
  • Calculate the LHS and RHS for all equations and show if they are equal or not

Distributive Property - Matrices multiplication is distributive

Prove that A.(B+C)=A.B+A.C

# Your code here

Associative Property - Matrices multiplication is associative

Prove that A.(B.C)=(A.B).C

# Your code here 

Commutative Property - Matrix multiplication is NOT commutative

Prove that for matrices, A.B ≠ B.A

# Your code here 

Commutative Property - vector multiplication IS commutative

Prove that for vectors, xT . y = yT . x

Note: supersciptT denotes the transpose we saw earlier

# Your code here 

and finally

Simplification of the matrix product

Prove that (A.B)T = BT . AT

# Your code here 

Summary

So now we have seen enough matrix algebra to help us solve a problem of linear equations as we saw earlier in this section. We shall see how to do this next.

dsc-2-13-10-linalg-dot-product-properties-lab-nyc-ds-career-012819's People

Contributors

shakeelraja avatar loredirick avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.