Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Creating a Customizable Modal in React JS
In this article, we will see how to make a customizable modal in React JS with multiple buttons which can be used in many types of projects like on landing pages or travel websites. A modal is a message box that is displayed on top of the screen. We can use Modals as a subscription box; we can also add animation to a Modal using CSS.ExampleFirst create a React project −npx create-react-app tutorialpurposeGo to the project directory −cd tutorialpurposeDownload and install the react-modal package −npm i --save react-modalWe can use this package to add simple premade modals inside any React ...
Read MoreCreating a Particle Animation in React JS
"Particle animation" is a technique in game physics, motion graphics, and computer graphics that uses many minute sprites, 3D models, or other graphic objects to simulate certain kinds of "fuzzy" phenomena.In this article, we will see how to make a popular particle animation in React JS. We will do this using a third-party package called "react-tsparticles".First create a React project −npx create-react-app tutorialpurposeGo to the project directory −cd tutorialpurposeExampleDownload and install the "react-tsparticles" package −npm install react-tsparticles reactWe will use this package to add default particle animations with different styling elements. You can also add id and different options for ...
Read MoreCreating an Excel-like data grid in React JS
In this article, we will see how to create an Excel-like data grid in React JS frontend. We will use a third-party package for this, which is called react-data-grid. This is a useful package if you are working with data and want to make a dashboard application.First create a react project −npx create-react-app tutorialpurposeGo to the project directory −cd tutorialpurpose ExampleDownload and install the react-data-grid package −npm i --save react-data-gridWe can use this package to add default styled grid tables or you can say data grids which are premade.Add the following lines of code in App.js −import DataGrid from "react-data-grid"; ...
Read MoreDifference between Security Market Line (SML) and Capital Market Line (CML)
The security market line (SML) is a graph that is drawn with the values obtained from the capital asset pricing model (CAPM). It is a theoretical presentation of expected returns of assets that are based on systematic risk.Non-diversifiable risk is not represented by the SML. In a broader sense, the SML shows the expected market returns at a given level of market risk for marketable security. The overall level of risk is measured by the beta of the security against the market level of risk.Security Market Line AssumptionsSince the security market line is a representation of the CAPM, the assumptions ...
Read MoreWhat is the relationship between correlation and covariance?
In simple words, both correlation and covariance show the relationship and the dependency between two variables.Covariance shows the direction of the path of the linear relationship between the variables while a function is applied to them.Correlation on the contrary measures both the power and direction of the linear relationship between two variables.In simple terms, correlation is a function of the covariance. The fact that differentiates the two is that covariance values are not standardized while correlation values are. The correlation coefficient of two variables can be obtained by dividing the covariance values of these variables by the multiplication of the ...
Read MoreWhat is Minimum Variance Portfolio?
In a study done to link the variance with returns, it was found that both genres of portfolio construction measures – minimum volatility and low volatility – deliver market return more than the average. Their information ratios (IRs) also are not statistically significant. It was also found that both strategies let investors assume palpable risk, in relation to the market prices, for which investors were not compensated.Minimum Variance Portfolio (MVP)The concept of Modern Portfolio Theory (MPT) has been the milestone for finance professionals for portfolio construction since Harry Markowitz introduced the idea into finance in 1952. Every finance student has ...
Read MoreWhat is meant by Capital Market Line?
Capital Market Line (CML) is a line that talks about a portfolio that accurately combines both risk and returns. It is a graphical representation that shows a portfolio’s expected and required return based on a chosen level of risk. The portfolios that are on the CML optimize the required risk and return relationship that maximizes the performance of the portfolio.Note − The slope of Capital Market Line is known as the Sharpe Ratio of the market portfolio. It is now believed by many investors that one should buy a security if the Sharpe ratio is above the CML and sell ...
Read MoreMean-Variance criterion for defining efficient and inefficient assets
Mean-Variance AnalysisMean-Variance Analysis is a process that investors utilize to make investment decisions based on their risk tolerance. Investors actually consider the potential variance given by the volatility of returns produced by an asset in the market against the required expected returns of that asset. The mean-variance analysis looks into the average variance in the required expected return from an investment.The mean-variance analysis is a part of Modern Portfolio Theory (MPT) which is based on the assumption that investors tend to make rational decisions when they possess enough information. The theory also relies on the fact that investors enter the ...
Read MoreWhat is Capital Asset Pricing Model (CAPM)?
What is CAPM?The Capital Asset Pricing Model (CAPM) describes the association between the anticipated return and the risks of investing in a security. It represents the fact that the expected return on an asset is equal to the risk-free return rate plus a premium for taking the risk that is based on the beta of the security.Assessing the CAPM requires proper knowledge of systematic and unsystematic risks.Systematic risks are the general dangers, which apply to all forms of investment. For example, inflation rate, Wars, recessions, etc., are systematic risks.Unsystematic risks, on the other hand, show the specific dangers associated with ...
Read MoreBuilding an animated loader in React.JS
In this article, we will see how to make an animated loader in React.js. Animated loaders are used in many websites to enhance the look and feel. In React.js, we can use the react-spinkit package to create beautiful animated loaders easily without having to write hundreds of lines of CSS.First create a React project −npx create-react-app tutorialpurposeGo to the project directory −cd tutorialpurposeExampleInstall the react-spinkit package −npm i --save react-spinkitThis library provides premade loaders and it is really easy to add it in your project. Using spinner, you can add any animated loader in React.Add the following lines of code ...
Read More