본문 바로가기

분류 전체보기

(40)
[통계이야기] Multivariable vs. Multivariate Model 통계 분석을 할 때 헷갈리는 용어들이 있다.그 중 하나는 Multivariable Model 과 Multivariate Model 이다.  특징Multivariable ModelMultivariate ModelDependent VariableOneMultipleFocusSingle outcome predicted by multiple predictorsMultiple outcomes predicted simultaneously by multiple predictors, considering relationships among outcomes.ComplexityGenerally less complexGenerally more complexGoalUnderstand the impact of multiple ..
Leetcode 뿌시기 - Tree 문제 Binary Tree Right Side View Symmetric Tree Recover Binary Search Tree Top K Frequent Elements 1. Binary Tree (이진 트리) : 보통 O(logn)의 time complexity (출처: https://starrykss.tistory.com/1911#:~:text=%EC%BB%B4%ED%93%A8%ED%84%B0%EB%8A%94%20%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC%200,%EC%9D%B4%ED%95%98%EB%A1%9C%20%EA%B5%AC%EC%84%B1%EB%90%98%EC%96%B4%20%EC%9E%88%EB%8B%A4.) 루트를 레벨 0으로 두면, 나뭇잎(leaf)들은 아래로 내려..
어느 때보다도 더 필요한 Resilience Resilience는 내가 좋아하는 단어이다. Resilience is the ability to adapt to difficult situations. Resilience is the capacity to recover quickly from diffuculties; toughness. Resilience is the ability of a substance or object to spring back into shape; elasticity. When stress, adversity or trauma strikes, you still experience anger, grief and pain, but you're able to keep functioning - both physically and ps..
Monotonic Stack - Identify Pattern Stack: 한 쪽 끝에서만 자료를 넣고 뺄 수 있는 LIFO(Last In First Out) / FILO (First In Last Out) 형식의 자료 구조. 가장 최근에 더해진 항목이 가장 먼저 제거되는 구조이며, pop(), push(item), peek(), Empty() 등의 functions이 있다. The functions associated with stack are: empty(): returns whether the stack is empty - Time complexity: O(1) size(): returns the size of the stack - Time complexity: O(1) top()/ peek(): returns a reference to the topmost ..
졸업에 한 걸음 더 가까이 - Written Area Exam 내가 다니고 있는 박사 과정은 4년과정이고 주로 3학년 중반부부터 Candidacy 과정을 밟게 된다. Preliminary Written Exam - Written Area Exam - Oral Area Exam - Proposal Defense 로 이루어지는 4단계 시험을 통과하면 마침내 박사 졸업 자격을 획득하여 PhD Candidate라는 타이틀을 얻게 된다. 우리 과의 경우 박사과정 학생을 탈락 시키는 경우는 거의 없지만, 그럼에도 불구하고 Candidacy를 획득하기 전까지는 박사 학위를 guarantee 할 수 없는 상태이기 때문에 조마조마함을 늘 안고 살게 된다. 나는 내년 8월에 졸업을 할 생각이기 때문에 가급적 빨리 Candidate가 되고 싶지만, 나 혼자 부랴부랴 레이스를 달린다고 ..
[R] Convert Data between Wide and Long Format Here I summarize how to convert data between wide and long format based on tidyverse grammar. 1. Wide to Long format (1) spread function. spread(data, key, value, fill) key는 wide type으로 바꿨을 때 변수들로 바뀔 내용들이 있는 변수 value는 그 변수들의 칼럼의 값이 될 것 fill은 빈칸에 넣을 것 (2) pivot_wider() #새로 나온 spread의 업그레이드 버전. 이제 요걸 사용하도록 하자! pivot_wider (data, names_from = 변수, values_from = 변수, values_fill = 0) key를 names_from으로..
타임리 부트캠프 시즌2 리트코드 숙제1 1. Add Binary (will do mock interview next class) https://leetcode.com/problems/add-binary/ Ref: https://www.programiz.com/article/python-self-why#:~:text=The%20self%20keyword%20is%20used,information%20for%20both%20these%20objects. Python is a object-oriented programming. In obejct-oriented programming, whenever we define methods for a class, we use 'self' as the first parameter in each case. Cl..
Top 8 Data Structures for Coding Interviews I get to know this links and questions from my mentor in Timely Bootcamp. Reference: https://www.youtube.com/watch?v=uhYq27iSk9s 1. Array - Array is stored in a contiguous way. In RAM, the array would be stored in a subset of that memory in order. - If we know the index that we want to access, we can directly figure out what is the value in constant time. - However, in terms of inserting and rem..