Jaisohn Kim VT
Jaisohn Kim VT
  • Видео 133
  • Просмотров 318 862
Binary Logistic Regression in MATLAB, Part 2: Model Fitting
Binary Logistic Regression in MATLAB (2/2)
This two-part video series implements binary logistic regression in MATLAB. In the first video, we load, clean, and explore a dataset related to vehicle purchasing decisions. In the second video, we fit the binary logistic regression model to the data and analyze its accuracy via a confusion matrix.
Kaggle site: www.kaggle.com/datasets/gabrielsantello/cars-purchase-decision-dataset/data
Data file: github.com/tjkim96/Numerical-Methods-Codes/blob/main/07%20Advanced%20Data%20Analysis/car_data.csv
Blank .m file: github.com/tjkim96/Numerical-Methods-Codes/blob/main/07%20Advanced%20Data%20Analysis/CarPurchases_blank.m
Master (complete and commented) file: ...
Просмотров: 119

Видео

Binary Logistic Regression in MATLAB, Part 1: Data Exploration
Просмотров 1333 месяца назад
Binary Logistic Regression in MATLAB (1/2) This two-part video series implements binary logistic regression in MATLAB. In the first video, we load, clean, and explore a dataset related to vehicle purchasing decisions. In the second video, we fit the binary logistic regression model to the data and analyze its accuracy via a confusion matrix. Kaggle site: www.kaggle.com/datasets/gabrielsantello/...
Mass-Spring-Damper MATLAB Design Problem (2/2)
Просмотров 904Год назад
Virginia Tech ME 2004: Mass-Spring-Damper MATLAB Design Problem (2/2) This two-part video series implements the famous mass-spring-damper system into MATLAB...with a twist. We need to find some damping values which satisfy two performance constraints. The first video introduces the problem and sets up the foundation of the code used in this video. This video solves the system via MATLAB's ode45...
Mass-Spring-Damper MATLAB Design Problem (1/2)
Просмотров 2 тыс.Год назад
Virginia Tech ME 2004: Mass-Spring-Damper MATLAB Design Problem (1/2) This two-part video series implements the famous mass-spring-damper system into MATLAB...with a twist. We need to find some damping values which satisfy two performance constraints. This video introduces the problem and sets up the foundation of the code used in the second video. The second video solves the system via MATLAB'...
Coding the Mass-Spring-Damper System in MATLAB (2/2)
Просмотров 10 тыс.Год назад
Virginia Tech ME 2004: Coding the Mass-Spring-Damper System in MATLAB (2/2) This two-part video series implements the famous mass-spring-damper system into MATLAB. The solutions are obtained via ode45(). The previous video introduces the system and decomposes the governing 2nd-order ODE into a series of coupled 1st-order ODEs. This video solves the system via MATLAB's ode45() and illustrates a ...
Coding the Mass-Spring-Damper System in MATLAB (1/2)
Просмотров 11 тыс.Год назад
Virginia Tech ME 2004: Coding the Mass-Spring-Damper System in MATLAB (1/2) This two-part video series implements the famous mass-spring-damper system into MATLAB. The solutions are obtained via ode45(). This video introduces the system and decomposes the governing 2nd-order ODE into a series of coupled 1st-order ODEs. The next video solves the system via MATLAB's ode45() and illustrates a few ...
Coding the SIR Epidemic Model in MATLAB (2/2)
Просмотров 12 тыс.Год назад
Virginia Tech ME 2004: Coding the SIR Epidemic Model in MATLAB (2/2) This is the second of a two-part video sequence on solving a system of 1st order ODEs related to an epidemic in MATLAB. The first video introduced the model and re-cast the system of 1st order ODEs into matrix form. This video implements the model in MATLAB and conducts a mathematical follow-up analysis. Blank .m file: bit.ly/...
Coding the SIR Epidemic Model in MATLAB (1/2)
Просмотров 6 тыс.Год назад
Virginia Tech ME 2004: Coding the SIR Epidemic Model in MATLAB This is the first of a two-part video sequence on solving a system of 1st order ODEs related to an epidemic in MATLAB. This video introduces the model and re-casts the system of 1st order ODEs into matrix form. Blank .m file: bit.ly/Epidemic_blank Master (complete and commented) file: bit.ly/Epidemic_master Problem statement: bit.ly...
Numerical Methods: Matrix Inverse
Просмотров 1,3 тыс.Год назад
Virginia Tech ME 2004: Matrix Inverse This video reviews some basic concepts of the matrix inverse, including the physical interpretation of the matrix inverse. Slides: bit.ly/MatrixInverse (This is a re-upload of an identical video which had some screen flickering issues I only discovered recently. The issues have been resolved in this re-upload.)
Solving 1st Order ODEs in MATLAB: Population Modeling (2/2)
Просмотров 7182 года назад
Virginia Tech ME 2004: Solving 1st Order ODEs in MATLAB, Population Modeling (2/2) This is the second of a two-part video sequence on solving a 1st order ODE related to modeling the Earth's population in MATLAB. The first video sketches the phase portrait and anticipated solution by hand. This video numerically solves and interprets the solution in MATLAB. Blank .m file: bit.ly/PopulationModel_...
Solving 1st Order ODEs in MATLAB: Population Modeling (1/2)
Просмотров 7482 года назад
Virginia Tech ME 2004: Solving 1st Order ODEs in MATLAB, Population Modeling (1/2) This is the first of a two-part video sequence on solving a 1st order ODE related to modeling the Earth's population in MATLAB. This video sketches the phase portrait and anticipated solution by hand. The next video numerically solves and interprets the solution in MATLAB. Blank .m file: bit.ly/PopulationModel_bl...
Solving 1st Order ODEs in MATLAB: Skydiver (2/2)
Просмотров 8342 года назад
Virginia Tech ME 2004: Solving 1st Order ODEs in MATLAB, Skydiver (2/2) This is the second of a two-part video sequence on solving a 1st order ODE related to the velocity of a freefalling skydiver in MATLAB. The first video sketches the phase portrait and anticipated solution by hand. This video numerically solves and interprets the solution in MATLAB. Blank .m file: bit.ly/Skydiver_blank Maste...
Solving 1st Order ODEs in MATLAB: Skydiver (1/2)
Просмотров 9202 года назад
Virginia Tech ME 2004: Solving 1st Order ODEs in MATLAB, Skydiver (1/2) This is the first of a two-part video sequence on solving a 1st order ODE related to the velocity of a freefalling skydiver in MATLAB. This video sketches the phase portrait and anticipated solution by hand. The next video numerically solves and interprets the solution in MATLAB. Blank .m file: bit.ly/Skydiver_blank Master ...
Solving 1st Order ODEs in MATLAB: Lumped Thermal Mass (2/2)
Просмотров 6752 года назад
Virginia Tech ME 2004: Solving 1st Order ODEs in MATLAB, Lumped Thermal Mass (2/2) This is the second of a two-part video sequence on solving a 1st order ODE related to a lumped thermal mass in MATLAB. The first video sketches the phase portrait and anticipated solution by hand. This video numerically solves and interprets the solution in MATLAB. Blank .m file: bit.ly/LumpedThermalMass_blank Ma...
Solving 1st Order ODEs in MATLAB: Lumped Thermal Mass (1/2)
Просмотров 1752 года назад
Virginia Tech ME 2004: Solving 1st Order ODEs in MATLAB, Lumped Thermal Mass (1/2) This is the first of a two-part video sequence on solving a 1st order ODE related to a lumped thermal mass in MATLAB. This video sketches the phase portrait and anticipated solution by hand. The next video numerically solves and interprets the solution in MATLAB. NOTE: The OneNote page I'm drawing on (when we sta...
Numerical Integration Conceptual Example (Space Time Diagrams)
Просмотров 7382 года назад
Numerical Integration Conceptual Example (Space Time Diagrams)
Numerical Integration Example (Shear-Moment Diagrams)
Просмотров 5012 года назад
Numerical Integration Example (Shear-Moment Diagrams)
Numerical Integration: Mechanical Work
Просмотров 8362 года назад
Numerical Integration: Mechanical Work
Numerical Differentiation: Step Size Exploration
Просмотров 2,2 тыс.2 года назад
Numerical Differentiation: Step Size Exploration
Numerical Methods: Numerical Differentiation Overview
Просмотров 2,4 тыс.2 года назад
Numerical Methods: Numerical Differentiation Overview
Integrating the Unit Step and Delta Functions
Просмотров 5 тыс.2 года назад
Integrating the Unit Step and Delta Functions
1st Order ODEs Overview
Просмотров 5342 года назад
1st Order ODEs Overview
Integrating a Pulsing Function (2/2)
Просмотров 6182 года назад
Integrating a Pulsing Function (2/2)
Integrating a Pulsing Function (1/2)
Просмотров 7032 года назад
Integrating a Pulsing Function (1/2)
Numerical Differentiation: Stopping Distances
Просмотров 8362 года назад
Numerical Differentiation: Stopping Distances
Integration Review and the Unit Step/Pulse Functions
Просмотров 1,1 тыс.2 года назад
Integration Review and the Unit Step/Pulse Functions
Numerical Methods: Root Finding Example 1 (Redlich-Kwong Equation of State)
Просмотров 2,4 тыс.2 года назад
Numerical Methods: Root Finding Example 1 (Redlich-Kwong Equation of State)
Numerical Methods: Root Finding Example 2 (Population Study)
Просмотров 4062 года назад
Numerical Methods: Root Finding Example 2 (Population Study)
How to Perform Manual Iterations of the Newton-Raphson Method
Просмотров 5842 года назад
How to Perform Manual Iterations of the Newton-Raphson Method
Finding the Fixed Points of an ODE via Newton-Raphson
Просмотров 7272 года назад
Finding the Fixed Points of an ODE via Newton-Raphson

Комментарии

  • @aadhavan5972
    @aadhavan5972 11 дней назад

    Please continue making more videos in this numerical analysis/ error analysis❤

  • @AngelloLGacer
    @AngelloLGacer 12 дней назад

    Excellent, thank you so much sir. Hoping to pass my quiz tomorrow.

  • @tshegofatsotshego375
    @tshegofatsotshego375 Месяц назад

    Amazaing, thank you very much!

  • @nknsdj
    @nknsdj 2 месяца назад

    Hallo, may i know your coding in "epidemic_master.m" ? Why i find eror when calling a function ?

    • @jaisohnkimVT
      @jaisohnkimVT Месяц назад

      Please refer to the MathWorks debugging pages -- there could be many causes of this error. My code is attached in the video description and they should run error-free.

  • @agnesasopaj
    @agnesasopaj 2 месяца назад

    Hello! Do you have the example for double mass-spring-damper system?

    • @jaisohnkimVT
      @jaisohnkimVT 2 месяца назад

      Hello, I don't have any 2DOF mass-spring-damper examples, but MathWorks does (www.mathworks.com/help/simscape/ug/double-mass-spring-damper-in-simulink-and-simscape.html) and this page on the File Exchange seems reputable (www.mathworks.com/matlabcentral/fileexchange/159391-double-mass-damper-mechanical-system)

  • @bsb0
    @bsb0 3 месяца назад

    Really surprised by the quality and delivery of this presentation, great work

  • @Zizotron
    @Zizotron 4 месяца назад

    I have a question. I tried to increment S0 to 100,000, however, the graph became illogical as all the people became sick in less than one day. I understand this happened because the infection rate is constant. How would we make it so that 'a', the infection rate, is dependent on when people start showing symptoms. Because obviously in a real world scenario, the infection rate isn't constant and people would start showing symptoms days later, therefore people getting sick would be more gradual and not so sudden (even if we increase population size)

    • @jaisohnkimVT
      @jaisohnkimVT 3 месяца назад

      Check out this paper, which is a modification of the SIR Model: www.sciencedirect.com/science/article/pii/S2468042720300725 In particular, it demonstrates that the alpha/beta constants traditionally used in the SIR Model are not actually constant, and a change is proposed to encompass these findings. In essence, the alpha/beta parameters are changed to be a function of the population density, among other things. Perhaps you can make a similar modification.

  • @sarsax123
    @sarsax123 4 месяца назад

    by far the best video on this topic on all of youtube

  • @techjo531
    @techjo531 4 месяца назад

    Hello, I'm doing a MATLAB project for my programming class. I'm looking to apply some of the principles in my programming class and overlap them with some computations from the steam tables. Is it cool if I reference your video and program in my project? Thank you. Joel

  • @_aligamers1477
    @_aligamers1477 5 месяцев назад

    you ,save me prof

  • @kaushikmk3250
    @kaushikmk3250 5 месяцев назад

    Please provide the data. Link is not working

    • @jaisohnkimVT
      @jaisohnkimVT 5 месяцев назад

      fixed

    • @kaushikmk3250
      @kaushikmk3250 5 месяцев назад

      @@jaisohnkimVT Thank you so much for the lectures. I work in the automotive domain and your concepts are very helpful for learning automotive in a mathematical perspective.

  • @rhshovan
    @rhshovan 7 месяцев назад

    THANK YOU SO MUCH.

  • @zachh6868
    @zachh6868 7 месяцев назад

    The links in the description don't work anymore

  • @JetzYT
    @JetzYT 8 месяцев назад

    Great video. It's been a few years since I took the relevant course and this really helped me get the intuitions back for a computational linear algebra course I've just started this semester.

    • @jaisohnkimVT
      @jaisohnkimVT 8 месяцев назад

      thanks, glad it helped!

  • @vaniaelvina
    @vaniaelvina 8 месяцев назад

    is it possible to add noise in the simulation?

    • @jaisohnkimVT
      @jaisohnkimVT 8 месяцев назад

      I haven't tried adding noise to the simulations myself. I will refer you to these pages which may be helpful: www.mathworks.com/matlabcentral/answers/1646055-what-is-the-way-of-solving-the-noise-added-differential-equations-in-matlab, stackoverflow.com/questions/10343868/differential-equation-with-gaussian-noise-matlab

  • @johanneshutten2184
    @johanneshutten2184 8 месяцев назад

    Very nice video! really good overview

  • @fernachilex235
    @fernachilex235 9 месяцев назад

    i know im a bit lat, but thanks for this. Incredible way to explain fprintf hahah

  • @dansedanse1173
    @dansedanse1173 9 месяцев назад

    Great explication !

  • @user-pu7te6tf7f
    @user-pu7te6tf7f 9 месяцев назад

    Jaisohn Kim the Goat

  • @paintwithbristy2053
    @paintwithbristy2053 10 месяцев назад

    None of the links work. I needed the master file, could you provide?

    • @jaisohnkimVT
      @jaisohnkimVT 9 месяцев назад

      The links seem to work on my end, try again?

  • @user-pu7te6tf7f
    @user-pu7te6tf7f 10 месяцев назад

    Jaisohn Kim the Goat

  • @user-pu7te6tf7f
    @user-pu7te6tf7f 10 месяцев назад

    Jaisohn Kim the Goat

  • @user-xg8ti1in3i
    @user-xg8ti1in3i 10 месяцев назад

    Jaisohn Kim the GOAT

  • @user-pu7te6tf7f
    @user-pu7te6tf7f 11 месяцев назад

    Jaisohn Kim the Goat

  • @user-pu7te6tf7f
    @user-pu7te6tf7f 11 месяцев назад

    Jaisohn Kim The Goat

  • @fancyson8715
    @fancyson8715 11 месяцев назад

    Thank you Mr. GradeSaver!!!

  • @user-pu7te6tf7f
    @user-pu7te6tf7f Год назад

    Jaisohn Kim The Goat

    • @BrownMInc
      @BrownMInc 5 месяцев назад

      just came across in my search of vector norms and was astonished, 🐐. Makes me wonder why is it that some people can communicate ideas clearly without fluff but no loss of meaning while others can spend 40mins basically saying nothing

  • @ArchanPandya
    @ArchanPandya Год назад

    Great Explanation!!!!!

  • @user-pu7te6tf7f
    @user-pu7te6tf7f Год назад

    Jaisohn Kim the goat

  • @phunguyenhoang8242
    @phunguyenhoang8242 Год назад

    tks for this useful video can you make it into simulink thank you

    • @jaisohnkimVT
      @jaisohnkimVT Год назад

      Thanks for watching. Unfortunately, I don't plan to make any Simulink-related videos anytime soon :(

    • @crazycontraptions1249
      @crazycontraptions1249 11 месяцев назад

      @@jaisohnkimVT ayy it's okay man you've done good tutorials already :)

  • @baruahsarthak_
    @baruahsarthak_ Год назад

    Superb explanation

  • @ibrahimalali5949
    @ibrahimalali5949 Год назад

    thanks dude!

  • @pritom7298
    @pritom7298 Год назад

    Thanks,sir

  • @flwerdaaisy
    @flwerdaaisy Год назад

    how can I determine my parameters a and r with lsqnonlin?

    • @jaisohnkimVT
      @jaisohnkimVT Год назад

      I assume you already have the S, I, and R data and you are attempting to find the a and r parameters which best fit the data. This is off the top of my head so I haven't tested this out at all, but perhaps something like the following might be a useful starting point: a_and_r = lsqcurvefit(@sir, initial_parameter_guesses,t,SIRdata,<other arguments>) function y = sir(a_and_r,t) % set up system of ODEs dydt = @(t,y) [-a*y(1)*y(2); % ...and so forth] % ode45 call [~,y] = ode45(dydt,t,initial_SIR_values); end

  • @selamc20
    @selamc20 Год назад

    Thank you!

  • @zyggzag4154
    @zyggzag4154 Год назад

    Thank-you! I appreciate you!

  • @madison7754
    @madison7754 Год назад

    thank u i almost failed but didnt bc of u <3

  • @madison7754
    @madison7754 Год назад

    good job

  • @georgecoombs5777
    @georgecoombs5777 Год назад

    Great video thanks!!!!! but how would you plot the acceleration??

    • @jaisohnkimVT
      @jaisohnkimVT Год назад

      Recall that m*xddot + c*xdot + k*x = u, so the acceleration (xddot) is: xddot = (-c/m)*xdot - (k/m)*x + (u/m) Hopefully this is familiar from when we put the system into state-space form. Therefore, you can do something like: [t,x,v] = ode45(stuff); a = (-c/m)*v - (k/m)*x + (u/m); figure plot(t,a) This is the most "proper" way in my mind. You could alternatively obtain the accel vector by numerically differentiating the velocity vector, although I am not a fan of this because it could introduce noise into the accel vector. Hope this helps!

  • @gimanthaupasena740
    @gimanthaupasena740 Год назад

    Hi there, I am doing a project on disease dynamics modelling, your explanation of matlab implementation for disease models is very clear. I am interesting in discussing my model with you so I would like to kindly request an email address to reach out to you. Thank you :)

    • @jaisohnkimVT
      @jaisohnkimVT Год назад

      Hello, feel free to contact me at jais0hn@vt.edu, but please bear in mind that I cannot offer any consulting, model advice, debugging, etc.

    • @ilyesameraoui74
      @ilyesameraoui74 Год назад

      Hi, I have a question. Why when susceptible individuals are equal to recovered individuals the infected individuals are maximum

    • @jaisohnkimVT
      @jaisohnkimVT Год назад

      The infected population doesn't always peak right when susceptible population = recovered population; it largely depends on the system parameters. I found this website (people.wku.edu/lily.popova.zhuhadar/) useful.

  • @0xdegen70
    @0xdegen70 Год назад

    thank you ............i find it really helpful

  • @balyoz3349
    @balyoz3349 Год назад

    Hi, thank you for the video. I have a question. How to derive this formula: 8:16 |ea| <= es How can i prove this ?

    • @jaisohnkimVT
      @jaisohnkimVT Год назад

      Hello, I am not sure if there is a formal proof for this. |ea| <= es is just saying that you want to pick some value (es) that enacts a ceiling on the magnitude of the allowable percent relative error (ea) so that you know when to stop iterating. Otherwise, you will be iterating forever. EDIT: You can make the stopping criterion related to the number of sigfigs by Eq. 3.5 in the video. This paper (matlabgeeks.weebly.com/uploads/8/0/4/8/8048228/analysis_of_numerical_errors.pdf) references the Scarborough 1966 paper which presumably proves this equation, although I personally have not read that paper.

    • @balyoz3349
      @balyoz3349 Год назад

      @@jaisohnkimVT Thank you very much, sir.

  • @HamzaDjeloud
    @HamzaDjeloud Год назад

    you are the best

  • @nmana9759
    @nmana9759 Год назад

    Thank you the video is very helpful

  • @blackhole1222
    @blackhole1222 Год назад

    Clear & precise. Excellent explanation! Thanks for sharing

  • @muhrafikur
    @muhrafikur Год назад

    Thank you, this helps me so much

  • @asif.a15
    @asif.a15 Год назад

    Very well explained,I really loved the explanation! Thank you so much for your hard work.

  • @dufrain79
    @dufrain79 Год назад

    As an interesting approach to the problem I have in mind the thought of considering (1/s) - (1/s^2) as an input signal and solving it in the frequency domain up to given t1. To be honest, I couldn't see the solution easily, but it can be fun to mess around with. It was great to watch. Keep up the good work.

    • @jaisohnkimVT
      @jaisohnkimVT Год назад

      That's an interesting problem indeed! Let me know what results you get if you try it out!

  • @kshitijgarg6875
    @kshitijgarg6875 Год назад

    Thank you

  • @Alfredo52993
    @Alfredo52993 Год назад

    Very clear and simple. Great job!