Open In App

How to Plot Bivariate Data in Excel?

Last Updated: 28 Aug, 2023

G

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

Bivariate data is the most used type of data representation for the plotting of scatter plots . The data depends on two variables as its name suggests, and it is analyzed using different machine-learning algorithms, using different charts, etc. Bivariate can be performed using different methods. Among those Linear regression is one of the most used algorithms for bivariate data.

In this article, we will learn how to deal with bivariate data and analyze it using scatter plots.

What is Bivariate Data 

Bivariate data is data which have two variable dependencies. The data can be either Quantitative or Qualitative. The value of one variable changes accordingly with the value of the second variable. The Quantitative bivariate data can be represented in the form of a scatter plot, and Qualitative variable data can be represented in the form of a frequency distribution table. A correlation can exist in bivariate data, the correlation value ranges from -1 and 1. 

What are Scatter Plots

Scatter plots are graphs that represent the relation between two variables. It is simply said as plotting points, on the X and Y axis. They are very useful for data analysis or regression analysis. The independent attributes are plotted on X-axis, while dependent attributes are plotted on Y-axis.

For example, you are given a scatter plot of Study Hours and Marks(100).

scatter-plots

Example: Scatter Plot

What is Linear Regression

Linear Regression is a machine learning model, which is used to predict the future values of a dependent variable, with respect to the best-fit line. The best-fit line is the line that passes through the data points, such that they have the minimum distance error sum from all the points. This is also called a trend line. Excel one-click functionality, to display the equation of the trend line, which is achieved from the machine learning linear regression algorithm.

Linear-regression

Example : Linear Regression

How to Plot Bivariate Data using Scatter Plot – Steps

Now, we will learn how to create a scatter plot and add a trend line, which will help us analyze the bivariate data in a better way. Lets begin with the help of an example.

For example, Arushi is the class teacher of the tenth (X)th class, she collected data from her students, how many hours they use to study in a day, and added the marks achieved corresponding to that student, her task is to analyze this bivariate data in excel, by plotting it in a scatter plot. 

Plotting-Bivariate-Data-in-Scatter-Plot

Adding Marks and Study Hours

Step 1: Access the Insert Tab

Select the data you entered, and go to the Insert Tab. After selecting Insert Tab you have to add a scatter chart

Adding-scatter-chart

Selecting the Data and Accessing Insert

Step 2: Select the Scatter Chart

Find the Charts section, and under the section go to the scatter chart and select it. 

Selecting-scatter-chart

Select Scatter Chart

Step 3: Chart is Successfully Created

As you click on Scatter charts option, a chart is created, between Study Hours (X-axis) and Marks Scored (Y-axis)

Chart-created

Chart Creatted

Step 4: Adding Custom Title

Add a custom title to the prepared chart i.e. Study Hours Vs Marks(100) by double clicking on the Tilte Box.

Custom-title-prepared

Add Custom Tilte

Step 5: Add Titles to X and Y Axis

Select the chart, click on the plus(+) button, and check the box Axis Titles. This adds the name of the X-Axis and Y-Axis. 

Adding-axis

Select Axis Titles

Step 6: Preview Titles Added to X and Y axis

The Axis titles, box is added, with the default name as Axis Title

Axis-titles-added

Titles Added

Step 7: Edit the Titles of X and Y Axis

On the X and Y axis, select the Axis Title, and change the name to Study Hours and Marks(100) respectively. 

Adding-axis-title

Titles Name Added

Step 8: Select X Axis

Select the X-Axis chart area, and right-click on it. A drop-down appears, select the format axis

Selecting-format-axis

Select X axis

Step 9: Go to Format Axis

A Format Axis, dialogue box appears, at the right-most side of your screen. Under the Axis Options, the default value of minimum is 0. We can see our data starts after value 4. To have better visualization, we could change the minimum value from 0 to 3. This totally depends on the user, one can provide any value as the minimum value. 

minimizing-value

Go to Format Axis and Check Minimum Value

Step 10: Change Axis Value

Change the minimum value from 0 to 3. Press Enter

Changing-minimum-value

Giving Value according to data

Step 11: Preview Changed X Axis Value

Now, you can observe, our X-axis starts from value 3

X-axis-starting-from-3

Value Changed

Step 12: Select Format Axis For Y Axis

Repeat the same for Y-axis. Select the Y-axis chart area, and right-click on it. A drop-down appears, select the format axis

Selecting-format-axis

Select Format Axis

Step 13: Check Minimum Value and Change It

A Format Axis, a dialogue box appears, at the right-most side of your screen. Under the Axis Options, the default value of minimum is 0. We can see our data starts after value 40. To have better visualization, we could change the minimum value from 0 to 30. This totally depends on the user, one can provide any value as the minimum value. Press Enter

Changing-minimum-value

Check Minimum Value

Step 14: Preview Changed Value

Now, you observe, our Y-axis starts from value 30

Y-axis-starting-from-3

Value Changed

Step 15: Add Trendline

Now, the only work left is to add a trend line, and an equation of the best-fit line, which is part of our linear regression. Select the data points, and right-click on them. Select Add Trendline. This adds the trend line to your chart. 

Clicking-add-trendline

Select Trendline

Step 16: Go to Format Trendline and Select Display Eaquation On Chart

Also, a Format Trendline dialogue box appears, at the right-most side of your screen. Under the Trendline Options, check the box, Display equation on the chart. 

Checking-display-equation-on-chart

Select Display on Chart

Step 17: Preview Added Trendline

A Trend line and its equation is added to your chart. 

Equation-added

Trend line is added

Step 18: Use CORREL Function

Our Bivariate data is plotted, efficiently for analytical purposes. The only work left is to add the correlation value between the two variables.

Note: Use =CORREL(C2:I2, C3:I3) function, to add a correlation between the variables. Press Enter

Bivariate

Using CORREL Function

Step 19: Value is Positive

The correlation value is 0.396 i.e. positive, which signifies that as the study hours increase, the marks of students also increase.  

bivariate1

Correlation Value is Positive

Conclusion

With the above mentioned steps you can easily plot Bivariate data in Excel using Scatter Plots. This is easy to do. You can easily corelate two variables and find the relationship between them which is very useful in data analysis and understanding. It also looks more presentable and is way organised.

FAQs

What is plotting bivariate data in Excel?

Plotting Bivariate data in Excel means creating a graph that displays the relationship between two different things that are related to each other. The data set you use for this graph consists of pairs of values, where each pair represents a value from one thing and its corresponding value from another thing. By plotting this data, you can visualize patterns, trends, correlations, or associations between the two variables.

How we can create a scatter plot for bivariate data in Excel?

You can follow the below steps to create a Scatter plot in Excel for bivariate data:

Step 1: Enter the data into two columns, one for each variable.

Step 2: Select the data range that includes both columns.

Step 3: Go to the “Insert” tab in the Excel ribbon.

Step 4: Click on the “Scatter” chart type and choose the scatter plot style you prefer.

Can we add a trendline to the scatter plot in Excel?

Yes, you can add a trendline to the Scatter plot in Excel to visualize the general trend or relationship between the variables. To add a trendline follow the below steps:

Step 1: Click on the Scatter plot to select it.

Step 2: Go to the “Chart design” tab in the Excel Ribbon.

Step 3: Click on “Add Chart Element” and choose “Trendline”.

Step 4: Select the type of tradeline you want to add.

Step 5: The trendline will be now added to the scatter plot, and you can format it by right- click and select “Format Trendline”.

How can we create other types of bivariate plots in Excel?

Excel allows us to create other chart types suitable for visualizing bivariate data, including line charts, bubble charts, and 3D Scatter plots. The steps to create these plots are similar to creating a scatter plot. You should arrange your data differently or use specific chart types from the “Insert” tab based on your requirements.



G

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

Plot Multiple Data Sets on the Same Chart in Excel

article_img
Sometimes while dealing with hierarchical data we need to combine two or more various chart types into a single chart for better visualization and analysis. This type of chart having multiple data sets is known as "Combination charts". In this article, we are going to see how to make combination charts from a set of two different charts in Excel using the example shown below. Example: Consider a famous coaching institute that deals with both free content in their YouTube channel and also have their own paid online courses. There are broadly two categories of students in this institute : The students who enrolled in the coaching but are learning from YouTube free video content.The students who enrolled as well as bought paid online courses. So, the institute asked their Sales Department to make a statistical chart about how many paid courses from a pool of courses which the institute deals with were sold from the year 2014 to the last year 2020 and also show the percentage of students who have enrolled in these paid courses. Table : Here, the first data is "Number of Paid courses sold" and the second one is "Percentage of Students enrolled". Now our aim is to plot these two data in
Read More

How to Find, Highlight, and Label a Data Point in Excel Scatter Plot?

article_img
Scatter plots are one of the most frequently used charts for data analysis. There can be situations when you want to highlight a particular data point from the scatter chart that contains hundreds of data points. This seems to be a tedious task but it could be achieved very easily in excel. We will learn about how to find, highlight and label a data point in an excel Scatter plot. Use Hover for Small Data For table size less than equal to 10, this technique is quite efficient. For example, you are given a Pressure Vs Temperature plot. The number of rows in the table is 6. Simply hover on the data points in the scatter chart. Here we can see that the point hovered has a pressure of 5 and a temperature of 12. This method is not efficient when we have more than 2 columns in our table or the number of rows greater than 10. Using Data Labels To highlight the data points for more information we can use data labels. These help us to make data more understandable. This technique is efficient if the number of rows in the given data source is less than 20. It's been observed that if the number of rows is high then the data labels make complete chaos. The data labels start overlapping a
Read More

How to Create a Stem-and-Leaf Plot in Excel?

article_img
Stem and Leaf plot is a histogram tabulation of data. Stem and leaf plot is better for data visualization and cleanliness of the data in a certified range. The plot helps determine the frequency distribution of the data. In this article, we will learn how to create a stem and leaf plot in excel. Stem and Leaf AnalogyThe stem is the main upholding of a tree. The stem divides into branches and branches contain leaves. The concept in the Stem and Leaf plot in excel is also quite similar to it. For example, you are given the data of numbers, 12, 12, 13, 53. These numbers can be better represented as 1 -> 2 2 3 and 5-> 3 where 1 5 contributes to the stem and 2 2 3 3 contributes to the leaves. For example, data set is 12, 220, 15, 221, 20, 20, 23. The Stem and Leaf plot for the above data set will be: 1 | 2 5 2 | 0 0 3 22 | 0 1 Some important function Before creating a stem and leaf plot in excel. We will quickly summarise the formulas required to make a stem and leaf plot. 1. =FLOOR.MATH(): The floor fu
Read More

How to Create a Bland-Altman Plot in Excel?

article_img
Bland-Altman plot is not present by default in excel, but it can be easily built with the help of excel. There is software that provides in-built Bland-Altman plots like MedCalc, Analyse-it, etc. In this article, we will learn how to create a Bland-Altman plot in excel. A Bland-Altman plot is used to give agreement between two measured quantities or equipment. This plot is generally used in the medical industry to test the agreement and correlation values between two equipment or units. This plot was introduced in medicine statistics by J. Martin Bland and Douglas G. Altman. Bland and Altman said that in medical statistics, if two types of equipment are highly correlated, then it might not imply good agreement, as there could be widespread sample collection which leads to good correlation. To solve this issue, Bland and Altman introduced this plot, which gives you a qualitative analysis of whether the equipment or units used are highly correlated or not. The plot does not give a probability of error on the variables. Parts of a Bland-Altman Plot The basic construction of a plot is that it contains two variables of which graph is to be plotted. The X-axis contains the mean of the t
Read More

C

How to Create a Forest Plot in Excel?

Forest plots are an excellent way to convey a multitude of information in a single picture. Forest plots have become a recognized and well-understood technique of displaying several estimates concurrently, whether used to demonstrate various outcomes in a single research or the cumulative knowledge of an entire subject. This article investigates advanced uses of the forest plot with the goal of demonstrating Excel's versatility in producing both basic and sophisticated forest plots. Forest plots are widely used to display meta-analysis findings. Unfortunately, no conventional forest plot graph option is available in Excel. In a meta-analysis, a forest plot is used to show the findings of many research in one figure. The x-axis represents the value of the interest in the research (often an odds ratio, effect size, or mean difference), while the y-axis represents the findings of each particular study. This style of display makes it easy to see the findings of several research at once. Creating a Forest Plot in Excel The following step-by-step example illustrates how to make a forest plot in Excel. Step 1: Enter the Data: First, we'll enter each study data in the following format.
Read More

How to Plot Multiple Lines on an Excel Graph?

article_img
Excel is a powerful data visualization and data management tool that can be used to store, analyze, and create reports on large data. It can be used to plot different kinds of graphs like line graphs, bar graphs, etc. \ The line graph is also known as a line plot or a line chart. In this graph, lines are used to connect individual data points. It displays quantitative values over a specified time interval. We can easily plot multiple lines on the same graph in Excel by simply selecting several rows (or columns) and creating a line plot. How to Plot Multiple Lines on an Excel Graph? Plotting Multiple Lines on an Excel Graph1. When the data is arranged in columnsFor demonstration, we will use the sales data of three products over the period of different years. Step 1: Select the cell containing product data. Step 2: Select "Insert" Tab from the top ribbon and select the line chart. Output:2. When the data is arranged in rowsFor the purpose of demonstration, we will use the sales data of three products over the period of different years. Step 1: Select the cell containing product data. Step 2: Select the "Insert" Tab from the top ribbon and select the line chart. Output:Conclusion In
Read More

How to Create an X-Y Scatter Plot in Excel?

Excel is powerful data visualization and data management tool which can be used to store, analyze, and create reports on large data. It can be used to visualize and compare data using a graph plot. In excel we can plot different kinds of graphs like line graphs, bar graphs, etc. to visualize or analyze the trend. To draw an X-Y plot, it is recommended to use a scatter plot. Scatter chart It is used to understand the correlation between two data variables. A dot is used to represent the values where each dot represents two values (X-axis value and Y-axis value). This chart can be used to visualize the trend and relation between two values over time. For the purpose of demonstration we will use the below-given dataset, It has X values and the corresponding Y values. Drawing X-Y Plot using Excel Step 1: Select the data Step 2: From the Insert tab, select scatter chart with a marker. Output Steps to make changes in the graph Step 1: Click on the chart title Step 2: The chart format menu will open. Make desired changes. For example, change the chart title. Output You can see that the chart title is changed to X-y plot.
Read More

How to Create Automatically Extended Plot Ranges in Excel?

article_img
We can easily create charts with the help of data points and data sources. But, If we have more data points added to our data source we need our chart will get updated depending upon our data source. For example, if we want to plot a sales chart on monthly basis, we need to update our chart every time we will need to add a new month's data. To overcome this problem, we will use automatically extending plot range. The dynamic extended plot range is a range that updates automatically when we add more data to it. And, Excel will update the chart depending on new data points added or deleted to the range dataset. Steps to Create Automatically Extended Plot Ranges in Excel In this example, we will be using random monthly sales data and will create a dynamically extending plot range for that dataset. Below are the steps to Create Automatically Extended Plot Ranges in Excel, Step 1: Create a Dataset. In this step, we will create our dataset. Here, we will use the following data as our dataset. Step 2: Create a Table. In this step, we will convert our dataset into a table. For this Select Data > Insert > Table. Once, we click on Table, Excel will pop up a window about Create Tab
Read More

How to Create a Scatter Plot In Excel: Step by Step Guide

article_img
A scatter plot in Excel is a powerful visualization tool for identifying trends, relationships, and patterns between two variables. By plotting data points on an Excel XY scatter plot, you can gain insights into correlations and outliers, making it an essential tool for data analysis. Whether you’re comparing sales and expenses, analyzing scientific data, or forecasting trends, scatter plots provide a clear picture of how two datasets interact. In this guide, we’ll walk you through the steps to create a scatter chart in Excel, including tips for switching axes and applying advanced techniques to refine your visuals.Disclaimer: Always ensure your data is accurate and well-organized to produce reliable and insightful visualizations.Scatter Plot In ExcelHow to Make a Scatter Plot in ExcelLearning how to build a scatter plot in Excel is simple and allows you to visually analyze relationships between data points. Follow these steps to create a scatter graph in Excel and customize your scatter chart:Step 1: Prepare Your DataOrganize your data into two columns:One column for the X-axis values (independent variable).The second column for the Y-axis values (dependent variable).Example:Adver
Read More

Editing Excel Macros in Excel

article_img
Excel Macro is a set of actions that can be recorded, saved, used multiple times. This feature saves us a lot of time when dealing with repetitive tasks and huge data sets. We can always make changes to an existing Macro in Excel. There are two ways to record and run macros: Excel Commands Excel Visual Basic for Applications(VBA).1. Copying a Macro Code We can reuse the existing macro code while creating new Macros. For example, if you have existing macros created using the record function, we can reuse the code to write new macros. To open the code follow the below steps: Select Tools --> Macros --> Visual Basic Editor. Copy code from the existing macros(use Command + C) and paste(use Command + V) in the new macro2. Renaming a Macro Follow the below steps to rename a Macro in Excel: Select Tools --> Macros --> Visual Basic Editor. Select name on the left plane.Edit the name.3. Deleting a Macro Follow the below steps to delete a macro in Excel: Select Tools --> Macros --> Macros... Select the macro to be deleted. Click on the minus(-) symbol at the bottom.Select yes to delete the macro.
Read More
three90RightbarBannerImg