<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.reliawiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Melinda+Caroline</id>
	<title>ReliaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.reliawiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Melinda+Caroline"/>
	<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php/Special:Contributions/Melinda_Caroline"/>
	<updated>2026-04-04T19:52:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=66236</id>
		<title>ReliaSoft API Reference</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=66236"/>
		<updated>2024-04-12T20:00:59Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:API}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em; float:right;&amp;quot;&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;[[API Changelog|Changelog]]&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;[[API Reference Documentation|API Documentation]]&lt;br /&gt;
*&#039;&#039;&#039;[[API Tutorials|Tutorials]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ReliaSoft &#039;&#039;Application Programming Interface&#039;&#039; (API) enables you to programmatically read and write data to ReliaSoft repositories, as well as analyze and plot data sets from external sources. It is provided for Visual Basic for Applications (VBA) and .NET applications, allowing you to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, or create custom applications for your organization. &lt;br /&gt;
&lt;br /&gt;
Implementing the ReliaSoft API allows you to connect data in repositories with the systems and tools used within your organization. It provides the functionality to:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Transfer and synchronize data via XML&#039;&#039;&#039;&lt;br /&gt;
:Use XML files to manage structured data (such as system hierarchies/BOMs, incidents and work orders) between ReliaSoft’s [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/xfracas-failure-reporting-analysis-corrective-action-system-fracas-software XFRACAS] and a variety of different PLMs, ERPs, CMMS and other external systems. You can also use XML files to create reliability block diagrams (RBDs) in [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/blocksim-system-reliability-availability-maintainability-ram-analysis-software BlockSim]. &lt;br /&gt;
*&#039;&#039;&#039;Read/write specific data elements&#039;&#039;&#039;&lt;br /&gt;
:Read or write data to resources (models, actions, URDs, etc.), system hierarchy items and FMEA records (causes, effects, failures, etc.). Initiate batch data processing and create custom solutions for importing/exporting data from ReliaSoft repositories, as well as load data into the Reliability Data Warehouse (RDW). &lt;br /&gt;
*&#039;&#039;&#039;Obtain calculated results&#039;&#039;&#039;&lt;br /&gt;
:Read data from published models and obtain calculated results such as reliability, probability of failure, BX% life, failure rate and mean time. &lt;br /&gt;
*&#039;&#039;&#039;Analyze data&#039;&#039;&#039;&lt;br /&gt;
:Use [https://hbkworld.com/en/products/software/analysis-simulation/reliability/weibull-life-data-analysis-software Weibull++&#039;s] analysis and plotting engines to analyze data from third-party sources, and incorporate the functionality into your own custom applications. (Requires a ReliaSoft API license.)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*&#039;&#039;&#039;Getting the latest version&#039;&#039;&#039;&lt;br /&gt;
:The ReliaSoft API consists of a library file that contains the classes, methods and events that provide access to ReliaSoft applications. The file is located in the folder where the ReliaSoft desktop applications are installed. By default, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file. Prior to Version 2019, the files to use were SynthesisAPI.tlb (VBA) and SynthesisAPI.dll (.NET).&lt;br /&gt;
&lt;br /&gt;
:To obtain the latest version of the library file and the ReliaSoft applications, choose &#039;&#039;&#039;File &amp;gt; Help &amp;gt; Check for Updates&#039;&#039;&#039; or download the latest version from the [https://support.hbmprenscia.com HBM Prenscia Support Portal].&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Build environment&#039;&#039;&#039;&lt;br /&gt;
:For Visual Studio projects using Version 10 or 11, at minimum you will need Visual Studio 2010 and the .NET Framework 4.0 runtime. Version 2018 and later require Visual Studio 2015 and the .NET Framework 4.6.1 developer pack and runtime. Starting in Version 2022, .NET Framework 4.8 developer pack is required.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;32- vs. 64-bit&#039;&#039;&#039;&lt;br /&gt;
:For VBA, the bit version of the ReliaSoft applications that you&#039;ve installed must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls. &lt;br /&gt;
&lt;br /&gt;
:For Visual Studio projects targeting the .NET Framework 4.5 (or later) and compiled to run an any platform (Any CPU), turn off the &#039;&#039;&#039;Prefer 32-bit&#039;&#039;&#039; property of the build configuration if you want instances of your application to run as a 64-bit process; otherwise, the application will run as a 32-bit process on both 32- and 64-bit versions of Windows. It is necessary to ensure your application bitness matches the bitness of the ReliaSoft desktop applications installed wherever your application is run due to dependencies on platform-specific libraries.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Running API applications on a server &lt;br /&gt;
:If you plan to run the API on a Windows server, you must use [https://help.reliasoft.com/basics/content/reliasoft_installation_and_licensing.htm locally hosted licensing] with Prenscia Access. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Access to calculations functionality&lt;br /&gt;
:Access to Weibull++&#039;s analysis and plotting engines requires a ReliaSoft API license. To obtain a license, please see [https://www.hbkworld.com/en/contact-us/reliasoft-worldwide-contacts contact ReliaSoft].&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
====Referencing the ReliaSoft API Library File====&lt;br /&gt;
&amp;lt;!-- This &amp;quot;onlyinclude&amp;quot; section is transcluded into the API Tutorials page --&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;To use the ReliaSoft API in your code, you must reference the ReliaSoft API library in your VBA or .NET projects. The file is located in the folder where the ReliaSoft desktop applications are installed. By default for Version 2023, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in VBA&#039;&#039;&#039;:&lt;br /&gt;
:#Enter the VBA environment by clicking the &#039;&#039;&#039;Visual Basic&#039;&#039;&#039; command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]). &lt;br /&gt;
:#In the VBA environment, choose &#039;&#039;&#039;Tools &amp;gt; References&#039;&#039;&#039;.&lt;br /&gt;
:#Click &#039;&#039;&#039;Browse&#039;&#039;&#039; and find the ReliaSoftAPI23.tlb file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in Visual Studio:&#039;&#039;&#039;&lt;br /&gt;
:#In the Solution Explorer, right-click the &#039;&#039;&#039;References&#039;&#039;&#039; node of your project and choose &#039;&#039;&#039;Add References&#039;&#039;&#039;. &lt;br /&gt;
:#In the Reference Manager window, click the &#039;&#039;&#039;Browse&#039;&#039;&#039; tab and find the ReliaSoftAPI23.dll file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
:#Edit your project file, either directly using any text editor, or by right-clicking your project and choosing &#039;&#039;&#039;Unload Project&#039;&#039;&#039;, then right-clicking your project again and choosing &#039;&#039;&#039;Edit Project File&#039;&#039;&#039;&lt;br /&gt;
:#Insert the following line just before the last &amp;lt;/Project&amp;gt; clause (change the path if necessary):&lt;br /&gt;
:::&lt;br /&gt;
::::::&amp;lt;Import Project=&amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023\ReliaSoftAPI.targets&amp;quot; /&amp;gt;&lt;br /&gt;
:::&lt;br /&gt;
:::This will ensure the required files are copied into your project’s destination folder during the build.&lt;br /&gt;
:#&amp;lt;li value=&amp;quot;5&amp;quot;&amp;gt;Save the project file. If you unloaded the project in step 3, right-click the project and choose &#039;&#039;&#039;Reload Project&#039;&#039;&#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
====Examples====&lt;br /&gt;
Sample applications that you can test and tweak yourself are included with the ReliaSoft installation. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples23\API.&lt;br /&gt;
 &lt;br /&gt;
The sample applications are available for Excel VBA and VB.NET projects. (To run the Excel examples, macros must be enabled. See [http://office.microsoft.com/en-us/excel-help/enable-or-disable-macros-in-office-documents-HA010031071.aspx this Microsoft article].) &lt;br /&gt;
&lt;br /&gt;
====Tutorials====&lt;br /&gt;
[[API Tutorials|Tutorials]] are available to help you learn the core objects of the ReliaSoft API and start coding right away. The tutorials include code samples for both VBA and VB.NET.&lt;br /&gt;
&lt;br /&gt;
==Object Library ==&lt;br /&gt;
Below is a summary of the core objects in the ReliaSoft API library. For an alphabetical listing of all objects in the latest version, see [[API Reference Documentation]].&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[Repository Class|Repository]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents the ReliaSoft repository. All other objects use the functions in this class to read or write data to the repository. This class also contains the functions for importing/exporting XML files. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the ReliaSoft resources. Instances of each class can be used to store data for an existing or new resource.  &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CAction Class|cAction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCorrectiveTask Class|cCorrectiveTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CScheduledTask Class|cScheduledTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCrew Class|cCrew]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CModel Class|cModel]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CPool Class|cPool]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CProfile Class|cProfile]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CURD Class|cURD]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CVariable Class|cVariable]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CXfmeaControl Class|cXfmeaControl]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following objects build data sets for the Reliability Data Warehouse (RDW).&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawData Class|RawData]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; represents a single data point.&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawDataSet Class|RawDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; serves as the data container for &amp;lt;code&amp;gt;RawData&amp;lt;/code&amp;gt; objects.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaItem Class|XfmeaItem]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a system hierarchy item. Instances of this class can be used to store data for a system or assembly, as well as build a multi-level system configuration. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the FMEA records. Instances of each class can be used to store data for an existing or new FMEA analysis. &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFunction Class|XfmeaFunction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaCause Class|XfmeaCause]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaEffect Class|XfmeaEffect]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFailure Class|XfmeaFailure]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WeibullDataSet Class|WeibullDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a Weibull++ data sheet for life data analysis. Instances of this class are used to define a data set and fit a statistical distribution to the data.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[ALTADataSet Class|ALTADataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents an ALTA data sheet for accelerated life testing data analysis. Instances of this class are used to define a data set, and fit a distribution and life-stress relationship to the data. &lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WAPlots Class|WAPlots]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a plot based on a &amp;lt;code&amp;gt;cModel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WeibullDataSet&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ALTADataSet&amp;lt;/code&amp;gt; object. Instances of this class are used to display a plot of the analysis results.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=66235</id>
		<title>ReliaSoft API Reference</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=66235"/>
		<updated>2024-03-11T21:43:32Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:API}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em; float:right;&amp;quot;&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;[[API Changelog|Changelog]]&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;[[API Reference Documentation|API Documentation]]&lt;br /&gt;
*&#039;&#039;&#039;[[API Tutorials|Tutorials]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ReliaSoft &#039;&#039;Application Programming Interface&#039;&#039; (API) enables you to programmatically read and write data to ReliaSoft repositories, as well as analyze and plot data sets from external sources. It is provided for Visual Basic for Applications (VBA) and .NET applications, allowing you to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, or create custom applications for your organization. &lt;br /&gt;
&lt;br /&gt;
Implementing the ReliaSoft API allows you to connect data in repositories with the systems and tools used within your organization. It provides the functionality to:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Transfer and synchronize data via XML&#039;&#039;&#039;&lt;br /&gt;
:Use XML files to manage structured data (such as system hierarchies/BOMs, incidents and work orders) between ReliaSoft’s [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/xfracas-failure-reporting-analysis-corrective-action-system-fracas-software XFRACAS] and a variety of different PLMs, ERPs, CMMS and other external systems. You can also use XML files to create reliability block diagrams (RBDs) in [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/blocksim-system-reliability-availability-maintainability-ram-analysis-software BlockSim]. &lt;br /&gt;
*&#039;&#039;&#039;Read/write specific data elements&#039;&#039;&#039;&lt;br /&gt;
:Read or write data to resources (models, actions, URDs, etc.), system hierarchy items and FMEA records (causes, effects, failures, etc.). Initiate batch data processing and create custom solutions for importing/exporting data from ReliaSoft repositories, as well as load data into the Reliability Data Warehouse (RDW). &lt;br /&gt;
*&#039;&#039;&#039;Obtain calculated results&#039;&#039;&#039;&lt;br /&gt;
:Read data from published models and obtain calculated results such as reliability, probability of failure, BX% life, failure rate and mean time. &lt;br /&gt;
*&#039;&#039;&#039;Analyze data&#039;&#039;&#039;&lt;br /&gt;
:Use [https://hbkworld.com/en/products/software/analysis-simulation/reliability/weibull-life-data-analysis-software Weibull++&#039;s] analysis and plotting engines to analyze data from third-party sources, and incorporate the functionality into your own custom applications. (Requires a ReliaSoft API license.)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*&#039;&#039;&#039;Getting the latest version&#039;&#039;&#039;&lt;br /&gt;
:The ReliaSoft API consists of a library file that contains the classes, methods and events that provide access to ReliaSoft applications. The file is located in the folder where the ReliaSoft desktop applications are installed. By default, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file. Prior to Version 2019, the files to use were SynthesisAPI.tlb (VBA) and SynthesisAPI.dll (.NET).&lt;br /&gt;
&lt;br /&gt;
:To obtain the latest version of the library file and the ReliaSoft applications, choose &#039;&#039;&#039;File &amp;gt; Help &amp;gt; Check for Updates&#039;&#039;&#039; or download the latest version from the [https://support.hbmprenscia.com HBM Prenscia Support Portal].&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Build environment&#039;&#039;&#039;&lt;br /&gt;
:For Visual Studio projects using Version 10 or 11, at minimum you will need Visual Studio 2010 and the .NET Framework 4.0 runtime. Version 2018 and later require Visual Studio 2015 and the .NET Framework 4.6.1 developer pack and runtime. Starting in Version 2022, .NET Framework 4.8 developer pack is required.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;32- vs. 64-bit&#039;&#039;&#039;&lt;br /&gt;
:For VBA, the bit version of the ReliaSoft applications that you&#039;ve installed must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls. &lt;br /&gt;
&lt;br /&gt;
:For Visual Studio projects targeting the .NET Framework 4.5 (or later) and compiled to run an any platform (Any CPU), turn off the &#039;&#039;&#039;Prefer 32-bit&#039;&#039;&#039; property of the build configuration if you want instances of your application to run as a 64-bit process; otherwise, the application will run as a 32-bit process on both 32- and 64-bit versions of Windows. It is necessary to ensure your application bitness matches the bitness of the ReliaSoft desktop applications installed wherever your application is run due to dependencies on platform-specific libraries.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Running API applications on a server &lt;br /&gt;
:If you plan to run the API on a Windows server, you must use [https://help.reliasoft.com/basics/content/reliasoft_installation_and_licensing.htm locally hosted licensing] and you’ll need to install the ReliaSoft API Ante Service to scale the implementation (the service is not required when running the API on a Windows desktop environment). For instructions on how to install and configure the service, see https://support.hbmprenscia.com/s/article/ReliaSoft-API-Ante-Service. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Access to calculations functionality&lt;br /&gt;
:Access to Weibull++&#039;s analysis and plotting engines requires a ReliaSoft API license. To obtain a license, please see [https://www.hbkworld.com/en/contact-us/reliasoft-worldwide-contacts contact ReliaSoft].&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
====Referencing the ReliaSoft API Library File====&lt;br /&gt;
&amp;lt;!-- This &amp;quot;onlyinclude&amp;quot; section is transcluded into the API Tutorials page --&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;To use the ReliaSoft API in your code, you must reference the ReliaSoft API library in your VBA or .NET projects. The file is located in the folder where the ReliaSoft desktop applications are installed. By default for Version 2023, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in VBA&#039;&#039;&#039;:&lt;br /&gt;
:#Enter the VBA environment by clicking the &#039;&#039;&#039;Visual Basic&#039;&#039;&#039; command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]). &lt;br /&gt;
:#In the VBA environment, choose &#039;&#039;&#039;Tools &amp;gt; References&#039;&#039;&#039;.&lt;br /&gt;
:#Click &#039;&#039;&#039;Browse&#039;&#039;&#039; and find the ReliaSoftAPI23.tlb file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in Visual Studio:&#039;&#039;&#039;&lt;br /&gt;
:#In the Solution Explorer, right-click the &#039;&#039;&#039;References&#039;&#039;&#039; node of your project and choose &#039;&#039;&#039;Add References&#039;&#039;&#039;. &lt;br /&gt;
:#In the Reference Manager window, click the &#039;&#039;&#039;Browse&#039;&#039;&#039; tab and find the ReliaSoftAPI23.dll file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
:#Edit your project file, either directly using any text editor, or by right-clicking your project and choosing &#039;&#039;&#039;Unload Project&#039;&#039;&#039;, then right-clicking your project again and choosing &#039;&#039;&#039;Edit Project File&#039;&#039;&#039;&lt;br /&gt;
:#Insert the following line just before the last &amp;lt;/Project&amp;gt; clause (change the path if necessary):&lt;br /&gt;
:::&lt;br /&gt;
::::::&amp;lt;Import Project=&amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023\ReliaSoftAPI.targets&amp;quot; /&amp;gt;&lt;br /&gt;
:::&lt;br /&gt;
:::This will ensure the required files are copied into your project’s destination folder during the build.&lt;br /&gt;
:#&amp;lt;li value=&amp;quot;5&amp;quot;&amp;gt;Save the project file. If you unloaded the project in step 3, right-click the project and choose &#039;&#039;&#039;Reload Project&#039;&#039;&#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
====Examples====&lt;br /&gt;
Sample applications that you can test and tweak yourself are included with the ReliaSoft installation. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples23\API.&lt;br /&gt;
 &lt;br /&gt;
The sample applications are available for Excel VBA and VB.NET projects. (To run the Excel examples, macros must be enabled. See [http://office.microsoft.com/en-us/excel-help/enable-or-disable-macros-in-office-documents-HA010031071.aspx this Microsoft article].) &lt;br /&gt;
&lt;br /&gt;
====Tutorials====&lt;br /&gt;
[[API Tutorials|Tutorials]] are available to help you learn the core objects of the ReliaSoft API and start coding right away. The tutorials include code samples for both VBA and VB.NET.&lt;br /&gt;
&lt;br /&gt;
==Object Library ==&lt;br /&gt;
Below is a summary of the core objects in the ReliaSoft API library. For an alphabetical listing of all objects in the latest version, see [[API Reference Documentation]].&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[Repository Class|Repository]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents the ReliaSoft repository. All other objects use the functions in this class to read or write data to the repository. This class also contains the functions for importing/exporting XML files. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the ReliaSoft resources. Instances of each class can be used to store data for an existing or new resource.  &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CAction Class|cAction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCorrectiveTask Class|cCorrectiveTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CScheduledTask Class|cScheduledTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCrew Class|cCrew]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CModel Class|cModel]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CPool Class|cPool]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CProfile Class|cProfile]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CURD Class|cURD]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CVariable Class|cVariable]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CXfmeaControl Class|cXfmeaControl]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following objects build data sets for the Reliability Data Warehouse (RDW).&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawData Class|RawData]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; represents a single data point.&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawDataSet Class|RawDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; serves as the data container for &amp;lt;code&amp;gt;RawData&amp;lt;/code&amp;gt; objects.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaItem Class|XfmeaItem]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a system hierarchy item. Instances of this class can be used to store data for a system or assembly, as well as build a multi-level system configuration. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the FMEA records. Instances of each class can be used to store data for an existing or new FMEA analysis. &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFunction Class|XfmeaFunction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaCause Class|XfmeaCause]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaEffect Class|XfmeaEffect]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFailure Class|XfmeaFailure]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WeibullDataSet Class|WeibullDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a Weibull++ data sheet for life data analysis. Instances of this class are used to define a data set and fit a statistical distribution to the data.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[ALTADataSet Class|ALTADataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents an ALTA data sheet for accelerated life testing data analysis. Instances of this class are used to define a data set, and fit a distribution and life-stress relationship to the data. &lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WAPlots Class|WAPlots]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a plot based on a &amp;lt;code&amp;gt;cModel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WeibullDataSet&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ALTADataSet&amp;lt;/code&amp;gt; object. Instances of this class are used to display a plot of the analysis results.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=66234</id>
		<title>ReliaSoft API Reference</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=66234"/>
		<updated>2024-03-11T21:42:21Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:API}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em; float:right;&amp;quot;&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;[[API Changelog|Changelog]]&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;[[API Reference Documentation|API Documentation]]&lt;br /&gt;
*&#039;&#039;&#039;[[API Tutorials|Tutorials]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ReliaSoft &#039;&#039;Application Programming Interface&#039;&#039; (API) enables you to programmatically read and write data to ReliaSoft repositories, as well as analyze and plot data sets from external sources. It is provided for Visual Basic for Applications (VBA) and .NET applications, allowing you to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, or create custom applications for your organization. &lt;br /&gt;
&lt;br /&gt;
Implementing the ReliaSoft API allows you to connect data in repositories with the systems and tools used within your organization. It provides the functionality to:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Transfer and synchronize data via XML&#039;&#039;&#039;&lt;br /&gt;
:Use XML files to manage structured data (such as system hierarchies/BOMs, incidents and work orders) between ReliaSoft’s [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/xfracas-failure-reporting-analysis-corrective-action-system-fracas-software XFRACAS] and a variety of different PLMs, ERPs, CMMS and other external systems. You can also use XML files to create reliability block diagrams (RBDs) in [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/blocksim-system-reliability-availability-maintainability-ram-analysis-software BlockSim]. &lt;br /&gt;
*&#039;&#039;&#039;Read/write specific data elements&#039;&#039;&#039;&lt;br /&gt;
:Read or write data to resources (models, actions, URDs, etc.), system hierarchy items and FMEA records (causes, effects, failures, etc.). Initiate batch data processing and create custom solutions for importing/exporting data from ReliaSoft repositories, as well as load data into the Reliability Data Warehouse (RDW). &lt;br /&gt;
*&#039;&#039;&#039;Obtain calculated results&#039;&#039;&#039;&lt;br /&gt;
:Read data from published models and obtain calculated results such as reliability, probability of failure, BX% life, failure rate and mean time. &lt;br /&gt;
*&#039;&#039;&#039;Analyze data&#039;&#039;&#039;&lt;br /&gt;
:Use [https://hbkworld.com/en/products/software/analysis-simulation/reliability/weibull-life-data-analysis-software Weibull++&#039;s] analysis and plotting engines to analyze data from third-party sources, and incorporate the functionality into your own custom applications. (Requires a ReliaSoft API license.)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*&#039;&#039;&#039;Getting the latest version&#039;&#039;&#039;&lt;br /&gt;
:The ReliaSoft API consists of a library file that contains the classes, methods and events that provide access to ReliaSoft applications. The file is located in the folder where the ReliaSoft desktop applications are installed. By default, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file. Prior to Version 2019, the files to use were SynthesisAPI.tlb (VBA) and SynthesisAPI.dll (.NET).&lt;br /&gt;
&lt;br /&gt;
:To obtain the latest version of the library file and the ReliaSoft applications, choose &#039;&#039;&#039;File &amp;gt; Help &amp;gt; Check for Updates&#039;&#039;&#039; or download the latest version from the [https://support.hbmprenscia.com HBM Prenscia Support Portal].&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Build environment&#039;&#039;&#039;&lt;br /&gt;
:For Visual Studio projects using Version 10 or 11, at minimum you will need Visual Studio 2010 and the .NET Framework 4.0 runtime. Version 2018 and later require Visual Studio 2015 and the .NET Framework 4.6.1 developer pack and runtime. Starting in Version 2022, .NET Framework 4.8 developer pack is required.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;32- vs. 64-bit&#039;&#039;&#039;&lt;br /&gt;
:For VBA, the bit version of the ReliaSoft applications that you&#039;ve installed must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls. &lt;br /&gt;
&lt;br /&gt;
:For Visual Studio projects targeting the .NET Framework 4.5 (or later) and compiled to run an any platform (Any CPU), turn off the &#039;&#039;&#039;Prefer 32-bit&#039;&#039;&#039; property of the build configuration if you want instances of your application to run as a 64-bit process; otherwise, the application will run as a 32-bit process on both 32- and 64-bit versions of Windows. It is necessary to ensure your application bitness matches the bitness of the ReliaSoft desktop applications installed wherever your application is run due to dependencies on platform-specific libraries.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Running API applications on a server &lt;br /&gt;
:If you plan to run the API on a Windows server, you must use [https://www.hbkworld.com/en/knowledge/resource-center/resources/2022/locally-hosted-licensing locally hosted licensing] and you’ll need to install the ReliaSoft API Ante Service to scale the implementation (the service is not required when running the API on a Windows desktop environment). For instructions on how to install and configure the service, see https://support.hbmprenscia.com/s/article/ReliaSoft-API-Ante-Service. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Access to calculations functionality&lt;br /&gt;
:Access to Weibull++&#039;s analysis and plotting engines requires a ReliaSoft API license. To obtain a license, please see [https://www.hbkworld.com/en/contact-us/reliasoft-worldwide-contacts contact ReliaSoft].&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
====Referencing the ReliaSoft API Library File====&lt;br /&gt;
&amp;lt;!-- This &amp;quot;onlyinclude&amp;quot; section is transcluded into the API Tutorials page --&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;To use the ReliaSoft API in your code, you must reference the ReliaSoft API library in your VBA or .NET projects. The file is located in the folder where the ReliaSoft desktop applications are installed. By default for Version 2023, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in VBA&#039;&#039;&#039;:&lt;br /&gt;
:#Enter the VBA environment by clicking the &#039;&#039;&#039;Visual Basic&#039;&#039;&#039; command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]). &lt;br /&gt;
:#In the VBA environment, choose &#039;&#039;&#039;Tools &amp;gt; References&#039;&#039;&#039;.&lt;br /&gt;
:#Click &#039;&#039;&#039;Browse&#039;&#039;&#039; and find the ReliaSoftAPI23.tlb file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in Visual Studio:&#039;&#039;&#039;&lt;br /&gt;
:#In the Solution Explorer, right-click the &#039;&#039;&#039;References&#039;&#039;&#039; node of your project and choose &#039;&#039;&#039;Add References&#039;&#039;&#039;. &lt;br /&gt;
:#In the Reference Manager window, click the &#039;&#039;&#039;Browse&#039;&#039;&#039; tab and find the ReliaSoftAPI23.dll file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
:#Edit your project file, either directly using any text editor, or by right-clicking your project and choosing &#039;&#039;&#039;Unload Project&#039;&#039;&#039;, then right-clicking your project again and choosing &#039;&#039;&#039;Edit Project File&#039;&#039;&#039;&lt;br /&gt;
:#Insert the following line just before the last &amp;lt;/Project&amp;gt; clause (change the path if necessary):&lt;br /&gt;
:::&lt;br /&gt;
::::::&amp;lt;Import Project=&amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023\ReliaSoftAPI.targets&amp;quot; /&amp;gt;&lt;br /&gt;
:::&lt;br /&gt;
:::This will ensure the required files are copied into your project’s destination folder during the build.&lt;br /&gt;
:#&amp;lt;li value=&amp;quot;5&amp;quot;&amp;gt;Save the project file. If you unloaded the project in step 3, right-click the project and choose &#039;&#039;&#039;Reload Project&#039;&#039;&#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
====Examples====&lt;br /&gt;
Sample applications that you can test and tweak yourself are included with the ReliaSoft installation. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples23\API.&lt;br /&gt;
 &lt;br /&gt;
The sample applications are available for Excel VBA and VB.NET projects. (To run the Excel examples, macros must be enabled. See [http://office.microsoft.com/en-us/excel-help/enable-or-disable-macros-in-office-documents-HA010031071.aspx this Microsoft article].) &lt;br /&gt;
&lt;br /&gt;
====Tutorials====&lt;br /&gt;
[[API Tutorials|Tutorials]] are available to help you learn the core objects of the ReliaSoft API and start coding right away. The tutorials include code samples for both VBA and VB.NET.&lt;br /&gt;
&lt;br /&gt;
==Object Library ==&lt;br /&gt;
Below is a summary of the core objects in the ReliaSoft API library. For an alphabetical listing of all objects in the latest version, see [[API Reference Documentation]].&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[Repository Class|Repository]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents the ReliaSoft repository. All other objects use the functions in this class to read or write data to the repository. This class also contains the functions for importing/exporting XML files. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the ReliaSoft resources. Instances of each class can be used to store data for an existing or new resource.  &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CAction Class|cAction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCorrectiveTask Class|cCorrectiveTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CScheduledTask Class|cScheduledTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCrew Class|cCrew]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CModel Class|cModel]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CPool Class|cPool]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CProfile Class|cProfile]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CURD Class|cURD]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CVariable Class|cVariable]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CXfmeaControl Class|cXfmeaControl]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following objects build data sets for the Reliability Data Warehouse (RDW).&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawData Class|RawData]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; represents a single data point.&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawDataSet Class|RawDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; serves as the data container for &amp;lt;code&amp;gt;RawData&amp;lt;/code&amp;gt; objects.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaItem Class|XfmeaItem]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a system hierarchy item. Instances of this class can be used to store data for a system or assembly, as well as build a multi-level system configuration. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the FMEA records. Instances of each class can be used to store data for an existing or new FMEA analysis. &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFunction Class|XfmeaFunction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaCause Class|XfmeaCause]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaEffect Class|XfmeaEffect]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFailure Class|XfmeaFailure]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WeibullDataSet Class|WeibullDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a Weibull++ data sheet for life data analysis. Instances of this class are used to define a data set and fit a statistical distribution to the data.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[ALTADataSet Class|ALTADataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents an ALTA data sheet for accelerated life testing data analysis. Instances of this class are used to define a data set, and fit a distribution and life-stress relationship to the data. &lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WAPlots Class|WAPlots]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a plot based on a &amp;lt;code&amp;gt;cModel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WeibullDataSet&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ALTADataSet&amp;lt;/code&amp;gt; object. Instances of this class are used to display a plot of the analysis results.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=65747</id>
		<title>ReliaSoft API Reference</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=65747"/>
		<updated>2023-07-13T17:06:03Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:API}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em; float:right;&amp;quot;&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;[[API Changelog|Changelog]]&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;[[API Reference Documentation|API Documentation]]&lt;br /&gt;
*&#039;&#039;&#039;[[API Tutorials|Tutorials]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ReliaSoft &#039;&#039;Application Programming Interface&#039;&#039; (API) enables you to programmatically read and write data to ReliaSoft repositories, as well as analyze and plot data sets from external sources. It is provided for Visual Basic for Applications (VBA) and .NET applications, allowing you to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, or create custom applications for your organization. &lt;br /&gt;
&lt;br /&gt;
Implementing the ReliaSoft API allows you to connect data in repositories with the systems and tools used within your organization. It provides the functionality to:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Transfer and synchronize data via XML&#039;&#039;&#039;&lt;br /&gt;
:Use XML files to manage structured data (such as system hierarchies/BOMs, incidents and work orders) between ReliaSoft’s [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/xfracas-failure-reporting-analysis-corrective-action-system-fracas-software XFRACAS] and a variety of different PLMs, ERPs, CMMS and other external systems. You can also use XML files to create reliability block diagrams (RBDs) in [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/blocksim-system-reliability-availability-maintainability-ram-analysis-software BlockSim]. &lt;br /&gt;
*&#039;&#039;&#039;Read/write specific data elements&#039;&#039;&#039;&lt;br /&gt;
:Read or write data to resources (models, actions, URDs, etc.), system hierarchy items and FMEA records (causes, effects, failures, etc.). Initiate batch data processing and create custom solutions for importing/exporting data from ReliaSoft repositories, as well as load data into the Reliability Data Warehouse (RDW). &lt;br /&gt;
*&#039;&#039;&#039;Obtain calculated results&#039;&#039;&#039;&lt;br /&gt;
:Read data from published models and obtain calculated results such as reliability, probability of failure, BX% life, failure rate and mean time. &lt;br /&gt;
*&#039;&#039;&#039;Analyze data&#039;&#039;&#039;&lt;br /&gt;
:Use [https://hbkworld.com/en/products/software/analysis-simulation/reliability/weibull-life-data-analysis-software Weibull++&#039;s] analysis and plotting engines to analyze data from third-party sources, and incorporate the functionality into your own custom applications. (Requires a ReliaSoft API license.)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*&#039;&#039;&#039;Getting the latest version&#039;&#039;&#039;&lt;br /&gt;
:The ReliaSoft API consists of a library file that contains the classes, methods and events that provide access to ReliaSoft applications. The file is located in the folder where the ReliaSoft desktop applications are installed. By default, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file. Prior to Version 2019, the files to use were SynthesisAPI.tlb (VBA) and SynthesisAPI.dll (.NET).&lt;br /&gt;
&lt;br /&gt;
:To obtain the latest version of the library file and the ReliaSoft applications, choose &#039;&#039;&#039;File &amp;gt; Help &amp;gt; Check for Updates&#039;&#039;&#039; or download the latest version from the [https://support.hbmprenscia.com HBM Prenscia Support Portal].&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Build environment&#039;&#039;&#039;&lt;br /&gt;
:For Visual Studio projects using Version 10 or 11, at minimum you will need Visual Studio 2010 and the .NET Framework 4.0 runtime. Version 2018 and later require Visual Studio 2015 and the .NET Framework 4.6.1 developer pack and runtime. Starting in Version 2022, .NET Framework 4.8 developer pack is required.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;32- vs. 64-bit&#039;&#039;&#039;&lt;br /&gt;
:For VBA, the bit version of the ReliaSoft applications that you&#039;ve installed must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls. &lt;br /&gt;
&lt;br /&gt;
:For Visual Studio projects targeting the .NET Framework 4.5 (or later) and compiled to run an any platform (Any CPU), turn off the &#039;&#039;&#039;Prefer 32-bit&#039;&#039;&#039; property of the build configuration if you want instances of your application to run as a 64-bit process; otherwise, the application will run as a 32-bit process on both 32- and 64-bit versions of Windows. It is necessary to ensure your application bitness matches the bitness of the ReliaSoft desktop applications installed wherever your application is run due to dependencies on platform-specific libraries.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Running API applications on a server &lt;br /&gt;
:If you plan to run the API on a Windows server, you must use [https://www.hbkworld.com/en/knowledge/resource-center/resources/2022/locally-hosted-licensing locally hosted licensing] and you’ll need to install the ReliaSoft API Ante Service to scale the implementation (the service is not required when running the API on a Windows desktop environment). For instructions on how to install and configure the service, see https://www.hbkworld.com/en/knowledge/resource-center/resources/2022/reliasoft-api-ante-service. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Access to calculations functionality&lt;br /&gt;
:Access to Weibull++&#039;s analysis and plotting engines requires a ReliaSoft API license. To obtain a license, please see [https://www.hbkworld.com/en/contact-us/reliasoft-worldwide-contacts contact ReliaSoft].&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
====Referencing the ReliaSoft API Library File====&lt;br /&gt;
&amp;lt;!-- This &amp;quot;onlyinclude&amp;quot; section is transcluded into the API Tutorials page --&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;To use the ReliaSoft API in your code, you must reference the ReliaSoft API library in your VBA or .NET projects. The file is located in the folder where the ReliaSoft desktop applications are installed. By default for Version 2023, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in VBA&#039;&#039;&#039;:&lt;br /&gt;
:#Enter the VBA environment by clicking the &#039;&#039;&#039;Visual Basic&#039;&#039;&#039; command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]). &lt;br /&gt;
:#In the VBA environment, choose &#039;&#039;&#039;Tools &amp;gt; References&#039;&#039;&#039;.&lt;br /&gt;
:#Click &#039;&#039;&#039;Browse&#039;&#039;&#039; and find the ReliaSoftAPI23.tlb file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in Visual Studio:&#039;&#039;&#039;&lt;br /&gt;
:#In the Solution Explorer, right-click the &#039;&#039;&#039;References&#039;&#039;&#039; node of your project and choose &#039;&#039;&#039;Add References&#039;&#039;&#039;. &lt;br /&gt;
:#In the Reference Manager window, click the &#039;&#039;&#039;Browse&#039;&#039;&#039; tab and find the ReliaSoftAPI23.dll file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
:#Edit your project file, either directly using any text editor, or by right-clicking your project and choosing &#039;&#039;&#039;Unload Project&#039;&#039;&#039;, then right-clicking your project again and choosing &#039;&#039;&#039;Edit Project File&#039;&#039;&#039;&lt;br /&gt;
:#Insert the following line just before the last &amp;lt;/Project&amp;gt; clause (change the path if necessary):&lt;br /&gt;
:::&lt;br /&gt;
::::::&amp;lt;Import Project=&amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023\ReliaSoftAPI.targets&amp;quot; /&amp;gt;&lt;br /&gt;
:::&lt;br /&gt;
:::This will ensure the required files are copied into your project’s destination folder during the build.&lt;br /&gt;
:#&amp;lt;li value=&amp;quot;5&amp;quot;&amp;gt;Save the project file. If you unloaded the project in step 3, right-click the project and choose &#039;&#039;&#039;Reload Project&#039;&#039;&#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
====Examples====&lt;br /&gt;
Sample applications that you can test and tweak yourself are included with the ReliaSoft installation. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples23\API.&lt;br /&gt;
 &lt;br /&gt;
The sample applications are available for Excel VBA and VB.NET projects. (To run the Excel examples, macros must be enabled. See [http://office.microsoft.com/en-us/excel-help/enable-or-disable-macros-in-office-documents-HA010031071.aspx this Microsoft article].) &lt;br /&gt;
&lt;br /&gt;
====Tutorials====&lt;br /&gt;
[[API Tutorials|Tutorials]] are available to help you learn the core objects of the ReliaSoft API and start coding right away. The tutorials include code samples for both VBA and VB.NET.&lt;br /&gt;
&lt;br /&gt;
==Object Library ==&lt;br /&gt;
Below is a summary of the core objects in the ReliaSoft API library. For an alphabetical listing of all objects in the latest version, see [[API Reference Documentation]].&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[Repository Class|Repository]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents the ReliaSoft repository. All other objects use the functions in this class to read or write data to the repository. This class also contains the functions for importing/exporting XML files. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the ReliaSoft resources. Instances of each class can be used to store data for an existing or new resource.  &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CAction Class|cAction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCorrectiveTask Class|cCorrectiveTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CScheduledTask Class|cScheduledTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCrew Class|cCrew]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CModel Class|cModel]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CPool Class|cPool]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CProfile Class|cProfile]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CURD Class|cURD]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CVariable Class|cVariable]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CXfmeaControl Class|cXfmeaControl]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following objects build data sets for the Reliability Data Warehouse (RDW).&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawData Class|RawData]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; represents a single data point.&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawDataSet Class|RawDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; serves as the data container for &amp;lt;code&amp;gt;RawData&amp;lt;/code&amp;gt; objects.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaItem Class|XfmeaItem]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a system hierarchy item. Instances of this class can be used to store data for a system or assembly, as well as build a multi-level system configuration. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the FMEA records. Instances of each class can be used to store data for an existing or new FMEA analysis. &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFunction Class|XfmeaFunction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaCause Class|XfmeaCause]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaEffect Class|XfmeaEffect]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFailure Class|XfmeaFailure]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WeibullDataSet Class|WeibullDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a Weibull++ data sheet for life data analysis. Instances of this class are used to define a data set and fit a statistical distribution to the data.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[ALTADataSet Class|ALTADataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents an ALTA data sheet for accelerated life testing data analysis. Instances of this class are used to define a data set, and fit a distribution and life-stress relationship to the data. &lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WAPlots Class|WAPlots]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a plot based on a &amp;lt;code&amp;gt;cModel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WeibullDataSet&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ALTADataSet&amp;lt;/code&amp;gt; object. Instances of this class are used to display a plot of the analysis results.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=65746</id>
		<title>ReliaSoft API Reference</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=65746"/>
		<updated>2023-07-13T17:00:48Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:API}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em; float:right;&amp;quot;&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;[[API Changelog|Changelog]]&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;[[API Reference Documentation|API Documentation]]&lt;br /&gt;
*&#039;&#039;&#039;[[API Tutorials|Tutorials]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ReliaSoft &#039;&#039;Application Programming Interface&#039;&#039; (API) enables you to programmatically read and write data to ReliaSoft repositories, as well as analyze and plot data sets from external sources. It is provided for Visual Basic for Applications (VBA) and .NET applications, allowing you to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, or create custom applications for your organization. &lt;br /&gt;
&lt;br /&gt;
Implementing the ReliaSoft API allows you to connect data in repositories with the systems and tools used within your organization. It provides the functionality to:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Transfer and synchronize data via XML&#039;&#039;&#039;&lt;br /&gt;
:Use XML files to manage structured data (such as system hierarchies/BOMs, incidents and work orders) between ReliaSoft’s [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/xfracas-failure-reporting-analysis-corrective-action-system-fracas-software XFRACAS] and a variety of different PLMs, ERPs, CMMS and other external systems. You can also use XML files to create reliability block diagrams (RBDs) in [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/blocksim-system-reliability-availability-maintainability-ram-analysis-software BlockSim]. &lt;br /&gt;
*&#039;&#039;&#039;Read/write specific data elements&#039;&#039;&#039;&lt;br /&gt;
:Read or write data to resources (models, actions, URDs, etc.), system hierarchy items and FMEA records (causes, effects, failures, etc.). Initiate batch data processing and create custom solutions for importing/exporting data from ReliaSoft repositories, as well as load data into the Synthesis Data Warehouse (SDW). &lt;br /&gt;
*&#039;&#039;&#039;Obtain calculated results&#039;&#039;&#039;&lt;br /&gt;
:Read data from published models and obtain calculated results such as reliability, probability of failure, BX% life, failure rate and mean time. &lt;br /&gt;
*&#039;&#039;&#039;Analyze data&#039;&#039;&#039;&lt;br /&gt;
:Use [https://hbkworld.com/en/products/software/analysis-simulation/reliability/weibull-life-data-analysis-software Weibull++&#039;s] analysis and plotting engines to analyze data from third-party sources, and incorporate the functionality into your own custom applications. (Requires a ReliaSoft API license.)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*&#039;&#039;&#039;Getting the latest version&#039;&#039;&#039;&lt;br /&gt;
:The ReliaSoft API consists of a library file that contains the classes, methods and events that provide access to ReliaSoft applications. The file is located in the folder where the ReliaSoft desktop applications are installed. By default, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file. Prior to Version 2019, the files to use were SynthesisAPI.tlb (VBA) and SynthesisAPI.dll (.NET).&lt;br /&gt;
&lt;br /&gt;
:To obtain the latest version of the library file and the ReliaSoft applications, choose &#039;&#039;&#039;File &amp;gt; Help &amp;gt; Check for Updates&#039;&#039;&#039; or download the latest version from the [https://support.hbmprenscia.com HBM Prenscia Support Portal].&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Build environment&#039;&#039;&#039;&lt;br /&gt;
:For Visual Studio projects using Version 10 or 11, at minimum you will need Visual Studio 2010 and the .NET Framework 4.0 runtime. Version 2018 and later require Visual Studio 2015 and the .NET Framework 4.6.1 developer pack and runtime. Starting in Version 2022, .NET Framework 4.8 developer pack is required.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;32- vs. 64-bit&#039;&#039;&#039;&lt;br /&gt;
:For VBA, the bit version of the ReliaSoft applications that you&#039;ve installed must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls. &lt;br /&gt;
&lt;br /&gt;
:For Visual Studio projects targeting the .NET Framework 4.5 (or later) and compiled to run an any platform (Any CPU), turn off the &#039;&#039;&#039;Prefer 32-bit&#039;&#039;&#039; property of the build configuration if you want instances of your application to run as a 64-bit process; otherwise, the application will run as a 32-bit process on both 32- and 64-bit versions of Windows. It is necessary to ensure your application bitness matches the bitness of the ReliaSoft desktop applications installed wherever your application is run due to dependencies on platform-specific libraries.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Running API applications on a server &lt;br /&gt;
:If you plan to run the API on a Windows server, you must use [https://www.hbkworld.com/en/knowledge/resource-center/resources/2022/locally-hosted-licensing locally hosted licensing] and you’ll need to install the ReliaSoft API Ante Service to scale the implementation (the service is not required when running the API on a Windows desktop environment). For instructions on how to install and configure the service, see https://www.hbkworld.com/en/knowledge/resource-center/resources/2022/reliasoft-api-ante-service. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Access to calculations functionality&lt;br /&gt;
:Access to Weibull++&#039;s analysis and plotting engines requires a ReliaSoft API license. To obtain a license, please see [https://www.hbkworld.com/en/contact-us/reliasoft-worldwide-contacts contact ReliaSoft].&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
====Referencing the ReliaSoft API Library File====&lt;br /&gt;
&amp;lt;!-- This &amp;quot;onlyinclude&amp;quot; section is transcluded into the API Tutorials page --&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;To use the ReliaSoft API in your code, you must reference the ReliaSoft API library in your VBA or .NET projects. The file is located in the folder where the ReliaSoft desktop applications are installed. By default for Version 2023, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in VBA&#039;&#039;&#039;:&lt;br /&gt;
:#Enter the VBA environment by clicking the &#039;&#039;&#039;Visual Basic&#039;&#039;&#039; command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]). &lt;br /&gt;
:#In the VBA environment, choose &#039;&#039;&#039;Tools &amp;gt; References&#039;&#039;&#039;.&lt;br /&gt;
:#Click &#039;&#039;&#039;Browse&#039;&#039;&#039; and find the ReliaSoftAPI23.tlb file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in Visual Studio:&#039;&#039;&#039;&lt;br /&gt;
:#In the Solution Explorer, right-click the &#039;&#039;&#039;References&#039;&#039;&#039; node of your project and choose &#039;&#039;&#039;Add References&#039;&#039;&#039;. &lt;br /&gt;
:#In the Reference Manager window, click the &#039;&#039;&#039;Browse&#039;&#039;&#039; tab and find the ReliaSoftAPI23.dll file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
:#Edit your project file, either directly using any text editor, or by right-clicking your project and choosing &#039;&#039;&#039;Unload Project&#039;&#039;&#039;, then right-clicking your project again and choosing &#039;&#039;&#039;Edit Project File&#039;&#039;&#039;&lt;br /&gt;
:#Insert the following line just before the last &amp;lt;/Project&amp;gt; clause (change the path if necessary):&lt;br /&gt;
:::&lt;br /&gt;
::::::&amp;lt;Import Project=&amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023\ReliaSoftAPI.targets&amp;quot; /&amp;gt;&lt;br /&gt;
:::&lt;br /&gt;
:::This will ensure the required files are copied into your project’s destination folder during the build.&lt;br /&gt;
:#&amp;lt;li value=&amp;quot;5&amp;quot;&amp;gt;Save the project file. If you unloaded the project in step 3, right-click the project and choose &#039;&#039;&#039;Reload Project&#039;&#039;&#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
====Examples====&lt;br /&gt;
Sample applications that you can test and tweak yourself are included with the ReliaSoft installation. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples23\API.&lt;br /&gt;
 &lt;br /&gt;
The sample applications are available for Excel VBA and VB.NET projects. (To run the Excel examples, macros must be enabled. See [http://office.microsoft.com/en-us/excel-help/enable-or-disable-macros-in-office-documents-HA010031071.aspx this Microsoft article].) &lt;br /&gt;
&lt;br /&gt;
====Tutorials====&lt;br /&gt;
[[API Tutorials|Tutorials]] are available to help you learn the core objects of the ReliaSoft API and start coding right away. The tutorials include code samples for both VBA and VB.NET.&lt;br /&gt;
&lt;br /&gt;
==Object Library ==&lt;br /&gt;
Below is a summary of the core objects in the ReliaSoft API library. For an alphabetical listing of all objects in the latest version, see [[API Reference Documentation]].&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[Repository Class|Repository]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents the ReliaSoft repository. All other objects use the functions in this class to read or write data to the repository. This class also contains the functions for importing/exporting XML files. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the ReliaSoft resources. Instances of each class can be used to store data for an existing or new resource.  &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CAction Class|cAction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCorrectiveTask Class|cCorrectiveTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CScheduledTask Class|cScheduledTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCrew Class|cCrew]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CModel Class|cModel]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CPool Class|cPool]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CProfile Class|cProfile]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CURD Class|cURD]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CVariable Class|cVariable]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CXfmeaControl Class|cXfmeaControl]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following objects build data sets for the Synthesis Data Warehouse (SDW).&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawData Class|RawData]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; represents a single data point.&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawDataSet Class|RawDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; serves as the data container for &amp;lt;code&amp;gt;RawData&amp;lt;/code&amp;gt; objects.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaItem Class|XfmeaItem]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a system hierarchy item. Instances of this class can be used to store data for a system or assembly, as well as build a multi-level system configuration. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the FMEA records. Instances of each class can be used to store data for an existing or new FMEA analysis. &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFunction Class|XfmeaFunction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaCause Class|XfmeaCause]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaEffect Class|XfmeaEffect]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFailure Class|XfmeaFailure]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WeibullDataSet Class|WeibullDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a Weibull++ data sheet for life data analysis. Instances of this class are used to define a data set and fit a statistical distribution to the data.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[ALTADataSet Class|ALTADataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents an ALTA data sheet for accelerated life testing data analysis. Instances of this class are used to define a data set, and fit a distribution and life-stress relationship to the data. &lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WAPlots Class|WAPlots]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a plot based on a &amp;lt;code&amp;gt;cModel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WeibullDataSet&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ALTADataSet&amp;lt;/code&amp;gt; object. Instances of this class are used to display a plot of the analysis results.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=65745</id>
		<title>ReliaSoft API Reference</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=ReliaSoft_API_Reference&amp;diff=65745"/>
		<updated>2023-07-13T16:34:04Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:API}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:1px solid #D0CDE8; background:#EEEDF7; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em; float:right;&amp;quot;&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;[[API Changelog|Changelog]]&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039;[[API Reference Documentation|API Documentation]]&lt;br /&gt;
*&#039;&#039;&#039;[[API Tutorials|Tutorials]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ReliaSoft &#039;&#039;Application Programming Interface&#039;&#039; (API) enables you to programmatically read and write data to ReliaSoft repositories, as well as analyze and plot data sets from external sources. It is provided for Visual Basic for Applications (VBA) and .NET applications, allowing you to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, or create custom applications for your organization. &lt;br /&gt;
&lt;br /&gt;
Implementing the ReliaSoft API allows you to connect data in repositories with the systems and tools used within your organization. It provides the functionality to:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Transfer and synchronize data via XML&#039;&#039;&#039;&lt;br /&gt;
:Use XML files to manage structured data (such as system hierarchies/BOMs, incidents and work orders) between ReliaSoft’s [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/xfracas-failure-reporting-analysis-corrective-action-system-fracas-software XFRACAS] and a variety of different PLMs, ERPs, CMMS and other external systems. You can also use XML files to create reliability block diagrams (RBDs) in [https://www.hbkworld.com/en/products/software/analysis-simulation/reliability/blocksim-system-reliability-availability-maintainability-ram-analysis-software BlockSim]. &lt;br /&gt;
*&#039;&#039;&#039;Read/write specific data elements&#039;&#039;&#039;&lt;br /&gt;
:Read or write data to resources (models, actions, URDs, etc.), system hierarchy items and FMEA records (causes, effects, failures, etc.). Initiate batch data processing and create custom solutions for importing/exporting data from ReliaSoft repositories, as well as load data into the Synthesis Data Warehouse (SDW). &lt;br /&gt;
*&#039;&#039;&#039;Obtain calculated results&#039;&#039;&#039;&lt;br /&gt;
:Read data from published models and obtain calculated results such as reliability, probability of failure, BX% life, failure rate and mean time. &lt;br /&gt;
*&#039;&#039;&#039;Analyze data&#039;&#039;&#039;&lt;br /&gt;
:Use [https://hbkworld.com/en/products/software/analysis-simulation/reliability/weibull-life-data-analysis-software Weibull++&#039;s] analysis and plotting engines to analyze data from third-party sources, and incorporate the functionality into your own custom applications. (Requires a ReliaSoft API license.)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
*&#039;&#039;&#039;Getting the latest version&#039;&#039;&#039;&lt;br /&gt;
:The ReliaSoft API consists of a library file that contains the classes, methods and events that provide access to ReliaSoft applications. The file is located in the folder where the ReliaSoft desktop applications are installed. By default, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file. Prior to Version 2019, the files to use were SynthesisAPI.tlb (VBA) and SynthesisAPI.dll (.NET).&lt;br /&gt;
&lt;br /&gt;
:To obtain the latest version of the library file and the ReliaSoft applications, choose &#039;&#039;&#039;File &amp;gt; Help &amp;gt; Check for Updates&#039;&#039;&#039; or download the latest version from the [https://support.hbmprenscia.com HBM Prenscia Support Portal].&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Build environment&#039;&#039;&#039;&lt;br /&gt;
:For Visual Studio projects using Version 10 or 11, at minimum you will need Visual Studio 2010 and the .NET Framework 4.0 runtime. Version 2018 and later require Visual Studio 2015 and the .NET Framework 4.6.1 developer pack and runtime. Starting in Version 2022, .NET Framework 4.8 developer pack is required.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;32- vs. 64-bit&#039;&#039;&#039;&lt;br /&gt;
:For VBA, the bit version of the ReliaSoft applications that you&#039;ve installed must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls.) &lt;br /&gt;
&lt;br /&gt;
:For Visual Studio projects targeting the .NET Framework 4.5 (or later) and compiled to run an any platform (Any CPU), turn off the &#039;&#039;&#039;Prefer 32-bit&#039;&#039;&#039; property of the build configuration if you want instances of your application to run as a 64-bit process; otherwise, the application will run as a 32-bit process on both 32- and 64-bit versions of Windows. It is necessary to ensure your application bitness matches the bitness of the ReliaSoft desktop applications installed wherever your application is run due to dependencies on platform-specific libraries.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Running API applications on a server &lt;br /&gt;
:If you plan to run the API on a Windows server, you must use [https://www.hbkworld.com/en/knowledge/resource-center/resources/2022/locally-hosted-licensing locally hosted licensing] and you’ll need to install the ReliaSoft API Ante Service to scale the implementation (the service is not required when running the API on a Windows desktop environment). For instructions on how to install and configure the service, see https://www.hbkworld.com/en/knowledge/resource-center/resources/2022/reliasoft-api-ante-service. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Access to calculations functionality&lt;br /&gt;
:Access to Weibull++&#039;s analysis and plotting engines requires a ReliaSoft API license. To obtain a license, please see [https://www.hbkworld.com/en/contact-us/reliasoft-worldwide-contacts contact ReliaSoft].&lt;br /&gt;
&lt;br /&gt;
==Getting Started==&lt;br /&gt;
&lt;br /&gt;
====Referencing the ReliaSoft API Library File====&lt;br /&gt;
&amp;lt;!-- This &amp;quot;onlyinclude&amp;quot; section is transcluded into the API Tutorials page --&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;To use the ReliaSoft API in your code, you must reference the ReliaSoft API library in your VBA or .NET projects. The file is located in the folder where the ReliaSoft desktop applications are installed. By default for Version 2023, this folder is at &amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023.&amp;quot; For VBA, you will use the &#039;&#039;&#039;ReliaSoftAPI23.tlb&#039;&#039;&#039; file; for .NET applications, you will use the &#039;&#039;&#039;ReliaSoftAPI23.dll&#039;&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in VBA&#039;&#039;&#039;:&lt;br /&gt;
:#Enter the VBA environment by clicking the &#039;&#039;&#039;Visual Basic&#039;&#039;&#039; command on the Developer tab (If the Developer tab is not visible, see [https://msdn.microsoft.com/en-us/library/bb608625.aspx this Microsoft article]). &lt;br /&gt;
:#In the VBA environment, choose &#039;&#039;&#039;Tools &amp;gt; References&#039;&#039;&#039;.&lt;br /&gt;
:#Click &#039;&#039;&#039;Browse&#039;&#039;&#039; and find the ReliaSoftAPI23.tlb file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To reference the library in Visual Studio:&#039;&#039;&#039;&lt;br /&gt;
:#In the Solution Explorer, right-click the &#039;&#039;&#039;References&#039;&#039;&#039; node of your project and choose &#039;&#039;&#039;Add References&#039;&#039;&#039;. &lt;br /&gt;
:#In the Reference Manager window, click the &#039;&#039;&#039;Browse&#039;&#039;&#039; tab and find the ReliaSoftAPI23.dll file on your computer. Click &#039;&#039;&#039;OK&#039;&#039;&#039;. &lt;br /&gt;
:#Edit your project file, either directly using any text editor, or by right-clicking your project and choosing &#039;&#039;&#039;Unload Project&#039;&#039;&#039;, then right-clicking your project again and choosing &#039;&#039;&#039;Edit Project File&#039;&#039;&#039;&lt;br /&gt;
:#Insert the following line just before the last &amp;lt;/Project&amp;gt; clause (change the path if necessary):&lt;br /&gt;
:::&lt;br /&gt;
::::::&amp;lt;Import Project=&amp;quot;C:\Program Files\ReliaSoft\ReliaSoft 2023\ReliaSoftAPI.targets&amp;quot; /&amp;gt;&lt;br /&gt;
:::&lt;br /&gt;
:::This will ensure the required files are copied into your project’s destination folder during the build.&lt;br /&gt;
:#&amp;lt;li value=&amp;quot;5&amp;quot;&amp;gt;Save the project file. If you unloaded the project in step 3, right-click the project and choose &#039;&#039;&#039;Reload Project&#039;&#039;&#039;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
====Examples====&lt;br /&gt;
Sample applications that you can test and tweak yourself are included with the ReliaSoft installation. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples23\API.&lt;br /&gt;
 &lt;br /&gt;
The sample applications are available for Excel VBA and VB.NET projects. (To run the Excel examples, macros must be enabled. See [http://office.microsoft.com/en-us/excel-help/enable-or-disable-macros-in-office-documents-HA010031071.aspx this Microsoft article].) &lt;br /&gt;
&lt;br /&gt;
====Tutorials====&lt;br /&gt;
[[API Tutorials|Tutorials]] are available to help you learn the core objects of the ReliaSoft API and start coding right away. The tutorials include code samples for both VBA and VB.NET.&lt;br /&gt;
&lt;br /&gt;
==Object Library ==&lt;br /&gt;
Below is a summary of the core objects in the ReliaSoft API library. For an alphabetical listing of all objects in the latest version, see [[API Reference Documentation]].&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[Repository Class|Repository]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents the ReliaSoft repository. All other objects use the functions in this class to read or write data to the repository. This class also contains the functions for importing/exporting XML files. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the ReliaSoft resources. Instances of each class can be used to store data for an existing or new resource.  &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CAction Class|cAction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCorrectiveTask Class|cCorrectiveTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CScheduledTask Class|cScheduledTask]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CCrew Class|cCrew]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CModel Class|cModel]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CPool Class|cPool]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CProfile Class|cProfile]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CURD Class|cURD]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CVariable Class|cVariable]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[CXfmeaControl Class|cXfmeaControl]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*The following objects build data sets for the Synthesis Data Warehouse (SDW).&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawData Class|RawData]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; represents a single data point.&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[RawDataSet Class|RawDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; serves as the data container for &amp;lt;code&amp;gt;RawData&amp;lt;/code&amp;gt; objects.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaItem Class|XfmeaItem]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a system hierarchy item. Instances of this class can be used to store data for a system or assembly, as well as build a multi-level system configuration. &lt;br /&gt;
&lt;br /&gt;
*The following objects represent the FMEA records. Instances of each class can be used to store data for an existing or new FMEA analysis. &lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFunction Class|XfmeaFunction]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaCause Class|XfmeaCause]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaEffect Class|XfmeaEffect]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
**&amp;lt;code&amp;gt;&#039;&#039;&#039;[[XfmeaFailure Class|XfmeaFailure]]&#039;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WeibullDataSet Class|WeibullDataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a Weibull++ data sheet for life data analysis. Instances of this class are used to define a data set and fit a statistical distribution to the data.&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[ALTADataSet Class|ALTADataSet]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents an ALTA data sheet for accelerated life testing data analysis. Instances of this class are used to define a data set, and fit a distribution and life-stress relationship to the data. &lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;&#039;&#039;&#039;[[WAPlots Class|WAPlots]]&#039;&#039;&#039;&amp;lt;/code&amp;gt; object represents a plot based on a &amp;lt;code&amp;gt;cModel&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WeibullDataSet&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ALTADataSet&amp;lt;/code&amp;gt; object. Instances of this class are used to display a plot of the analysis results.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Fmra_table_3.png&amp;diff=64937</id>
		<title>File:Fmra table 3.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Fmra_table_3.png&amp;diff=64937"/>
		<updated>2017-03-06T15:25:39Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: uploaded a new version of &amp;quot;File:Fmra table 3.png&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=State_Change_Triggers&amp;diff=64910</id>
		<title>State Change Triggers</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=State_Change_Triggers&amp;diff=64910"/>
		<updated>2017-02-06T18:18:29Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Assumptions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Banner BlockSim Articles}}{{Navigation box}}&lt;br /&gt;
&#039;&#039;This article, which discusses the use of State Change Triggers (SCT) in simulation diagrams, also appears in the [[Repairable_Systems_Analysis_Through_Simulation#State_Change_Triggers|System Analysis Reference]] book.&#039;&#039;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
Consider a case where you have two generators, and one (A) is primary while the other (B) is standby. If A fails, you will turn B on. When A is repaired, it then becomes the standby. State change triggers (SCT) allow you to simulate this case. You can specify events that will activate and/or deactivate the block during simulation. The figure below shows the options for state change triggers in the Block Properties window.&lt;br /&gt;
[[Image:State Change Trigger Options.png‎|center|600px|link=]] &lt;br /&gt;
&lt;br /&gt;
Once you have enabled state change triggers for a block, there are several options. &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Initial state&#039;&#039;&#039; allows you to specify the initial state for the block, either ON or OFF. &lt;br /&gt;
*&#039;&#039;&#039;State upon repair&#039;&#039;&#039; allows you to specify the state of the block after its repair. There are four choices: Always ON, Always OFF, Default ON unless SCT Overridden and Default OFF unless SCT Overridden. In the Assumptions sections, we will explain what these choices mean and illustrate them using an example.&lt;br /&gt;
*&#039;&#039;&#039;Add a state change trigger&#039;&#039;&#039; allows you to add a state change trigger to the block. &lt;br /&gt;
&lt;br /&gt;
The state change trigger can either activate or deactivate the block when items in specified maintenance groups go down or are restored. To define the state change trigger, specify the triggering event (i.e., an item goes down or an item is restored), the state change (i.e., the block is activated or deactivated) and the maintenance group(s) in which the triggering event must happen in order to trigger the state change. Note that the current block does not need to be part of the specified maintenance group(s) to use this functionality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The State Change Trigger window is shown in the figure below:&lt;br /&gt;
[[Image:State_change_trigger_window.png‎|center|500px|link=]] &lt;br /&gt;
&lt;br /&gt;
== Assumptions ==&lt;br /&gt;
*A block cannot trigger events on itself. For example, if Block 1 is the only block that belongs to MG 1 and Block 1 is set to be turned ON or OFF based on MG 1, this trigger is ignored.&lt;br /&gt;
*OFF events cannot trigger other events. This means that things cannot be turned OFF in cascade. For example, if Block 1 going down turns OFF Block 2 and Block 2 going down turns OFF Block 3, a failure by Block 1 will not turn OFF Block 3. Block 3 would have to be directly associated with downing events of Block 1 for this to happen. The reason for this restriction is that allowing OFF events to trigger other events can cause circular reference problems. For example, four blocks A, B, C and D are in parallel. Block A belongs to MG A and initially it is ON. Block B belongs to MG B and its initial status is also ON. Block C belongs to MG C and its initial status is OFF. Block D belongs to MG D and its initial status is ON. A failure of Block A will turn OFF Block B. Then Block B will turn Block C ON and finally C will turn OFF Block D. However, if an OFF event for Block D will turn Block B ON, and an ON event for Block B will turn Block C OFF, and an OFF event for Block C will turn Block D ON, then there is a circular reference problem. &lt;br /&gt;
*Upon restoration states:&lt;br /&gt;
**Always ON: Upon restoration, the block will always be on.&lt;br /&gt;
**Always OFF: Upon restoration, the block will always be off.&lt;br /&gt;
**Default ON unless SCT overridden: Upon restoration, the block will be on unless a request is made to turn this block off while the block is down and the request is still applicable at the time of restoration. For example, assume Block A&#039;s state upon repair is ON unless SCT overridden. If a failure of Block B triggers a request to turn Block A off but Block A is down, when the maintenance for Block A is completed, Block A will be turned off if Block B is still down.&lt;br /&gt;
**Default off unless SCT overridden: Upon restoration, the block will be off unless a request is made to turn this block on while the block is down and the request is still applicable at the time of restoration&lt;br /&gt;
*Maintenance while block is off: Maintenance tasks will be performed. At the end of the maintenance, &amp;quot;upon restoration&amp;quot; rules will be checked to determine the state of the block.&lt;br /&gt;
*Assumptions for phases: In Versions 10 and earlier, the state of a block (on/off) was determined at the beginning of each phase based on the &amp;quot;Initial state&amp;quot; setting of the block for that phase. Starting in Version 11, the state of the block transfers across phases instead of resetting based on initial settings.&lt;br /&gt;
*If there are multiple triggering requests put on a block when it is down, only the latest one is considered. The latest request will cancel all requests before it. For example, Block A fails at 20 and is down until 70. Block B fails at 30 and Block C fails at 40. Block A has state change triggers enabled such that it will be activated when Block B fails and it will be deactivated when Block C fails. Thus from 20 to 70, at 30, Block B will put a request on Block A to turn it ON and at 40, Block C will put another request to turn it OFF. In this case, according to our assumption, the request from Block C at 40 will cancel the request from Block B at 30. In the end, only the request from Block C will be considered. Thus, Block A will be turned OFF at 70 when it is done with repair.&lt;br /&gt;
&lt;br /&gt;
==Example: Using SCT for Standby Rotation==&lt;br /&gt;
{{:Example_Using_SCT_for_Standby_Rotation}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;noprint&amp;quot;&amp;gt;&lt;br /&gt;
{{Examples Box|BlockSim Examples|&amp;lt;p&amp;gt;More examples are available for using State Change Triggers (SCTs) in simulation diagrams. See also:&amp;lt;/p&amp;gt;{{Examples Link|Example_Using_SCT_to_Analyze_Tire_Maintenance|Using SCT to Analyze Tire Maintenance}}{{Examples Link|Example_Using_SCT_to_Analyze_Standby_with_Delay|Using SCT to Analyze Standby with Delay}}{{Examples Link|Example_Using_SCT_to_Model_Two_Standby_Blocks|Using SCT to Model Two Standby Blocks}}{{Examples Link|Example_Demonstrating_the_State_Upon_Repair_Option_for_SCT|SCT: The State Upon Repair Option}}{{Examples Link|BlockSim_Example:_Default_OFF_unless_SCT_Overridden|Default OFF Unless SCT Overridden}}{{Examples Link|BlockSim_Example:_Default_OFF_unless_SCT_Overridden|Default OFF Unless SCT Overridden}}}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=64800</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=64800"/>
		<updated>2016-10-17T17:38:13Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt; \underline{P} = &lt;br /&gt;
 \begin{pmatrix}&lt;br /&gt;
  P_{11} &amp;amp; P_{12} &amp;amp; \cdots &amp;amp; P_{1i} \\&lt;br /&gt;
  P_{21} &amp;amp; P_{22} &amp;amp; \cdots &amp;amp; P_{2i} \\&lt;br /&gt;
  \vdots  &amp;amp; \vdots  &amp;amp; \ddots &amp;amp; \vdots  \\&lt;br /&gt;
  P_{i1} &amp;amp; P_{i2} &amp;amp; \cdots &amp;amp; P_{ii} &lt;br /&gt;
 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(1)=\underline{X}(0) \cdot \underline{P}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, &amp;lt;math&amp;gt;\underline{X}(1)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after &amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after &amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the &amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt;th power, or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(n)=\underline{X}(0) \cdot \underline{P}^n\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}=\begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\underline{X}(0) \cdot \underline{P}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix} \cdot \begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0.596 &amp;amp; 0.353 &amp;amp; 0.051 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_j}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; is the total number of states&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_l\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{working}}{dt}=0.01\cdot P_{repair} - 0.0001 \cdot P_{working} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{repair}}{dt}=0.0001\cdot P_{working} - 0.01 \cdot P_{repair} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}(0)=1 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}(0)=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}=\frac{0.01}{0.0101}+\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}=\frac{0.0001}{0.0101}-\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;f_j=\frac{dP_{j}}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_1=hf(t_i,P_{l,i})\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_2=hf\Big( t_i+\frac{h}{4},P_{l,i}+\frac{k_1}{4}\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_3=hf\Big( t_i+\frac{3h}{8},P_{l,i}+\frac{3}{32}k_2\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_4=hf\Big( t_i+\frac{12h}{13},P_{l,i}+\frac{1932}{2197}k_1+\frac{7200}{2197}k_2+\frac{7296}{2197}k_3\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_5=hf\Big( t_i+h,P_{l,i}+\frac{439}{216}k_1+8k_2+\frac{3680}{513}k_3-\frac{845}{4104}k_4\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_6=hf\Big( t_i+\frac{h}{2},P_{l,i}-\frac{8}{27}k_1+2k_2-\frac{3544}{2565}k_3+\frac{1859}{4104}k_4-\frac{11}{40}k_5\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{j,i+1}=P_{j,i}+\frac{25}{216}k_1+\frac{1408}{2565}k_3+\frac{2197}{4104}k_4-\frac{1}{5}k_5\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\tilde{P}_{j,i+1}=P_{j,i}+\frac{16}{135}k_1+\frac{6656}{12825}k_3+\frac{28561}{56430}k_4-\frac{9}{50}k_5+\frac{2}{55}k_6\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;R=\frac{1}{h}|\tilde{P}_{j,i+1}-P_{j,i+1}|\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\delta=0.84\Big(\frac{\epsilon}{R}\Big)^{\frac{1}{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;R\leq\epsilon\,\!&amp;lt;/math&amp;gt; then keep &amp;lt;math&amp;gt;P_{i+1}\,\!&amp;lt;/math&amp;gt; as the current solution, and move to next step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;; if &amp;lt;math&amp;gt;R&amp;gt;\epsilon\,\!&amp;lt;/math&amp;gt; then recalculate the current step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_{l,i}\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; at time &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; is the transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; is the transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is the change in the probability of being in state &amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; (note that &amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*&amp;lt;math&amp;gt;h\,\!&amp;lt;/math&amp;gt; is the time step size&lt;br /&gt;
*&amp;lt;math&amp;gt;t_i\,\!&amp;lt;/math&amp;gt; is the time at &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\varepsilon\,\!&amp;lt;/math&amp;gt; is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Optimum_Replacement_Time_Example&amp;diff=64624</id>
		<title>Optimum Replacement Time Example</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Optimum_Replacement_Time_Example&amp;diff=64624"/>
		<updated>2016-08-18T22:54:50Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Banner BlockSim Examples}}&lt;br /&gt;
&#039;&#039;This example appears in the article [[Preventive Maintenance]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This example demonstrates BlockSim&#039;s Optimum Replacement utility, which allows you to determine the most cost-effective time to replace one or more blocks in one or more systems, based on their planned and unplanned replacement costs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimum Replacement Time&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
The failure distribution of a component is described by a 2-parameter Weibull distribution with &amp;lt;math&amp;gt;\beta = 2.5\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\eta = 1000\,\!&amp;lt;/math&amp;gt; hours.&lt;br /&gt;
&lt;br /&gt;
:*	The cost for a corrective replacement is  $5.&amp;lt;br&amp;gt;&lt;br /&gt;
:*	The cost for a preventive replacement is  $1.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Estimate the optimum replacement age in order to minimize these costs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Prior to obtaining an optimum replacement interval for this component, the assumptions of the following equation must be checked.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
CPUT\left( t \right)= &amp;amp; \frac{\text{Total Expected Replacement Cost per Cycle}}{\text{Expected Cycle Length}} \\ &lt;br /&gt;
= &amp;amp; \frac{{{C}_{P}}\cdot R\left( t \right)+{{C}_{U}}\cdot \left[ 1-R\left( t \right) \right]}{\int_{0}^{t}R\left( s \right)ds}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The component has an increasing failure rate because it follows a Weibull distribution with &amp;lt;math&amp;gt;\beta \,\!&amp;lt;/math&amp;gt; greater than 1.  Note that if &amp;lt;math&amp;gt;\beta =1\,\!&amp;lt;/math&amp;gt;, then the component has a constant failure rate, but if &amp;lt;math&amp;gt;\beta &amp;lt;1\,\!&amp;lt;/math&amp;gt;, then it has a decreasing failure rate.  If either of these cases exist, then preventive replacement is unwise.  Furthermore, the cost for preventive replacement is less than the corrective replacement cost.  Thus, the conditions for the optimum age replacement policy have been met.&lt;br /&gt;
&lt;br /&gt;
Using BlockSim, enter the parameters of the Weibull distribution in the component&#039;s Block Properties window. Next, open the Optimum Replacement window and enter the &#039;&#039;&#039;1&#039;&#039;&#039; in the &#039;&#039;&#039;Planned Replacement Cost&#039;&#039;&#039; column, and &#039;&#039;&#039;5&#039;&#039;&#039; in the &#039;&#039;&#039;Unplanned Replacement Cost&#039;&#039;&#039; column. Click &#039;&#039;&#039;Calculate&#039;&#039;&#039;. In the Optimum Replacement Calculations window that appears, select the &#039;&#039;&#039;Individual&#039;&#039;&#039; option and click &#039;&#039;&#039;OK&#039;&#039;&#039;. The optimum replacement time for the component is estimated to be 493.0470, as shown next.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:optimum replacement.png|center|BlockSim&#039;s Optimum Replacement Utility|link=]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The figure below shows the Cost vs. Time plot of the component (with the scaling adjusted and the plot annotated to show the minimum cost).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BS7.6.png|center|600px|Cost vs. Replacement Time|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we enter different cost values in the &#039;&#039;&#039;Unplanned Replacement Cost&#039;&#039;&#039; column and obtain the optimum replacement time at each value, we can use the data points to create a plot that shows the effect of the corrective cost on the optimum replacement interval. The following plot shows an example. In this case, the optimum replacement interval decreases as the cost ratio increases. This is an expected result because the corrective replacement costs are much greater than the preventive replacement costs. Therefore, it is more cost-effective to replace the component more frequently before it fails.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BS7.7.png|center|600px|Replacement interval as a function of the corrective/preventive cost ratio.|link=]]&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Optimum_replacement.png&amp;diff=64623</id>
		<title>File:Optimum replacement.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Optimum_replacement.png&amp;diff=64623"/>
		<updated>2016-08-18T22:53:22Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: uploaded a new version of &amp;quot;File:Optimum replacement.png&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Optimum_Replacement_Time_Example&amp;diff=64622</id>
		<title>Optimum Replacement Time Example</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Optimum_Replacement_Time_Example&amp;diff=64622"/>
		<updated>2016-08-18T22:47:12Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Banner BlockSim Examples}}&lt;br /&gt;
&#039;&#039;This example appears in the article [[Preventive Maintenance]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This example demonstrates BlockSim&#039;s Optimum Replacement utility, which allows you to determine the most cost-effective time to replace one or more blocks in one or more systems, based on their planned and unplanned replacement costs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimum Replacement Time&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
The failure distribution of a component is described by a 2-parameter Weibull distribution with &amp;lt;math&amp;gt;\beta = 2.5\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\eta = 1000\,\!&amp;lt;/math&amp;gt; hours.&lt;br /&gt;
&lt;br /&gt;
:*	The cost for a corrective replacement is  $5.&amp;lt;br&amp;gt;&lt;br /&gt;
:*	The cost for a preventive replacement is  $1.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Estimate the optimum replacement age in order to minimize these costs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Prior to obtaining an optimum replacement interval for this component, the assumptions of the following equation must be checked.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
CPUT\left( t \right)= &amp;amp; \frac{\text{Total Expected Replacement Cost per Cycle}}{\text{Expected Cycle Length}} \\ &lt;br /&gt;
= &amp;amp; \frac{{{C}_{P}}\cdot R\left( t \right)+{{C}_{U}}\cdot \left[ 1-R\left( t \right) \right]}{\int_{0}^{t}R\left( s \right)ds}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The component has an increasing failure rate because it follows a Weibull distribution with &amp;lt;math&amp;gt;\beta \,\!&amp;lt;/math&amp;gt; greater than 1.  Note that if &amp;lt;math&amp;gt;\beta =1\,\!&amp;lt;/math&amp;gt;, then the component has a constant failure rate, but if &amp;lt;math&amp;gt;\beta &amp;lt;1\,\!&amp;lt;/math&amp;gt;, then it has a decreasing failure rate.  If either of these cases exist, then preventive replacement is unwise.  Furthermore, the cost for preventive replacement is less than the corrective replacement cost.  Thus, the conditions for the optimum age replacement policy have been met.&lt;br /&gt;
&lt;br /&gt;
Using BlockSim, enter the parameters of the Weibull distribution in the component&#039;s Block Properties window. Next, open the Optimum Replacement window and enter the &#039;&#039;&#039;1&#039;&#039;&#039; in the &#039;&#039;&#039;Planned Replacement Cost&#039;&#039;&#039; column, and &#039;&#039;&#039;5&#039;&#039;&#039; in the &#039;&#039;&#039;Unplanned Replacement Cost&#039;&#039;&#039; column. Click &#039;&#039;&#039;Calculate&#039;&#039;&#039;. In the Optimum Replacement Calculations window that appears, select the &#039;&#039;&#039;Individual&#039;&#039;&#039; option and click &#039;&#039;&#039;OK&#039;&#039;&#039;. The optimum replacement time for the component is estimated to be 493.0470, as shown next.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:optimum replacement.png|center|850px|BlockSim&#039;s Optimum Replacement Utility|link=]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The figure below shows the Cost vs. Time plot of the component (with the scaling adjusted and the plot annotated to show the minimum cost).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BS7.6.png|center|600px|Cost vs. Replacement Time|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we enter different cost values in the &#039;&#039;&#039;Unplanned Replacement Cost&#039;&#039;&#039; column and obtain the optimum replacement time at each value, we can use the data points to create a plot that shows the effect of the corrective cost on the optimum replacement interval. The following plot shows an example. In this case, the optimum replacement interval decreases as the cost ratio increases. This is an expected result because the corrective replacement costs are much greater than the preventive replacement costs. Therefore, it is more cost-effective to replace the component more frequently before it fails.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BS7.7.png|center|600px|Replacement interval as a function of the corrective/preventive cost ratio.|link=]]&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Optimum_Replacement_Time_Example&amp;diff=64621</id>
		<title>Optimum Replacement Time Example</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Optimum_Replacement_Time_Example&amp;diff=64621"/>
		<updated>2016-08-18T22:44:52Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Banner BlockSim Examples}}&lt;br /&gt;
&#039;&#039;This example appears in the article [[Preventive Maintenance]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This example demonstrates BlockSim&#039;s Optimum Replacement utility, which allows you to determine the most cost-effective time to replace one or more blocks in one or more systems, based on their planned and unplanned replacement costs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optimum Replacement Time&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
The failure distribution of a component is described by a 2-parameter Weibull distribution with &amp;lt;math&amp;gt;\beta = 2.5\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\eta = 1000\,\!&amp;lt;/math&amp;gt; hours.&lt;br /&gt;
&lt;br /&gt;
:*	The cost for a corrective replacement is  $5.&amp;lt;br&amp;gt;&lt;br /&gt;
:*	The cost for a preventive replacement is  $1.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Estimate the optimum replacement age in order to minimize these costs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Prior to obtaining an optimum replacement interval for this component, the assumptions of the following equation must be checked.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
CPUT\left( t \right)= &amp;amp; \frac{\text{Total Expected Replacement Cost per Cycle}}{\text{Expected Cycle Length}} \\ &lt;br /&gt;
= &amp;amp; \frac{{{C}_{P}}\cdot R\left( t \right)+{{C}_{U}}\cdot \left[ 1-R\left( t \right) \right]}{\int_{0}^{t}R\left( s \right)ds}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The component has an increasing failure rate because it follows a Weibull distribution with &amp;lt;math&amp;gt;\beta \,\!&amp;lt;/math&amp;gt; greater than 1.  Note that if &amp;lt;math&amp;gt;\beta =1\,\!&amp;lt;/math&amp;gt;, then the component has a constant failure rate, but if &amp;lt;math&amp;gt;\beta &amp;lt;1\,\!&amp;lt;/math&amp;gt;, then it has a decreasing failure rate.  If either of these cases exist, then preventive replacement is unwise.  Furthermore, the cost for preventive replacement is less than the corrective replacement cost.  Thus, the conditions for the optimum age replacement policy have been met.&lt;br /&gt;
&lt;br /&gt;
Using BlockSim, enter the parameters of the Weibull distribution in the component&#039;s Block Properties window. Next, open the Optimum Replacement window and enter the &#039;&#039;&#039;1&#039;&#039;&#039; in the &#039;&#039;&#039;Planned Replacement Cost&#039;&#039;&#039; column, and &#039;&#039;&#039;5&#039;&#039;&#039; in the &#039;&#039;&#039;Unplanned Replacement Cost&#039;&#039;&#039; column. Click &#039;&#039;&#039;Calculate&#039;&#039;&#039;. In the Optimum Replacement Calculations window that appears, select the &#039;&#039;&#039;Individual&#039;&#039;&#039; option and click &#039;&#039;&#039;OK&#039;&#039;&#039;. The optimum replacement time for the component is estimated to be 493.0470, as shown next.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:optimum replacement.png|center|850px|BlockSim&#039;s Optimum Replacement Utility|link=]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The figure below shows the Cost vs. Time plot of the component (with the scaling adjusted and the plot annotated to show the minimum cost).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BS7.6.png|center|600px|Cost vs. Replacement Time|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If we enter different cost values in the &#039;&#039;&#039;Additional Unplanned&#039;&#039;&#039; column and obtain the optimum replacement time at each value, we can use the data points to create a plot that shows the effect of the corrective cost on the optimum replacement interval. The following plot shows an example. In this case, the optimum replacement interval decreases as the cost ratio increases. This is an expected result because the corrective replacement costs are much greater than the preventive replacement costs. Therefore, it is more cost-effective to replace the component more frequently before it fails.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:BS7.7.png|center|600px|Replacement interval as a function of the corrective/preventive cost ratio.|link=]]&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62988</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62988"/>
		<updated>2016-02-12T16:20:34Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Continuous Markov Chains */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt; \underline{P} = &lt;br /&gt;
 \begin{pmatrix}&lt;br /&gt;
  P_{11} &amp;amp; P_{12} &amp;amp; \cdots &amp;amp; P_{1i} \\&lt;br /&gt;
  P_{21} &amp;amp; P_{22} &amp;amp; \cdots &amp;amp; P_{2i} \\&lt;br /&gt;
  \vdots  &amp;amp; \vdots  &amp;amp; \ddots &amp;amp; \vdots  \\&lt;br /&gt;
  P_{i1} &amp;amp; P_{i2} &amp;amp; \cdots &amp;amp; P_{ii} &lt;br /&gt;
 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(n)=\underline{X}(0) \cdot \underline{P^n}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}=\begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\underline{X}(0) \cdot \underline{P}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix} \cdot \begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0.596 &amp;amp; 0.353 &amp;amp; 0.051 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_j}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; is the total number of states&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_l\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state l to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state j to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{working}}{dt}=0.01\cdot P_{repair} - 0.0001 \cdot P_{working} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{repair}}{dt}=0.0001\cdot P_{working} - 0.01 \cdot P_{repair} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}(0)=1 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}(0)=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}=\frac{0.01}{0.0101}+\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}=\frac{0.0001}{0.0101}-\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;f_j=\frac{dP_{j}}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_1=hf(t_i,P_{l,i})\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_2=hf\Big( t_i+\frac{h}{4},P_{l,i}+\frac{k_1}{4}\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_3=hf\Big( t_i+\frac{3h}{8},P_{l,i}+\frac{3}{32}k_2\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_4=hf\Big( t_i+\frac{12h}{13},P_{l,i}+\frac{1932}{2197}k_1+\frac{7200}{2197}k_2+\frac{7296}{2197}k_3\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_5=hf\Big( t_i+h,P_{l,i}+\frac{439}{216}k_1+8k_2+\frac{3680}{513}k_3-\frac{845}{4104}k_4\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_6=hf\Big( t_i+\frac{h}{2},P_{l,i}-\frac{8}{27}k_1+2k_2-\frac{3544}{2565}k_3+\frac{1859}{4104}k_4-\frac{11}{40}k_5\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{j,i+1}=P_{j,i}+\frac{25}{216}k_1+\frac{1408}{2565}k_3+\frac{2197}{4104}k_4-\frac{1}{5}k_5\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\tilde{P}_{j,i+1}=P_{j,i}+\frac{16}{135}k_1+\frac{6656}{12825}k_3+\frac{28561}{56430}k_4-\frac{9}{50}k_5+\frac{2}{55}k_6\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;R=\frac{1}{h}|\tilde{P}_{j,i+1}-P_{j,i+1}|\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\delta=0.84\Big(\frac{\epsilon}{R}\Big)^{\frac{1}{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;R\leq\epsilon\,\!&amp;lt;/math&amp;gt; then keep &amp;lt;math&amp;gt;P_{i+1}\,\!&amp;lt;/math&amp;gt; as the current solution, and move to next step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;; if &amp;lt;math&amp;gt;R&amp;gt;\epsilon\,\!&amp;lt;/math&amp;gt; then recalculate the current step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_{l,i}\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; at time &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; is the transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; is the transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is the change in the probability of being in state &amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; (note that &amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*&amp;lt;math&amp;gt;h\,\!&amp;lt;/math&amp;gt; is the time step size&lt;br /&gt;
*&amp;lt;math&amp;gt;t_i\,\!&amp;lt;/math&amp;gt; is the time at &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\varepsilon\,\!&amp;lt;/math&amp;gt; is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62987</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62987"/>
		<updated>2016-02-12T16:19:47Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Continuous Markov Chains */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt; \underline{P} = &lt;br /&gt;
 \begin{pmatrix}&lt;br /&gt;
  P_{11} &amp;amp; P_{12} &amp;amp; \cdots &amp;amp; P_{1i} \\&lt;br /&gt;
  P_{21} &amp;amp; P_{22} &amp;amp; \cdots &amp;amp; P_{2i} \\&lt;br /&gt;
  \vdots  &amp;amp; \vdots  &amp;amp; \ddots &amp;amp; \vdots  \\&lt;br /&gt;
  P_{i1} &amp;amp; P_{i2} &amp;amp; \cdots &amp;amp; P_{ii} &lt;br /&gt;
 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(n)=\underline{X}(0) \cdot \underline{P^n}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}=\begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\underline{X}(0) \cdot \underline{P}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix} \cdot \begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0.596 &amp;amp; 0.353 &amp;amp; 0.051 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_j}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; is the total number of states&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_l\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state l to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state j to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{working}}{dt}=0.01\cdot P_{repair} - 0.0001 \cdot P_{working} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{repair}}{dt}=0.0001\cdot P_{working} - 0.01 \cdot P_{repair} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}(0)=1 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}(0)=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}=\frac{0.01}{0.0101}+\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}=\frac{0.0001}{0.0101}-\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;f_j=\frac{dP_{j}}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_1=hf(t_i,P_{l,i})\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_2=hf\Big( t_i+\frac{h}{4},P_{l,i}+\frac{k_1}{4}\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_3=hf\Big( t_i+\frac{3h}{8},P_{l,i}+\frac{3}{32}k_2\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_4=hf\Big( t_i+\frac{12h}{13},P_{l,i}+\frac{1932}{2197}k_1+\frac{7200}{2197}k_2+\frac{7296}{2197}k_3\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_5=hf\Big( t_i+h,P_{l,i}+\frac{439}{216}k_1+8k_2+\frac{3680}{513}k_3-\frac{845}{4104}k_4\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_6=hf\Big( t_i+\frac{h}{2},P_{l,i}-\frac{8}{27}k_1+2k_2-\frac{3544}{2565}k_3+\frac{1859}{4104}k_4-\frac{11}{40}k_5\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{j,i+1}=P_{j,i}+\frac{25}{216}k_1+\frac{1408}{2565}k_3+\frac{2197}{4104}k_4-\frac{1}{5}k_5\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\tilde{P}_{j,i+1}=P_{j,i}+\frac{16}{135}k_1+\frac{6656}{12825}k_3+\frac{28561}{56430}k_4-\frac{9}{50}k_5+\frac{2}{55}k_6\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;R=\frac{1}{h}|\tilde{P}_{j,i+1}-P_{j,i+1}|\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\delta=0.84\Big(\frac{\epsilon}{R}\Big)^{\frac{1}{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;R\leq\epsilon\,\!&amp;lt;/math&amp;gt; then keep &amp;lt;math&amp;gt;P_{i+1}\,\!&amp;lt;/math&amp;gt; as the current solution, and move to next step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;; if &amp;lt;math&amp;gt;R&amp;gt;\epsilon\,\!&amp;lt;/math&amp;gt; then recalculate the current step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_{l,i}\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; at time &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; is the transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; is the transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is the change in the probability of being in state &amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; (Note that &amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*&amp;lt;math&amp;gt;h\,\!&amp;lt;/math&amp;gt; is the time step size&lt;br /&gt;
*&amp;lt;math&amp;gt;t_i\,\!&amp;lt;/math&amp;gt; is the time at &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\varepsilon\,\!&amp;lt;/math&amp;gt; is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62986</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62986"/>
		<updated>2016-02-12T16:19:07Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Continuous Markov Chains */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt; \underline{P} = &lt;br /&gt;
 \begin{pmatrix}&lt;br /&gt;
  P_{11} &amp;amp; P_{12} &amp;amp; \cdots &amp;amp; P_{1i} \\&lt;br /&gt;
  P_{21} &amp;amp; P_{22} &amp;amp; \cdots &amp;amp; P_{2i} \\&lt;br /&gt;
  \vdots  &amp;amp; \vdots  &amp;amp; \ddots &amp;amp; \vdots  \\&lt;br /&gt;
  P_{i1} &amp;amp; P_{i2} &amp;amp; \cdots &amp;amp; P_{ii} &lt;br /&gt;
 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(n)=\underline{X}(0) \cdot \underline{P^n}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}=\begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\underline{X}(0) \cdot \underline{P}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix} \cdot \begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0.596 &amp;amp; 0.353 &amp;amp; 0.051 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_j}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; is the total number of states&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_l\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state l to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state j to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{working}}{dt}=0.01\cdot P_{repair} - 0.0001 \cdot P_{working} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{repair}}{dt}=0.0001\cdot P_{working} - 0.01 \cdot P_{repair} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}(0)=1 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}(0)=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}=\frac{0.01}{0.0101}+\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}=\frac{0.0001}{0.0101}-\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;f_j=\frac{dP_{j}}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_1=hf(t_i,P_{l,i})\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_2=hf\Big( t_i+\frac{h}{4},P_{l,i}+\frac{k_1}{4}\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_3=hf\Big( t_i+\frac{3h}{8},P_{l,i}+\frac{3}{32}k_2\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_4=hf\Big( t_i+\frac{12h}{13},P_{l,i}+\frac{1932}{2197}k_1+\frac{7200}{2197}k_2+\frac{7296}{2197}k_3\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_5=hf\Big( t_i+h,P_{l,i}+\frac{439}{216}k_1+8k_2+\frac{3680}{513}k_3-\frac{845}{4104}k_4\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_6=hf\Big( t_i+\frac{h}{2},P_{l,i}-\frac{8}{27}k_1+2k_2-\frac{3544}{2565}k_3+\frac{1859}{4104}k_4-\frac{11}{40}k_5\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{j,i+1}=P_{j,i}+\frac{25}{216}k_1+\frac{1408}{2565}k_3+\frac{2197}{4104}k_4-\frac{1}{5}k_5\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\tilde{P}_{j,i+1}=P_{j,i}+\frac{16}{135}k_1+\frac{6656}{12825}k_3+\frac{28561}{56430}k_4-\frac{9}{50}k_5+\frac{2}{55}k_6\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;R=\frac{1}{h}|\tilde{P}_{j,i+1}-P_{j,i+1}|\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\delta=0.84\Big(\frac{\epsilon}{R}\Big)^{\frac{1}{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;R\leq\epsilon\,\!&amp;lt;/math&amp;gt; then keep &amp;lt;math&amp;gt;P_{i+1}\,\!&amp;lt;/math&amp;gt; as the current solution, and move to next step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;; if &amp;lt;math&amp;gt;R&amp;gt;\epsilon\,\!&amp;lt;/math&amp;gt; then recalculate the current step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_{l,i}\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; at time &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is the change in the probability of being in state &amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; (Note that &amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*&amp;lt;math&amp;gt;h\,\!&amp;lt;/math&amp;gt; is the time step size&lt;br /&gt;
*&amp;lt;math&amp;gt;t_i\,\!&amp;lt;/math&amp;gt; is the time at &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\varepsilon\,\!&amp;lt;/math&amp;gt; is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62985</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62985"/>
		<updated>2016-02-12T16:18:08Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Continuous Markov Chains */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt; \underline{P} = &lt;br /&gt;
 \begin{pmatrix}&lt;br /&gt;
  P_{11} &amp;amp; P_{12} &amp;amp; \cdots &amp;amp; P_{1i} \\&lt;br /&gt;
  P_{21} &amp;amp; P_{22} &amp;amp; \cdots &amp;amp; P_{2i} \\&lt;br /&gt;
  \vdots  &amp;amp; \vdots  &amp;amp; \ddots &amp;amp; \vdots  \\&lt;br /&gt;
  P_{i1} &amp;amp; P_{i2} &amp;amp; \cdots &amp;amp; P_{ii} &lt;br /&gt;
 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(n)=\underline{X}(0) \cdot \underline{P^n}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}=\begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\underline{X}(0) \cdot \underline{P}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix} \cdot \begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0.596 &amp;amp; 0.353 &amp;amp; 0.051 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_j}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; is the total number of states&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_l\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state l to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state j to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{working}}{dt}=0.01\cdot P_{repair} - 0.0001 \cdot P_{working} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{repair}}{dt}=0.0001\cdot P_{working} - 0.01 \cdot P_{repair} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}(0)=1 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}(0)=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}=\frac{0.01}{0.0101}+\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}=\frac{0.0001}{0.0101}-\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;f_j=\frac{dP_{j}}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_1=hf(t_i,P_{l,i})\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_2=hf\Big( t_i+\frac{h}{4},P_{l,i}+\frac{k_1}{4}\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_3=hf\Big( t_i+\frac{3h}{8},P_{l,i}+\frac{3}{32}k_2\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_4=hf\Big( t_i+\frac{12h}{13},P_{l,i}+\frac{1932}{2197}k_1+\frac{7200}{2197}k_2+\frac{7296}{2197}k_3\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_5=hf\Big( t_i+h,P_{l,i}+\frac{439}{216}k_1+8k_2+\frac{3680}{513}k_3-\frac{845}{4104}k_4\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_6=hf\Big( t_i+\frac{h}{2},P_{l,i}-\frac{8}{27}k_1+2k_2-\frac{3544}{2565}k_3+\frac{1859}{4104}k_4-\frac{11}{40}k_5\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{j,i+1}=P_{j,i}+\frac{25}{216}k_1+\frac{1408}{2565}k_3+\frac{2197}{4104}k_4-\frac{1}{5}k_5\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\tilde{P}_{j,i+1}=P_{j,i}+\frac{16}{135}k_1+\frac{6656}{12825}k_3+\frac{28561}{56430}k_4-\frac{9}{50}k_5+\frac{2}{55}k_6\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;R=\frac{1}{h}|\tilde{P}_{j,i+1}-P_{j,i+1}|\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\delta=0.84\Big(\frac{\epsilon}{R}\Big)^{\frac{1}{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;R\leq\epsilon\,\!&amp;lt;/math&amp;gt; then keep &amp;lt;math&amp;gt;P_{i+1}\,\!&amp;lt;/math&amp;gt; as the current solution, and move to next step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;R&amp;gt;\epsilon\,\!&amp;lt;/math&amp;gt; then recalculate the current step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_{l,i}\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; at time &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is the change in the probability of being in state &amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; (Note that &amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*&amp;lt;math&amp;gt;h\,\!&amp;lt;/math&amp;gt; is the time step size&lt;br /&gt;
*&amp;lt;math&amp;gt;t_i\,\!&amp;lt;/math&amp;gt; is the time at &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\varepsilon\,\!&amp;lt;/math&amp;gt; is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62984</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62984"/>
		<updated>2016-02-12T16:08:34Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Discrete Markov Chains */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt; \underline{P} = &lt;br /&gt;
 \begin{pmatrix}&lt;br /&gt;
  P_{11} &amp;amp; P_{12} &amp;amp; \cdots &amp;amp; P_{1i} \\&lt;br /&gt;
  P_{21} &amp;amp; P_{22} &amp;amp; \cdots &amp;amp; P_{2i} \\&lt;br /&gt;
  \vdots  &amp;amp; \vdots  &amp;amp; \ddots &amp;amp; \vdots  \\&lt;br /&gt;
  P_{i1} &amp;amp; P_{i2} &amp;amp; \cdots &amp;amp; P_{ii} &lt;br /&gt;
 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(n)=\underline{X}(0) \cdot \underline{P^n}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}=\begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\underline{X}(0) \cdot \underline{P}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix} \cdot \begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0.596 &amp;amp; 0.353 &amp;amp; 0.051 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_j}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; is the total number of states&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_l\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state l to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state j to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{working}}{dt}=0.01\cdot P_{repair} - 0.0001 \cdot P_{working} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{repair}}{dt}=0.0001\cdot P_{working} - 0.01 \cdot P_{repair} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}(0)=1 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}(0)=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}=\frac{0.01}{0.0101}+\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}=\frac{0.0001}{0.0101}-\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;f_j=\frac{dP_{j}}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_1=hf(t_i,P_{l,i})\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_2=hf\Big( t_i+\frac{h}{4},P_{l,i}+\frac{k_1}{4}\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_3=hf\Big( t_i+\frac{3h}{8},P_{l,i}+\frac{3}{32}k_2\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_4=hf\Big( t_i+\frac{12h}{13},P_{l,i}+\frac{1932}{2197}k_1+\frac{7200}{2197}k_2+\frac{7296}{2197}k_3\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_5=hf\Big( t_i+h,P_{l,i}+\frac{439}{216}k_1+8k_2+\frac{3680}{513}k_3-\frac{845}{4104}k_4\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_6=hf\Big( t_i+\frac{h}{2},P_{l,i}-\frac{8}{27}k_1+2k_2-\frac{3544}{2565}k_3+\frac{1859}{4104}k_4-\frac{11}{40}k_5\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{j,i+1}=P_{j,i}+\frac{25}{216}k_1+\frac{1408}{2565}k_3+\frac{2197}{4104}k_4-\frac{1}{5}k_5\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\tilde{P}_{j,i+1}=P_{j,i}+\frac{16}{135}k_1+\frac{6656}{12825}k_3+\frac{28561}{56430}k_4-\frac{9}{50}k_5+\frac{2}{55}k_6\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;R=\frac{1}{h}|\tilde{P}_{j,i+1}-P_{j,i+1}|\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\delta=0.84\Big(\frac{\epsilon}{R}\Big)^{\frac{1}{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if &amp;lt;math&amp;gt;R\leq\epsilon\,\!&amp;lt;/math&amp;gt; keep &amp;lt;math&amp;gt;P_{i+1}\,\!&amp;lt;/math&amp;gt; as the current solution, and move to next step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
if &amp;lt;math&amp;gt;R&amp;gt;\epsilon\,\!&amp;lt;/math&amp;gt; recalculate the current step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_{l,i}\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; at time &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is the change in the probability of being in state &amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; (Note that &amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*&amp;lt;math&amp;gt;h\,\!&amp;lt;/math&amp;gt; is the time step size&lt;br /&gt;
*&amp;lt;math&amp;gt;t_i\,\!&amp;lt;/math&amp;gt; is the time at &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\varepsilon\,\!&amp;lt;/math&amp;gt; is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62983</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62983"/>
		<updated>2016-02-12T16:07:18Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Discrete Markov Chains */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt; \underline{P} = &lt;br /&gt;
 \begin{pmatrix}&lt;br /&gt;
  P_{11} &amp;amp; P_{12} &amp;amp; \cdots &amp;amp; P_{1i} \\&lt;br /&gt;
  P_{21} &amp;amp; P_{22} &amp;amp; \cdots &amp;amp; P_{2i} \\&lt;br /&gt;
  \vdots  &amp;amp; \vdots  &amp;amp; \ddots &amp;amp; \vdots  \\&lt;br /&gt;
  P_{i1} &amp;amp; P_{i2} &amp;amp; \cdots &amp;amp; P_{ii} &lt;br /&gt;
 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(n)=\underline{X}(0) \cdot \underline{P^n}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}=\begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\underline{X}(0) \cdot \underline{P}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0 &amp;amp; 1 &amp;amp; 0 \end{pmatrix} \cdot \begin{pmatrix}&lt;br /&gt;
0.75 &amp;amp; 0.20 &amp;amp; 0.05 \\&lt;br /&gt;
0.40 &amp;amp; 0.59 &amp;amp; 0.01 \\&lt;br /&gt;
0.15 &amp;amp; 0.50 &amp;amp; 0.35&lt;br /&gt;
\end{pmatrix}^{10}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(10)=\begin{pmatrix} 0.596 &amp;amp; 0.353 &amp;amp; 0.051 \end{pmatrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_j}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;n\,\!&amp;lt;/math&amp;gt; is the total number of states&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_l\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state l to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state j to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{working}}{dt}=0.01\cdot P_{repair} - 0.0001 \cdot P_{working} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{dP_{repair}}{dt}=0.0001\cdot P_{working} - 0.01 \cdot P_{repair} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}(0)=1 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}(0)=0 \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{working}=\frac{0.01}{0.0101}+\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{repair}=\frac{0.0001}{0.0101}-\frac{0.0001}{0.0101}e^{-(0.0101)t} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;f_j=\frac{dP_{j}}{dt}= \displaystyle\sum_{l=1}^{n} \lambda_{lj}P_{l} - \displaystyle\sum_{l=1}^{n} \lambda_{jl}P_{j} \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_1=hf(t_i,P_{l,i})\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_2=hf\Big( t_i+\frac{h}{4},P_{l,i}+\frac{k_1}{4}\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_3=hf\Big( t_i+\frac{3h}{8},P_{l,i}+\frac{3}{32}k_2\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_4=hf\Big( t_i+\frac{12h}{13},P_{l,i}+\frac{1932}{2197}k_1+\frac{7200}{2197}k_2+\frac{7296}{2197}k_3\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_5=hf\Big( t_i+h,P_{l,i}+\frac{439}{216}k_1+8k_2+\frac{3680}{513}k_3-\frac{845}{4104}k_4\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;k_6=hf\Big( t_i+\frac{h}{2},P_{l,i}-\frac{8}{27}k_1+2k_2-\frac{3544}{2565}k_3+\frac{1859}{4104}k_4-\frac{11}{40}k_5\Big)\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;P_{j,i+1}=P_{j,i}+\frac{25}{216}k_1+\frac{1408}{2565}k_3+\frac{2197}{4104}k_4-\frac{1}{5}k_5\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\tilde{P}_{j,i+1}=P_{j,i}+\frac{16}{135}k_1+\frac{6656}{12825}k_3+\frac{28561}{56430}k_4-\frac{9}{50}k_5+\frac{2}{55}k_6\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;R=\frac{1}{h}|\tilde{P}_{j,i+1}-P_{j,i+1}|\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\delta=0.84\Big(\frac{\epsilon}{R}\Big)^{\frac{1}{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if &amp;lt;math&amp;gt;R\leq\epsilon\,\!&amp;lt;/math&amp;gt; keep &amp;lt;math&amp;gt;P_{i+1}\,\!&amp;lt;/math&amp;gt; as the current solution, and move to next step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
if &amp;lt;math&amp;gt;R&amp;gt;\epsilon\,\!&amp;lt;/math&amp;gt; recalculate the current step with step size &amp;lt;math&amp;gt;\delta{h}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;P_{l,i}\,\!&amp;lt;/math&amp;gt; is the probability of being in state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; at time &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{lj}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;\lambda_{jl}\,\!&amp;lt;/math&amp;gt; transition rate from state &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; to state &amp;lt;math&amp;gt;l\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
*&amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is the change in the probability of being in state &amp;lt;math&amp;gt;P_j\,\!&amp;lt;/math&amp;gt; (Note that &amp;lt;math&amp;gt;f_j\,\!&amp;lt;/math&amp;gt; is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*&amp;lt;math&amp;gt;h\,\!&amp;lt;/math&amp;gt; is the time step size&lt;br /&gt;
*&amp;lt;math&amp;gt;t_i\,\!&amp;lt;/math&amp;gt; is the time at &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
*&amp;lt;math&amp;gt;\varepsilon\,\!&amp;lt;/math&amp;gt; is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62880</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62880"/>
		<updated>2016-02-08T21:10:25Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Continuous Markov Chain */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector &amp;lt;math&amp;gt;\underline{X}\,\!&amp;lt;/math&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{X}(0)= (X_1  X_2 \cdot\cdot\cdot  X_i) \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the term &amp;lt;math&amp;gt;X_i\,\!&amp;lt;/math&amp;gt; represents the probability of the system being in state &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; and with:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{i=1}^{n}X_{i}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term &amp;lt;math&amp;gt;P_{12}\,\!&amp;lt;/math&amp;gt; is the transition probability from state 1 to state 2, and for any row &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; states:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{j=1}^{i}P_{mj}=1\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector &amp;lt;math&amp;gt;\underline{X}(0)\,\!&amp;lt;/math&amp;gt; with the transition matrix &amp;lt;math&amp;gt;\underline{P}\,\!&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62873</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62873"/>
		<updated>2016-02-05T19:10:29Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62872</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62872"/>
		<updated>2016-02-05T19:09:57Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states — operational, standby or offline — at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62871</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62871"/>
		<updated>2016-02-05T19:08:18Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
&lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62870</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62870"/>
		<updated>2016-02-05T19:07:15Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
 &lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62869</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62869"/>
		<updated>2016-02-05T18:58:15Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1,000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2,000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
 &lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the &amp;quot;non-repair&amp;quot; assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;br /&gt;
&lt;br /&gt;
=Phases=&lt;br /&gt;
It is possible to do analyses with multiple phases for both discrete and continuous Markov chain calculations. When using phases, the software keeps track of state correspondence across phases using the name of the state (e.g., &amp;quot;State B&amp;quot; is one phase is considered to correspond to &amp;quot;State B&amp;quot; in all other phases). The starting state probability comes from the ending state probability from the previous phase. If a state is absent from a phase, then its state probability does not change during the phase.&lt;br /&gt;
&lt;br /&gt;
Also, it is possible to perform an analysis where the number of steps, for discrete analyses, or the operational time, for continuous analyses, are greater/longer than the sum length of all the phases. In this case, the analysis will return to the first phase, without resetting the state probabilities, and continue from there.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62868</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62868"/>
		<updated>2016-02-05T18:56:10Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
 &lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the “non-repair” assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62867</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62867"/>
		<updated>2016-02-05T18:55:57Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|500px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
 &lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|700px|link=]]&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the “non-repair” assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Continuous_markov_results.png&amp;diff=62866</id>
		<title>File:Continuous markov results.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Continuous_markov_results.png&amp;diff=62866"/>
		<updated>2016-02-05T18:55:20Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Continuous_markov_state_mean_probability_plot.png&amp;diff=62865</id>
		<title>File:Continuous markov state mean probability plot.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Continuous_markov_state_mean_probability_plot.png&amp;diff=62865"/>
		<updated>2016-02-05T18:55:09Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Continuous_markov_diagram.png&amp;diff=62864</id>
		<title>File:Continuous markov diagram.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Continuous_markov_diagram.png&amp;diff=62864"/>
		<updated>2016-02-05T18:54:51Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62863</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62863"/>
		<updated>2016-02-05T18:54:36Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|500px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_diagram.png|center|628px|link=]]&lt;br /&gt;
 &lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_state_mean_probability_plot.png|center|500px|link=]]&lt;br /&gt;
&lt;br /&gt;
[[Image:continuous_markov_results.png|center|798px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the “non-repair” assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62862</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62862"/>
		<updated>2016-02-05T18:52:46Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Continuous Markov Chain */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|500px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
A continuous Markov chain can be viewed as a Markov chain where the transitions between states are defined by (constant) transition rates, as opposed to transition probabilities at fixed steps. It is common to use continuous Markov chains when analyzing system reliability/availability problems.&lt;br /&gt;
&lt;br /&gt;
Because we are no longer performing analysis using fixed probabilities and a fixed step, we are no longer able to simply multiply a state probability vector with a transition matrix in order to obtain new state probabilities after a given step.&lt;br /&gt;
&lt;br /&gt;
Instead, our problem can be written as a system of ordinary differential equations, where each differential equation represents the change in the probability of being in a particular state:&lt;br /&gt;
&lt;br /&gt;
(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*n is the total number of states&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_l is the probability of being in state l&lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
&lt;br /&gt;
Our initial conditions to solve the differential equations are our initial probabilities for each state.&lt;br /&gt;
&lt;br /&gt;
As a quick example, let us take a system that can be in one of two states, either working or under repair, and is initially in the working state. The transition rate from working to repair is 0.0001/hour (MTTF of 10,000 hours) and the transition rate from repair to working is 0.01/hour (MTTR of 100 hours). In this case, the two differential equations would look like this:&lt;br /&gt;
&lt;br /&gt;
(dP_working)/dt=0.01∙P_repair-0.0001∙P_working&lt;br /&gt;
&lt;br /&gt;
(dP_repair)/dt=0.0001∙P_working-0.01∙P_repair&lt;br /&gt;
&lt;br /&gt;
with initial bounds of:&lt;br /&gt;
&lt;br /&gt;
P_working (0)=1&lt;br /&gt;
&lt;br /&gt;
P_repair (0)=0&lt;br /&gt;
&lt;br /&gt;
Solving this system of equations yields the following results:&lt;br /&gt;
&lt;br /&gt;
P_working=0.01/0.0101+0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
P_repair=0.0001/0.0101-0.0001/0.0101 e^(-(0.0101)t)&lt;br /&gt;
&lt;br /&gt;
For more complex analyses, numerical methodologies are preferred. There are many methods, both analytical and numerical, to solve systems of ordinary differential equations. One of these is the Runge-Kutta-Fehlberg method, also known as the RKF45 method, which is a numerical algorithm. This algorithm is practical because one extra calculation allows for the error to be estimated and controlled with the use of an automatic adaptive step size methodology.&lt;br /&gt;
&lt;br /&gt;
The methodology uses a 4th order Runge-Kutta and a 5th order Runge-Kutta, where the former is used for the calculation and the latter is used for the error estimation. The formulas for the method are as follows:&lt;br /&gt;
&lt;br /&gt;
f_j=(dP_j)/dt=∑_(l=1)^n▒〖λ_lj P_l 〗-∑_(l=1)^n▒〖λ_jl P_j 〗&lt;br /&gt;
&lt;br /&gt;
k_1=hf(t_i,P_(l,i) )&lt;br /&gt;
&lt;br /&gt;
k_2=hf(t_i+h/4,P_(l,i)+k_1/4)&lt;br /&gt;
&lt;br /&gt;
k_3=hf(t_i+3h/8,P_(l,i)+3/32 k_1+9/32 k_2 )&lt;br /&gt;
&lt;br /&gt;
k_4=hf(t_i+12h/13,P_(l,i)+1932/2197 k_1-7200/2197 k_2+7296/2197 k_3 )&lt;br /&gt;
&lt;br /&gt;
k_5=hf(t_i+h,P_(l,i)+439/216 k_1-8k_2+3680/513 k_3-845/4104 k_4 )&lt;br /&gt;
&lt;br /&gt;
k_6=hf(t_i+h/2,P_(l,i)-8/27 k_1+2k_2-3544/2565 k_3+1859/4104 k_4-11/40 k_5 )&lt;br /&gt;
&lt;br /&gt;
P_(j,i+1)=P_(j,i)+25/216 k_1+1408/2565 k_3+2197/4104 k_4-1/5 k_5&lt;br /&gt;
&lt;br /&gt;
P ̃_(j,i+1)=P_(j,i)+16/135 k_1+6656/12825 k_3+28561/56430 k_4-9/50 k_5+2/55 k_6&lt;br /&gt;
&lt;br /&gt;
R=1/h |P ̃_(j,i+1)-P_(j,i+1) |&lt;br /&gt;
&lt;br /&gt;
δ=0.84(ϵ/R)^(1/4)&lt;br /&gt;
&lt;br /&gt;
if R≤ϵ	keep P_(i+1) as the current solution, and move to next step with step size δh&lt;br /&gt;
&lt;br /&gt;
if R&amp;gt;ϵ	recalculate the current step with step size δh&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
*P_j is the probability of being in state j&lt;br /&gt;
*P_(l,i) is the probability of being in state l at time i &lt;br /&gt;
*λ_lj transition rate from state l to state j&lt;br /&gt;
*λ_jl transition rate from state j to state l&lt;br /&gt;
*f_j is the change in the probability of being in state P_j (Note that f_j is not a function of time for constant transition rate Markov chains)&lt;br /&gt;
*h is the time step size&lt;br /&gt;
*t_i is the time at i&lt;br /&gt;
*ε is the chosen acceptable error&lt;br /&gt;
&lt;br /&gt;
This methodology can then be used for each state at each time step, where a time step is accepted only if the time step size is acceptable for each state in the system.&lt;br /&gt;
&lt;br /&gt;
Since continuous Markov chains are often used for system availability/reliability analyses, the continuous Markov chain diagram in BlockSim allows the user the ability to designate one or more states as unavailable states. This allows for the calculation of both availability and reliability of the system.&lt;br /&gt;
&lt;br /&gt;
Availability is calculated as the mean probability that the system is in a state that is not an unavailable state.&lt;br /&gt;
&lt;br /&gt;
Reliability is calculated in the same manner as availability, with the additional restriction that all transitions leaving any unavailable state are considered to have a transition rate of zero.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Assume you have a system composed of two generators. The system can be in one of three states:&lt;br /&gt;
&lt;br /&gt;
*Both generators are operational&lt;br /&gt;
*One generator is operational and the other is under repair&lt;br /&gt;
*Both generators are under repair. This is an unavailable state. &lt;br /&gt;
&lt;br /&gt;
The system starts in the state in which both generators are operational.&lt;br /&gt;
&lt;br /&gt;
We know that the failure rate of a generator is 1 per 2,000 hours, and the repair rate is 1 per 200 hours.&lt;br /&gt;
&lt;br /&gt;
Therefore: &lt;br /&gt;
&lt;br /&gt;
*The transition rate from the state in which both generators are operational to the state where only one is operational is 1 per 1000 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are operational is 1 per 200 hours.&lt;br /&gt;
*The transition rate from the state in which one generator is operational to the state where both generators are under repair is 1 per 2000 hours.&lt;br /&gt;
*The transition rate from the state in which both generators are under repair to the state where one generator is operational is 1 per 100 hours.&lt;br /&gt;
&lt;br /&gt;
We would like to know the mean availability of our system after 20,000 hours for all three states so that we can estimate our output based on time spent at full, half and zero generator capacity.&lt;br /&gt;
&lt;br /&gt;
Solving this system by hand using the RKF45 method would be very time consuming, so we will turn to BlockSim to help us solve this problem using a continuous Markov diagram. After creating the diagram, adding the states and the transition rates, the final diagram looks like this:&lt;br /&gt;
&lt;br /&gt;
xxx&lt;br /&gt;
 &lt;br /&gt;
Once the diagram is complete, the analysis is set for 20,000 hours. The comparison between the mean probabilities of the states can be done using a bar graph, or by looking at the diagram result summary.&lt;br /&gt;
&lt;br /&gt;
xxx &lt;br /&gt;
&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
From the Mean Probability column, we can see that the system is expected to be fully operational 82.8% of the time, half operational 16.4% of the time, and non-operational 0.8% of the time.&lt;br /&gt;
&lt;br /&gt;
From the Point Probability (Av) column, we can get the point probability of being in a state when all transitions are considered. From the Point Probability (Rel) column, we can get the point probability of being in a state if we assume that there is no return from unavailable states, or in other words we are assuming no repair once the system has entered an unavailable (failed) state. Using the “non-repair” assumption, there is only an 18.0% chance that the system would still be fully operational, a 3.3% chance that it would be half operational and a 78.7% chance that it would be non-operational.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62861</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62861"/>
		<updated>2016-02-05T18:43:59Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Continuous Markov Chains: Applications to Non-Repairable Systems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|500px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chain=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Non-repairable component with failure rate &amp;amp;lambda;&lt;br /&gt;
** P0(t) = P ( at time t component works)&lt;br /&gt;
** P1(t) = P ( at time t component is broken)&lt;br /&gt;
&lt;br /&gt;
P0 (t+ ∆ t) = (1- λ ∆ t) P0 (t) +0 P1 (t) Does not fail during ∆ t times&lt;br /&gt;
&lt;br /&gt;
P1(t+ ∆ t) = λ ∆ t P0 (t) + 1 P1 (t) since P (Fails in ∆ Time) =1- e&amp;lt;sup&amp;gt;- &amp;amp;lambda;∆t&amp;lt;/sup&amp;gt; ≈ 1- (1- &amp;lt;math&amp;gt;\tfrac{\lambda\Delta t}{1!}+\tfrac{(\lambda^2(\Delta t)^2)}{2!}&amp;lt;/math&amp;gt;  - …) ≈ &amp;amp;lambda;∆t if ∆t is small&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
The method employed to solve a continuous Markov Chain problem is a modified RK45 Runga-Kutta-Fehlberg, which is an adaptive step size Runga-Kutta method.&lt;br /&gt;
&lt;br /&gt;
==User Inputs==&lt;br /&gt;
The user must provide an initial probability for each state and a transition probability between each state. The initial probabilites of all states must add up to exactly 1.0. If a transition probability between states is not given, it is assumed to be zero.&lt;br /&gt;
&lt;br /&gt;
===Symbol Definitions===&lt;br /&gt;
* α&amp;lt;sub&amp;gt;j,0&amp;lt;/sub&amp;gt; is the initial probability of being in state j (given by the user).&lt;br /&gt;
* ε is the user defined tolerance (accuracy). Default should be 1e&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; and can only get smaller.&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;l,j&amp;lt;/sub&amp;gt; is the transitional failure rate into state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; from state w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt;&lt;br /&gt;
* w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt; is the probability of being in the state associated with the λ&amp;lt;sub&amp;gt;l,j’s&amp;lt;/sub&amp;gt;&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;j,k&amp;lt;/sub&amp;gt; is the transitional failure rate leaving state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; to state w&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;&lt;br /&gt;
* f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is the change in state probability function (for a given state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;):&lt;br /&gt;
::[[File:ChgInStateProbFunt.Jpg]]&lt;br /&gt;
f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is not a function of time, as only constant failure rates are used. This means that the various k values calculated during the RK45 method are only functions of all the w values and the constant failure rates, λ.&lt;br /&gt;
&lt;br /&gt;
The formula for the Runge-Kutta-Fehlberg method (RK45) is given next.&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = α&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{4}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{k_1}{4}&amp;lt;/math&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3h}{8}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{9}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{12h}{13}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1932}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{7200}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{7296}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+h w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{439}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-8k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3680}{513}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{845}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{2}&amp;lt;/math&amp;gt; w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{8}{27}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-2k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3544}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1859}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{11}{40}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{25}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1408}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2197}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1}{5}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{16}{135}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{6656}{12825}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{28561}{56430}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{9}{50}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2}{55}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
R = &amp;lt;math&amp;gt;\tfrac{1}{h}|&amp;lt;/math&amp;gt;w&#039;&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;-w&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;|&lt;br /&gt;
&lt;br /&gt;
&amp;amp;delta; = 0.84 * &amp;lt;math&amp;gt;\tfrac{\varepsilon}{R}^\tfrac{1}{4}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If R≤&amp;amp;epsilon; then keep w as the current step solution and move to the next step with step size &amp;amp;delta;h&lt;br /&gt;
&lt;br /&gt;
If R&amp;gt;&amp;amp;epsilon; then recalculate the current step with step size &amp;amp;delta;h. The above method is for each individual state, and not for the system as a whole. The w is the equivalent of the probability of being in a particular state, where the subscript i represents the time based variation. This still has to be done for all the states in the system, which later on is represented by the subscript j (for each state).&lt;br /&gt;
&lt;br /&gt;
==Detailed Methodology==&lt;br /&gt;
#Generate an initial step size h from the available failure rates (1% of the smallest MTTF).&lt;br /&gt;
#Use the RK45 method on all states simultaneously using the given h. (This means that all states must have their k1 values calculated/used together, then k2, then k3, etc).&lt;br /&gt;
#If all calculations are within tolerance, keep results (RK4, so the w without the hat) and increase h to the smallest of the increases generated by the method. If some of the calculations are not within tolerance, decrease the step size to the smallest of the decreases generated by the method and recalculate with the new h. h should not be increased to more than double, so s should have a stipulation on it that forbids from that occurring. Be aware that s may become infinite if the difference between the RK4 and the RK5 is zero. This should be addressed as well with a catch of some sort to make s = 2 in that case. (So basically if s is calculated to be greater than 2 for any state, make it equal to 2 for that state).&lt;br /&gt;
#Repeat steps 2 &amp;amp; 3 as necessary.&lt;br /&gt;
&lt;br /&gt;
If there are multiple phases, then steps 1-4 need to be performed for each phase where the initial probability of being in a state is equal to the final value from the previous phase.&lt;br /&gt;
&lt;br /&gt;
This methodology provides the ability to give availability and unavailability metrics for the system, as well as point probabilities of being in a certain state.&lt;br /&gt;
For the reliability metrics, the methodology differs in that each unavailable state is considered a &amp;quot;sink.&amp;quot; In other words, all transitions from unavailable to available states are ignored. This could be calculated simultaneously with the availability using the same step sizes as generated there.&lt;br /&gt;
&lt;br /&gt;
The two results that need to be stored are the time and the corresponding probability of being in the state for each state.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62860</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62860"/>
		<updated>2016-02-05T18:43:37Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Discrete Markov Chains */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|500px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains: Applications to Non-Repairable Systems=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Non-repairable component with failure rate &amp;amp;lambda;&lt;br /&gt;
** P0(t) = P ( at time t component works)&lt;br /&gt;
** P1(t) = P ( at time t component is broken)&lt;br /&gt;
&lt;br /&gt;
P0 (t+ ∆ t) = (1- λ ∆ t) P0 (t) +0 P1 (t) Does not fail during ∆ t times&lt;br /&gt;
&lt;br /&gt;
P1(t+ ∆ t) = λ ∆ t P0 (t) + 1 P1 (t) since P (Fails in ∆ Time) =1- e&amp;lt;sup&amp;gt;- &amp;amp;lambda;∆t&amp;lt;/sup&amp;gt; ≈ 1- (1- &amp;lt;math&amp;gt;\tfrac{\lambda\Delta t}{1!}+\tfrac{(\lambda^2(\Delta t)^2)}{2!}&amp;lt;/math&amp;gt;  - …) ≈ &amp;amp;lambda;∆t if ∆t is small&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
The method employed to solve a continuous Markov Chain problem is a modified RK45 Runga-Kutta-Fehlberg, which is an adaptive step size Runga-Kutta method.&lt;br /&gt;
&lt;br /&gt;
==User Inputs==&lt;br /&gt;
The user must provide an initial probability for each state and a transition probability between each state. The initial probabilites of all states must add up to exactly 1.0. If a transition probability between states is not given, it is assumed to be zero.&lt;br /&gt;
&lt;br /&gt;
===Symbol Definitions===&lt;br /&gt;
* α&amp;lt;sub&amp;gt;j,0&amp;lt;/sub&amp;gt; is the initial probability of being in state j (given by the user).&lt;br /&gt;
* ε is the user defined tolerance (accuracy). Default should be 1e&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; and can only get smaller.&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;l,j&amp;lt;/sub&amp;gt; is the transitional failure rate into state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; from state w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt;&lt;br /&gt;
* w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt; is the probability of being in the state associated with the λ&amp;lt;sub&amp;gt;l,j’s&amp;lt;/sub&amp;gt;&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;j,k&amp;lt;/sub&amp;gt; is the transitional failure rate leaving state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; to state w&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;&lt;br /&gt;
* f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is the change in state probability function (for a given state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;):&lt;br /&gt;
::[[File:ChgInStateProbFunt.Jpg]]&lt;br /&gt;
f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is not a function of time, as only constant failure rates are used. This means that the various k values calculated during the RK45 method are only functions of all the w values and the constant failure rates, λ.&lt;br /&gt;
&lt;br /&gt;
The formula for the Runge-Kutta-Fehlberg method (RK45) is given next.&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = α&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{4}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{k_1}{4}&amp;lt;/math&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3h}{8}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{9}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{12h}{13}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1932}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{7200}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{7296}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+h w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{439}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-8k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3680}{513}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{845}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{2}&amp;lt;/math&amp;gt; w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{8}{27}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-2k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3544}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1859}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{11}{40}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{25}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1408}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2197}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1}{5}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{16}{135}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{6656}{12825}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{28561}{56430}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{9}{50}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2}{55}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
R = &amp;lt;math&amp;gt;\tfrac{1}{h}|&amp;lt;/math&amp;gt;w&#039;&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;-w&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;|&lt;br /&gt;
&lt;br /&gt;
&amp;amp;delta; = 0.84 * &amp;lt;math&amp;gt;\tfrac{\varepsilon}{R}^\tfrac{1}{4}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If R≤&amp;amp;epsilon; then keep w as the current step solution and move to the next step with step size &amp;amp;delta;h&lt;br /&gt;
&lt;br /&gt;
If R&amp;gt;&amp;amp;epsilon; then recalculate the current step with step size &amp;amp;delta;h. The above method is for each individual state, and not for the system as a whole. The w is the equivalent of the probability of being in a particular state, where the subscript i represents the time based variation. This still has to be done for all the states in the system, which later on is represented by the subscript j (for each state).&lt;br /&gt;
&lt;br /&gt;
==Detailed Methodology==&lt;br /&gt;
#Generate an initial step size h from the available failure rates (1% of the smallest MTTF).&lt;br /&gt;
#Use the RK45 method on all states simultaneously using the given h. (This means that all states must have their k1 values calculated/used together, then k2, then k3, etc).&lt;br /&gt;
#If all calculations are within tolerance, keep results (RK4, so the w without the hat) and increase h to the smallest of the increases generated by the method. If some of the calculations are not within tolerance, decrease the step size to the smallest of the decreases generated by the method and recalculate with the new h. h should not be increased to more than double, so s should have a stipulation on it that forbids from that occurring. Be aware that s may become infinite if the difference between the RK4 and the RK5 is zero. This should be addressed as well with a catch of some sort to make s = 2 in that case. (So basically if s is calculated to be greater than 2 for any state, make it equal to 2 for that state).&lt;br /&gt;
#Repeat steps 2 &amp;amp; 3 as necessary.&lt;br /&gt;
&lt;br /&gt;
If there are multiple phases, then steps 1-4 need to be performed for each phase where the initial probability of being in a state is equal to the final value from the previous phase.&lt;br /&gt;
&lt;br /&gt;
This methodology provides the ability to give availability and unavailability metrics for the system, as well as point probabilities of being in a certain state.&lt;br /&gt;
For the reliability metrics, the methodology differs in that each unavailable state is considered a &amp;quot;sink.&amp;quot; In other words, all transitions from unavailable to available states are ignored. This could be calculated simultaneously with the availability using the same step sizes as generated there.&lt;br /&gt;
&lt;br /&gt;
The two results that need to be stored are the time and the corresponding probability of being in the state for each state.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Discrete_markov_state_point_probability_plot.png&amp;diff=62859</id>
		<title>File:Discrete markov state point probability plot.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Discrete_markov_state_point_probability_plot.png&amp;diff=62859"/>
		<updated>2016-02-05T18:41:56Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62858</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62858"/>
		<updated>2016-02-05T18:41:29Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Discrete Markov Chains: Limiting Probabilities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains=&lt;br /&gt;
A discrete Markov chain can be viewed as a Markov chain where at the end of a step, the system will transition to another state (or remain in the current state), based on fixed probabilities. It is common to use discrete Markov chains when analyzing problems involving general probabilities, genetics, physics, etc.&lt;br /&gt;
To represent all the states that the system can occupy, we can use a vector ▁X: &lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(X_1&amp;amp;X_2&amp;amp;⋯&amp;amp;X_i ))&lt;br /&gt;
&lt;br /&gt;
where the term X_i represents the probability of the system being in state i and with:&lt;br /&gt;
&lt;br /&gt;
∑_(i=1)^n▒X_i =1&lt;br /&gt;
&lt;br /&gt;
The transitions between the states can be represented by a matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(P_11&amp;amp;P_12&amp;amp;⋯&amp;amp;P_1i@P_21&amp;amp;P_22&amp;amp;⋯&amp;amp;P_2i@⋮&amp;amp;⋮&amp;amp;⋱&amp;amp;⋮@P_i1&amp;amp;P_i2&amp;amp;⋯&amp;amp;P_ii ))&lt;br /&gt;
&lt;br /&gt;
where, for example, the term P_12 is the transition probability from state 1 to state 2, and for any row m with i states:&lt;br /&gt;
&lt;br /&gt;
∑_(j=1)^i▒P_mj =1&lt;br /&gt;
&lt;br /&gt;
To determine the probability of the system being in a particular state after the first step, we have to multiply the initial state probability vector ▁X(0) with the transition matrix ▁P:&lt;br /&gt;
&lt;br /&gt;
▁X (1)=▁X(0)∙▁P&lt;br /&gt;
&lt;br /&gt;
This will give us the state probability vector after the first step, ▁X(1).&lt;br /&gt;
&lt;br /&gt;
If one wants to determine the probabilities of the system being in a particular state after n steps, the Chapman-Kolmogorov equation can be used. This equation states that the probabilities of being in a state after n steps can be calculated by taking the initial state vector and multiplying by the transition matrix to the nth power, or:&lt;br /&gt;
&lt;br /&gt;
▁X (n)=▁X (0)∙▁P^n&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Take a system that can be in any one of three states-- operational, standby or offline-- at a given time, and starts in the standby state.&lt;br /&gt;
&lt;br /&gt;
After each step:&lt;br /&gt;
&lt;br /&gt;
*If the system is in the operational state, there is a 20% chance that it moves to the standby state, and a 5% chance that it goes offline.&lt;br /&gt;
*If it is in the standby state, there is a 40% chance that it becomes operational, and a 1% chance that it goes offline.&lt;br /&gt;
*If it is in the offline state, there is a 15% chance that it becomes operational, and a 50% chance that it moves to the standby state.&lt;br /&gt;
&lt;br /&gt;
We want to know the probability that it is offline after 10 steps.&lt;br /&gt;
&lt;br /&gt;
First, we must create the state probability vector at time equal to zero, which in this case is:&lt;br /&gt;
&lt;br /&gt;
▁X(0)=(■(0&amp;amp;1&amp;amp;0))&lt;br /&gt;
&lt;br /&gt;
Then, we can create the transition matrix to represent all the various transition probabilities between states:&lt;br /&gt;
&lt;br /&gt;
▁P=(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))&lt;br /&gt;
&lt;br /&gt;
Lastly, we can calculate the state probabilities after 10 steps using the Chapman-Kolmogorov equation:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=▁X (0)∙▁P^10&lt;br /&gt;
&lt;br /&gt;
or:&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0&amp;amp;1&amp;amp;0))∙(■(0.75&amp;amp;0.20&amp;amp;0.05@0.40&amp;amp;0.59&amp;amp;0.01@0.15&amp;amp;0.50&amp;amp;0.35))^10&lt;br /&gt;
&lt;br /&gt;
resulting in :&lt;br /&gt;
&lt;br /&gt;
▁X (10)=(■(0.596&amp;amp;0.353&amp;amp;0.051))&lt;br /&gt;
&lt;br /&gt;
We can also plot the point probabilities of each state at each step if we calculate the state probabilities after each step:&lt;br /&gt;
 &lt;br /&gt;
[[Image:discrete_markov_state_point_probability_plot.png|center|500px|link=]]&lt;br /&gt;
&lt;br /&gt;
From the plot, we can also determine that the probabilities of being in a state reach steady-state after about 6 steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Chapman-Kolmogorov Equation==&lt;br /&gt;
The Chapman-Kolmogorov equation was realized and defined independently by British mathematician Sydney Chapman and Russian mathematician Andrew Kolmogorov.  It can be used to provide the transitional densities of a Markov sequence. &lt;br /&gt;
&lt;br /&gt;
Let p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;=P(X&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;=i)&lt;br /&gt;
&lt;br /&gt;
then:&lt;br /&gt;
&lt;br /&gt;
::P(X&amp;lt;sub&amp;gt;(n+1)&amp;lt;/sub&amp;gt;=j) = &amp;lt;math&amp;gt;\sum_{i \mathop =0}^{N}P&amp;lt;/math&amp;gt; (X&amp;lt;sub&amp;gt;n+1&amp;lt;/sub&amp;gt; = j|X&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; = i)&lt;br /&gt;
&lt;br /&gt;
so:&lt;br /&gt;
&lt;br /&gt;
::P&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n+1)&amp;lt;/sup&amp;gt; = &amp;lt;math&amp;gt;\sum_{i \mathop =0}^{N}P&amp;lt;/math&amp;gt; (X&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt; P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With vector notation &amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt; = (p&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;,p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;, ... ,p&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;)	(row vector)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n+1)&amp;lt;/sup&amp;gt; = p&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;&amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt; = (&amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n-1)&amp;lt;/sup&amp;gt;&amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = p&amp;lt;sup&amp;gt;(0)&amp;lt;/sup&amp;gt;p&amp;lt;sup&amp;gt;(n+1)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; = P (X&amp;lt;sub&amp;gt;n+m&amp;lt;/sub&amp;gt; = j| X&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; = i) and &amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; = P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;n+m&amp;lt;/sup&amp;gt; = &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt; * &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; and &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;= &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Accessible and Communicating States==&lt;br /&gt;
State j is accessible from state i, if for some m:&lt;br /&gt;
&lt;br /&gt;
::P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; &amp;gt; 0&lt;br /&gt;
&lt;br /&gt;
State i communicates with state j, if j is accessible from i and also state i is accessible from j:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{m \mathop =1}^{\infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; and &amp;lt;math&amp;gt;\sum_{m \mathop =1}^{\infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ji&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Markov chain is irreducible if every state i communicates with all other states and with itself.&lt;br /&gt;
==Recurrent and Transient States==&lt;br /&gt;
Let f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = P  (starting at state i, system will return to state i)&lt;br /&gt;
&lt;br /&gt;
If f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = 1, then state i is recurrent, repeated infinitely often&lt;br /&gt;
 &lt;br /&gt;
If f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; &amp;lt; 1, then state i is transient, and repeated returns have smaller and smaller probabilities.&lt;br /&gt;
&lt;br /&gt;
::f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = &amp;lt;math&amp;gt;\sum_{m \mathop =1}^{\infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Markov chain is ergodic if all states are recurrent and not periodic (there is no d&amp;gt;0 such that P&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; &amp;gt; 0 if and only if m is multiple of d).&lt;br /&gt;
&lt;br /&gt;
==Limiting Probabilities==&lt;br /&gt;
* Theorem:&lt;br /&gt;
For an irreducible, ergodic Markov chain &lt;br /&gt;
&amp;lt;math&amp;gt; \lim_{m \to \infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; = &amp;amp;pi;&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; for all j for all j	(10.4)&lt;br /&gt;
and limit is independent of i ( steady state probabilities):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::0 ≦ π&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;≦ 1&lt;br /&gt;
&lt;br /&gt;
[[File:LimitingProbab.Theorem.PNG]]&lt;br /&gt;
 &lt;br /&gt;
* Method: &lt;br /&gt;
&lt;br /&gt;
[[File:LimitingProbab.Method.PNG]]&lt;br /&gt;
&lt;br /&gt;
==Mean Time Spent in States==&lt;br /&gt;
Mean time spent in recurrent states = ∞&lt;br /&gt;
&lt;br /&gt;
Mean time spent in transient states: &lt;br /&gt;
&lt;br /&gt;
::S&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt; = Starting at state i , expected number of time periods that state is j&lt;br /&gt;
&lt;br /&gt;
::S&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt; = [[File:MeanTimeSpentInStates.1.PNG]]&lt;br /&gt;
  &lt;br /&gt;
where P * contains rows and columns of transient states of matrix ▁P:&lt;br /&gt;
S = I + P* S&lt;br /&gt;
&amp;lt;math&amp;gt;\underline{S}&amp;lt;/math&amp;gt; = (I-P *)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains: Applications to Non-Repairable Systems=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Non-repairable component with failure rate &amp;amp;lambda;&lt;br /&gt;
** P0(t) = P ( at time t component works)&lt;br /&gt;
** P1(t) = P ( at time t component is broken)&lt;br /&gt;
&lt;br /&gt;
P0 (t+ ∆ t) = (1- λ ∆ t) P0 (t) +0 P1 (t) Does not fail during ∆ t times&lt;br /&gt;
&lt;br /&gt;
P1(t+ ∆ t) = λ ∆ t P0 (t) + 1 P1 (t) since P (Fails in ∆ Time) =1- e&amp;lt;sup&amp;gt;- &amp;amp;lambda;∆t&amp;lt;/sup&amp;gt; ≈ 1- (1- &amp;lt;math&amp;gt;\tfrac{\lambda\Delta t}{1!}+\tfrac{(\lambda^2(\Delta t)^2)}{2!}&amp;lt;/math&amp;gt;  - …) ≈ &amp;amp;lambda;∆t if ∆t is small&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
The method employed to solve a continuous Markov Chain problem is a modified RK45 Runga-Kutta-Fehlberg, which is an adaptive step size Runga-Kutta method.&lt;br /&gt;
&lt;br /&gt;
==User Inputs==&lt;br /&gt;
The user must provide an initial probability for each state and a transition probability between each state. The initial probabilites of all states must add up to exactly 1.0. If a transition probability between states is not given, it is assumed to be zero.&lt;br /&gt;
&lt;br /&gt;
===Symbol Definitions===&lt;br /&gt;
* α&amp;lt;sub&amp;gt;j,0&amp;lt;/sub&amp;gt; is the initial probability of being in state j (given by the user).&lt;br /&gt;
* ε is the user defined tolerance (accuracy). Default should be 1e&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; and can only get smaller.&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;l,j&amp;lt;/sub&amp;gt; is the transitional failure rate into state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; from state w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt;&lt;br /&gt;
* w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt; is the probability of being in the state associated with the λ&amp;lt;sub&amp;gt;l,j’s&amp;lt;/sub&amp;gt;&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;j,k&amp;lt;/sub&amp;gt; is the transitional failure rate leaving state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; to state w&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;&lt;br /&gt;
* f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is the change in state probability function (for a given state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;):&lt;br /&gt;
::[[File:ChgInStateProbFunt.Jpg]]&lt;br /&gt;
f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is not a function of time, as only constant failure rates are used. This means that the various k values calculated during the RK45 method are only functions of all the w values and the constant failure rates, λ.&lt;br /&gt;
&lt;br /&gt;
The formula for the Runge-Kutta-Fehlberg method (RK45) is given next.&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = α&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{4}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{k_1}{4}&amp;lt;/math&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3h}{8}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{9}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{12h}{13}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1932}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{7200}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{7296}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+h w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{439}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-8k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3680}{513}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{845}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{2}&amp;lt;/math&amp;gt; w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{8}{27}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-2k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3544}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1859}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{11}{40}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{25}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1408}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2197}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1}{5}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{16}{135}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{6656}{12825}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{28561}{56430}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{9}{50}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2}{55}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
R = &amp;lt;math&amp;gt;\tfrac{1}{h}|&amp;lt;/math&amp;gt;w&#039;&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;-w&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;|&lt;br /&gt;
&lt;br /&gt;
&amp;amp;delta; = 0.84 * &amp;lt;math&amp;gt;\tfrac{\varepsilon}{R}^\tfrac{1}{4}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If R≤&amp;amp;epsilon; then keep w as the current step solution and move to the next step with step size &amp;amp;delta;h&lt;br /&gt;
&lt;br /&gt;
If R&amp;gt;&amp;amp;epsilon; then recalculate the current step with step size &amp;amp;delta;h. The above method is for each individual state, and not for the system as a whole. The w is the equivalent of the probability of being in a particular state, where the subscript i represents the time based variation. This still has to be done for all the states in the system, which later on is represented by the subscript j (for each state).&lt;br /&gt;
&lt;br /&gt;
==Detailed Methodology==&lt;br /&gt;
#Generate an initial step size h from the available failure rates (1% of the smallest MTTF).&lt;br /&gt;
#Use the RK45 method on all states simultaneously using the given h. (This means that all states must have their k1 values calculated/used together, then k2, then k3, etc).&lt;br /&gt;
#If all calculations are within tolerance, keep results (RK4, so the w without the hat) and increase h to the smallest of the increases generated by the method. If some of the calculations are not within tolerance, decrease the step size to the smallest of the decreases generated by the method and recalculate with the new h. h should not be increased to more than double, so s should have a stipulation on it that forbids from that occurring. Be aware that s may become infinite if the difference between the RK4 and the RK5 is zero. This should be addressed as well with a catch of some sort to make s = 2 in that case. (So basically if s is calculated to be greater than 2 for any state, make it equal to 2 for that state).&lt;br /&gt;
#Repeat steps 2 &amp;amp; 3 as necessary.&lt;br /&gt;
&lt;br /&gt;
If there are multiple phases, then steps 1-4 need to be performed for each phase where the initial probability of being in a state is equal to the final value from the previous phase.&lt;br /&gt;
&lt;br /&gt;
This methodology provides the ability to give availability and unavailability metrics for the system, as well as point probabilities of being in a certain state.&lt;br /&gt;
For the reliability metrics, the methodology differs in that each unavailable state is considered a &amp;quot;sink.&amp;quot; In other words, all transitions from unavailable to available states are ignored. This could be calculated simultaneously with the availability using the same step sizes as generated there.&lt;br /&gt;
&lt;br /&gt;
The two results that need to be stored are the time and the corresponding probability of being in the state for each state.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62857</id>
		<title>Markov Diagrams</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Markov_Diagrams&amp;diff=62857"/>
		<updated>2016-02-05T17:59:31Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:InProgress}}&lt;br /&gt;
{{Template:bsbook|11}} &lt;br /&gt;
The term &amp;quot;Markov Chain,&amp;quot; invented by Russian mathematician Andrey Markov, is used across many applications to represent a stochastic process made up of a sequence of random variables representing the evolution of a system. Events are &amp;quot;chained&amp;quot; or &amp;quot;linked&amp;quot; serially together though memoryless transitions from one state to another. The term &amp;quot;memoryless&amp;quot; is used because past events are forgotten, as they are irrelevant; an event or state is dependent only on the state or event that immediately preceded it.&lt;br /&gt;
&lt;br /&gt;
=Concept and Methodology=&lt;br /&gt;
The concept behind the Markov chain method is that given a system of states with transitions between them, the analysis will give the probability of being in a particular state at a particular time. If some of the states are considered to be unavailable states for the system, then availability/reliability analysis can be performed for the system as a whole.&lt;br /&gt;
&lt;br /&gt;
Depending on the transitions between the states, the Markov chain can be considered to be a discrete Markov chain, which has a constant probability of transition per unit step, or a continuous Markov chain, which has a constant rate of transition per unit time.&lt;br /&gt;
&lt;br /&gt;
=Discrete Markov Chains: Limiting Probabilities=&lt;br /&gt;
==Transition Matrix==&lt;br /&gt;
A system has a finite number of states {0, 1, 2…,N} and transition from state to state is random. The matrix shows the potential inputs and outputs from one state to another to describe transitions of a Markov chain.&lt;br /&gt;
P(X&amp;lt;sub&amp;gt;(n+1)&amp;lt;/sub&amp;gt;=j│X,&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;=i)=P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt; where   0≦P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;≦1&lt;br /&gt;
&lt;br /&gt;
[[File:TransitionMatrixExp.jpg]]&lt;br /&gt;
 &lt;br /&gt;
===Markov Chain Diagram===&lt;br /&gt;
Markov chain diagrams can be used to label events and transitions based upon a transition matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Chapman-Kolmogorov Equation==&lt;br /&gt;
The Chapman-Kolmogorov equation was realized and defined independently by British mathematician Sydney Chapman and Russian mathematician Andrew Kolmogorov.  It can be used to provide the transitional densities of a Markov sequence. &lt;br /&gt;
&lt;br /&gt;
Let p&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;=P(X&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;=i)&lt;br /&gt;
&lt;br /&gt;
then:&lt;br /&gt;
&lt;br /&gt;
::P(X&amp;lt;sub&amp;gt;(n+1)&amp;lt;/sub&amp;gt;=j) = &amp;lt;math&amp;gt;\sum_{i \mathop =0}^{N}P&amp;lt;/math&amp;gt; (X&amp;lt;sub&amp;gt;n+1&amp;lt;/sub&amp;gt; = j|X&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; = i)&lt;br /&gt;
&lt;br /&gt;
so:&lt;br /&gt;
&lt;br /&gt;
::P&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n+1)&amp;lt;/sup&amp;gt; = &amp;lt;math&amp;gt;\sum_{i \mathop =0}^{N}P&amp;lt;/math&amp;gt; (X&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt; P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With vector notation &amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt; = (p&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;,p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;, ... ,p&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;)	(row vector)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n+1)&amp;lt;/sup&amp;gt; = p&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;&amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt; = (&amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n-1)&amp;lt;/sup&amp;gt;&amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; = p&amp;lt;sup&amp;gt;(0)&amp;lt;/sup&amp;gt;p&amp;lt;sup&amp;gt;(n+1)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; = P (X&amp;lt;sub&amp;gt;n+m&amp;lt;/sub&amp;gt; = j| X&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt; = i) and &amp;lt;math&amp;gt;\underline{p}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; = P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;n+m&amp;lt;/sup&amp;gt; = &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt; * &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; and &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;= &amp;lt;math&amp;gt;\underline{P}&amp;lt;/math&amp;gt;&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Accessible and Communicating States==&lt;br /&gt;
State j is accessible from state i, if for some m:&lt;br /&gt;
&lt;br /&gt;
::P&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; &amp;gt; 0&lt;br /&gt;
&lt;br /&gt;
State i communicates with state j, if j is accessible from i and also state i is accessible from j:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\sum_{m \mathop =1}^{\infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; and &amp;lt;math&amp;gt;\sum_{m \mathop =1}^{\infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ji&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Markov chain is irreducible if every state i communicates with all other states and with itself.&lt;br /&gt;
==Recurrent and Transient States==&lt;br /&gt;
Let f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = P  (starting at state i, system will return to state i)&lt;br /&gt;
&lt;br /&gt;
If f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = 1, then state i is recurrent, repeated infinitely often&lt;br /&gt;
 &lt;br /&gt;
If f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; &amp;lt; 1, then state i is transient, and repeated returns have smaller and smaller probabilities.&lt;br /&gt;
&lt;br /&gt;
::f&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt; = &amp;lt;math&amp;gt;\sum_{m \mathop =1}^{\infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Markov chain is ergodic if all states are recurrent and not periodic (there is no d&amp;gt;0 such that P&amp;lt;sub&amp;gt;ii&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; &amp;gt; 0 if and only if m is multiple of d).&lt;br /&gt;
&lt;br /&gt;
==Limiting Probabilities==&lt;br /&gt;
* Theorem:&lt;br /&gt;
For an irreducible, ergodic Markov chain &lt;br /&gt;
&amp;lt;math&amp;gt; \lim_{m \to \infty}P&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt;&amp;lt;sup&amp;gt;(m)&amp;lt;/sup&amp;gt; = &amp;amp;pi;&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; for all j for all j	(10.4)&lt;br /&gt;
and limit is independent of i ( steady state probabilities):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::0 ≦ π&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;≦ 1&lt;br /&gt;
&lt;br /&gt;
[[File:LimitingProbab.Theorem.PNG]]&lt;br /&gt;
 &lt;br /&gt;
* Method: &lt;br /&gt;
&lt;br /&gt;
[[File:LimitingProbab.Method.PNG]]&lt;br /&gt;
&lt;br /&gt;
==Mean Time Spent in States==&lt;br /&gt;
Mean time spent in recurrent states = ∞&lt;br /&gt;
&lt;br /&gt;
Mean time spent in transient states: &lt;br /&gt;
&lt;br /&gt;
::S&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt; = Starting at state i , expected number of time periods that state is j&lt;br /&gt;
&lt;br /&gt;
::S&amp;lt;sub&amp;gt;ij&amp;lt;/sub&amp;gt; = [[File:MeanTimeSpentInStates.1.PNG]]&lt;br /&gt;
  &lt;br /&gt;
where P * contains rows and columns of transient states of matrix ▁P:&lt;br /&gt;
S = I + P* S&lt;br /&gt;
&amp;lt;math&amp;gt;\underline{S}&amp;lt;/math&amp;gt; = (I-P *)&amp;lt;sup&amp;gt;-1&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Continuous Markov Chains: Applications to Non-Repairable Systems=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Non-repairable component with failure rate &amp;amp;lambda;&lt;br /&gt;
** P0(t) = P ( at time t component works)&lt;br /&gt;
** P1(t) = P ( at time t component is broken)&lt;br /&gt;
&lt;br /&gt;
P0 (t+ ∆ t) = (1- λ ∆ t) P0 (t) +0 P1 (t) Does not fail during ∆ t times&lt;br /&gt;
&lt;br /&gt;
P1(t+ ∆ t) = λ ∆ t P0 (t) + 1 P1 (t) since P (Fails in ∆ Time) =1- e&amp;lt;sup&amp;gt;- &amp;amp;lambda;∆t&amp;lt;/sup&amp;gt; ≈ 1- (1- &amp;lt;math&amp;gt;\tfrac{\lambda\Delta t}{1!}+\tfrac{(\lambda^2(\Delta t)^2)}{2!}&amp;lt;/math&amp;gt;  - …) ≈ &amp;amp;lambda;∆t if ∆t is small&lt;br /&gt;
&lt;br /&gt;
==Method==&lt;br /&gt;
The method employed to solve a continuous Markov Chain problem is a modified RK45 Runga-Kutta-Fehlberg, which is an adaptive step size Runga-Kutta method.&lt;br /&gt;
&lt;br /&gt;
==User Inputs==&lt;br /&gt;
The user must provide an initial probability for each state and a transition probability between each state. The initial probabilites of all states must add up to exactly 1.0. If a transition probability between states is not given, it is assumed to be zero.&lt;br /&gt;
&lt;br /&gt;
===Symbol Definitions===&lt;br /&gt;
* α&amp;lt;sub&amp;gt;j,0&amp;lt;/sub&amp;gt; is the initial probability of being in state j (given by the user).&lt;br /&gt;
* ε is the user defined tolerance (accuracy). Default should be 1e&amp;lt;sup&amp;gt;-5&amp;lt;/sup&amp;gt; and can only get smaller.&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;l,j&amp;lt;/sub&amp;gt; is the transitional failure rate into state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; from state w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt;&lt;br /&gt;
* w&amp;lt;sub&amp;gt;l&amp;lt;/sub&amp;gt; is the probability of being in the state associated with the λ&amp;lt;sub&amp;gt;l,j’s&amp;lt;/sub&amp;gt;&lt;br /&gt;
* λ&amp;lt;sub&amp;gt;j,k&amp;lt;/sub&amp;gt; is the transitional failure rate leaving state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; to state w&amp;lt;sub&amp;gt;k&amp;lt;/sub&amp;gt;&lt;br /&gt;
* f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is the change in state probability function (for a given state w&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt;):&lt;br /&gt;
::[[File:ChgInStateProbFunt.Jpg]]&lt;br /&gt;
f&amp;lt;sub&amp;gt;j&amp;lt;/sub&amp;gt; is not a function of time, as only constant failure rates are used. This means that the various k values calculated during the RK45 method are only functions of all the w values and the constant failure rates, λ.&lt;br /&gt;
&lt;br /&gt;
The formula for the Runge-Kutta-Fehlberg method (RK45) is given next.&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt; = α&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{4}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{k_1}{4}&amp;lt;/math&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3h}{8}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{9}{32}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{12h}{13}&amp;lt;/math&amp;gt;, w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1932}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{7200}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{7296}{2197}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+h w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{439}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-8k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3680}{513}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{845}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt; = hf(t&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{h}{2}&amp;lt;/math&amp;gt; w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{8}{27}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-2k&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{3544}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1859}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{11}{40}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{25}{216}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{1408}{2565}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;3&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2197}{4104}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{1}{5}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
w&#039;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+1 = w&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{16}{135}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{6656}{12825}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;+&amp;lt;math&amp;gt;\tfrac{28561}{56430}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;4&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{9}{50}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;5&amp;lt;/sub&amp;gt;-&amp;lt;math&amp;gt;\tfrac{2}{55}&amp;lt;/math&amp;gt;k&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
R = &amp;lt;math&amp;gt;\tfrac{1}{h}|&amp;lt;/math&amp;gt;w&#039;&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;-w&amp;lt;sub&amp;gt;i+1&amp;lt;/sub&amp;gt;|&lt;br /&gt;
&lt;br /&gt;
&amp;amp;delta; = 0.84 * &amp;lt;math&amp;gt;\tfrac{\varepsilon}{R}^\tfrac{1}{4}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If R≤&amp;amp;epsilon; then keep w as the current step solution and move to the next step with step size &amp;amp;delta;h&lt;br /&gt;
&lt;br /&gt;
If R&amp;gt;&amp;amp;epsilon; then recalculate the current step with step size &amp;amp;delta;h. The above method is for each individual state, and not for the system as a whole. The w is the equivalent of the probability of being in a particular state, where the subscript i represents the time based variation. This still has to be done for all the states in the system, which later on is represented by the subscript j (for each state).&lt;br /&gt;
&lt;br /&gt;
==Detailed Methodology==&lt;br /&gt;
#Generate an initial step size h from the available failure rates (1% of the smallest MTTF).&lt;br /&gt;
#Use the RK45 method on all states simultaneously using the given h. (This means that all states must have their k1 values calculated/used together, then k2, then k3, etc).&lt;br /&gt;
#If all calculations are within tolerance, keep results (RK4, so the w without the hat) and increase h to the smallest of the increases generated by the method. If some of the calculations are not within tolerance, decrease the step size to the smallest of the decreases generated by the method and recalculate with the new h. h should not be increased to more than double, so s should have a stipulation on it that forbids from that occurring. Be aware that s may become infinite if the difference between the RK4 and the RK5 is zero. This should be addressed as well with a catch of some sort to make s = 2 in that case. (So basically if s is calculated to be greater than 2 for any state, make it equal to 2 for that state).&lt;br /&gt;
#Repeat steps 2 &amp;amp; 3 as necessary.&lt;br /&gt;
&lt;br /&gt;
If there are multiple phases, then steps 1-4 need to be performed for each phase where the initial probability of being in a state is equal to the final value from the previous phase.&lt;br /&gt;
&lt;br /&gt;
This methodology provides the ability to give availability and unavailability metrics for the system, as well as point probabilities of being in a certain state.&lt;br /&gt;
For the reliability metrics, the methodology differs in that each unavailable state is considered a &amp;quot;sink.&amp;quot; In other words, all transitions from unavailable to available states are ignored. This could be calculated simultaneously with the availability using the same step sizes as generated there.&lt;br /&gt;
&lt;br /&gt;
The two results that need to be stored are the time and the corresponding probability of being in the state for each state.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Mixture_Design&amp;diff=62745</id>
		<title>Mixture Design</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Mixture_Design&amp;diff=62745"/>
		<updated>2016-01-12T21:15:19Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Doebook|14}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
When a product is formed by mixing together two or more ingredients, the product is called a mixture, and the ingredients are called mixture components. In a general mixture problem, the measured response is assumed to depend only on the proportions of the ingredients in the mixture, not the amount of the mixture. For example, the taste of a fruit punch recipe (i.e., the response) might depend on the proportions of watermelon, pineapple and orange juice in the mixture. The taste of a small cup of fruit punch will obviously be the same as a big cup.&lt;br /&gt;
&lt;br /&gt;
Sometimes the responses of a mixture experiment depend not only on the proportions of ingredients, but also on the settings of variables in the process of making the mixture. For example, the tensile strength of stainless steel is not only affected by the proportions of iron, copper, nickel and chromium in the alloy; it is also affected by process variables such as temperature, pressure and curing time used in the experiment. &lt;br /&gt;
&lt;br /&gt;
One of the purposes of conducting a mixture experiment is to find the best proportion of each component and the best value of each process variable, in order to optimize a single response or multiple responses simultaneously. In this chapter, we will discuss how to design effective mixture designs and how to analyze data from mixture experiments with and without process variables. &lt;br /&gt;
&lt;br /&gt;
==Mixture Design Types==&lt;br /&gt;
&lt;br /&gt;
There are several different types of mixture designs. The most common ones are simplex lattice, simplex centroid, simplex axial and simplex vertex designs, each of which is used for a different purpose. &lt;br /&gt;
&lt;br /&gt;
*If there are many components in a mixture, the first choice is to screen out the most important ones. Simplex axial and Simplex centroid designs are used for this purpose. &lt;br /&gt;
*If the number of components is not large, but a high order polynomial equation is needed in order to accurately describe the response surface, then a simplex lattice design can be used.&lt;br /&gt;
*Simplex vertex designs are used for the cases when there are constraints on one or more components (e.g., if the proportion of watermelon juice in a fruit punch recipe is required to be less than 30%, and the combined proportion of watermelon and orange juice should always be between 40% and 70%).  &lt;br /&gt;
&lt;br /&gt;
===Simplex Plot===&lt;br /&gt;
&lt;br /&gt;
Since the sum of all the mixture components is always 100%, the experiment space usually is given by a plot. The experiment space for the fruit punch experiment is given in the following triangle or simplex plot. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.1.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
The triangle area in the above plot is defined by the fact that the sum of the three ingredients is 1 (100%). For the points that are on the vertices, the punch only has one ingredient. For instance, point 1 only has watermelon. The line opposite of point 1 represents a mixture with no watermelon . &lt;br /&gt;
&lt;br /&gt;
The coordinate system used for the value of each ingredient &lt;br /&gt;
&amp;lt;math&amp;gt;{{x}_{i}}\,\!&amp;lt;/math&amp;gt;,&amp;lt;math&amp;gt;i=1,2,...,q\,\!&amp;lt;/math&amp;gt; is called a simplex coordinate system. q is the number of ingredients. The simplex plot can only visually display three ingredients. If there are more than three ingredients, the values for other ingredients must be provided. For the fruit punch example, the coordinate for point 1 is (1, 0, 0). The interior points of the triangle represent mixtures in which none of the three components is absent. It means all &lt;br /&gt;
&amp;lt;math&amp;gt;{{x}_{i}}&amp;gt;0\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;i=1,2,3\,\!&amp;lt;/math&amp;gt;. Point 0 in the middle of the triangle is called the center point. In this case, it is the centroid of a face/plane. The coordinate for point 0 is (1/3, 1/3, 1/3). Points 2, 4 and 6 are each called a centroid of edge. Their coordinates are (0.5, 0.5, 0), (0, 0.5, 0.5), and (0.5, 0, 0.5).&lt;br /&gt;
&lt;br /&gt;
===Simplex Lattice Design===&lt;br /&gt;
&lt;br /&gt;
The response in a mixture experiment usually is described by a polynomial function. This function represents how the components affect the response. To better study the shape of the response surface, the natural choice for a design would be the one whose points are spread evenly over the whole simplex. An ordered arrangement consisting of a uniformly spaced distribution of points on a simplex is known as a lattice. &lt;br /&gt;
&lt;br /&gt;
A {q, m} simplex lattice design for q components consists of points defined by the following coordinate settings: the proportions assumed by each component take the m+1 equally spaced values from 0 to 1, &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{x}_{i}}=0,\frac{1}{m},\frac{2}{m},....,1\text{      }i=1,2,....,q\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the design space consists of all the reasonable combinations of all the values for each factor. m is usually called the degree of the lattice. For example, for a {3, 2} design, &amp;lt;math&amp;gt;{{x}_{i}}=0,\frac{1}{2},1\,\!&amp;lt;/math&amp;gt; and its design space has 6 points. They are:&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.2.png|500 px|center]]&lt;br /&gt;
 &lt;br /&gt;
For a {3, 3} design, &amp;lt;math&amp;gt;{{x}_{i}}=0,\frac{1}{3},\frac{2}{3},1\,\!&amp;lt;/math&amp;gt;, and its design space has 10 points. They are:&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.3.png|500 px|center]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
For a simplex design with degree of m, each component has m + 1 different values, therefore, the experiment results can be used to fit a polynomial equation up to an order of m. A {3, 3} simplex lattice design can be used to fit the following model. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}+{{\beta }_{12}}{{x}_{1}}{{x}_{2}}+{{\beta }_{13}}{{x}_{1}}{{x}_{3}}+{{\beta }_{23}}{{x}_{2}}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; +{{\delta }_{12}}{{x}_{1}}{{x}_{2}}\left( {{x}_{1}}-{{x}_{2}} \right)+{{\delta }_{13}}{{x}_{1}}{{x}_{3}}\left( {{x}_{1}}-{{x}_{3}} \right)+{{\delta }_{23}}{{x}_{2}}{{x}_{3}}\left( {{x}_{2}}-{{x}_{3}} \right) \\ &lt;br /&gt;
 &amp;amp; +{{\beta }_{123}}{{x}_{1}}{{x}_{2}}{{x}_{3}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above model is called the full cubic model. Note that the intercept term is not included in the model due to the correlation between all the components (their sum is 100%). &lt;br /&gt;
&lt;br /&gt;
Simplex lattice design includes all the component combinations. For a {q, m} design, the total number of runs is &amp;lt;math&amp;gt;\left( \begin{align}&lt;br /&gt;
  &amp;amp; q+m-1 \\ &lt;br /&gt;
 &amp;amp; m \\ &lt;br /&gt;
\end{align} \right)\,\!&amp;lt;/math&amp;gt;. Therefore to reduce the number of runs and still be able to fit a high order polynomial model, sometimes we can use simplex centroid design which is explained next.&lt;br /&gt;
&lt;br /&gt;
===Simplex Centroid Design===&lt;br /&gt;
&lt;br /&gt;
A simplex centroid design only includes the centroid points. For the components that appear in a run in a simplex centroid design, they have the same values. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.4.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
In the above simplex plot, points 2, 4 and 6 are 2nd degree centroids. Each of them has two non-zero components with equal values. Point 0 is a 3rd degree centroid and all three components have the same value. For a design with q components, the highest degree of centroid is q. It is called the overall centroid, or the center point of the design. &lt;br /&gt;
&lt;br /&gt;
For a q component simplex centroid design with a degree of centroid of q, the total number of runs is &lt;br /&gt;
&amp;lt;math&amp;gt;{{2}^{q}}-1\,\!&amp;lt;/math&amp;gt;. The runs correspond to the q permutations of (1, 0, 0,…, 0), &lt;br /&gt;
&amp;lt;math&amp;gt;\left( \begin{align}&lt;br /&gt;
  &amp;amp; q \\ &lt;br /&gt;
 &amp;amp; 2 \\ &lt;br /&gt;
\end{align} \right)\,\!&amp;lt;/math&amp;gt; permutations of (1/2, 1/2, 0, 0, 0, 0, …,0), the &lt;br /&gt;
&amp;lt;math&amp;gt;\left( \begin{align}&lt;br /&gt;
  &amp;amp; q \\ &lt;br /&gt;
 &amp;amp; 3 \\ &lt;br /&gt;
\end{align} \right)\,\!&amp;lt;/math&amp;gt; permutations of (1/3, 1/3, 1/3, 0, 0, 0, 0,…, 0)…., and the overall centroid (1/q, 1/q, …, 1/q).  If the degree of centroid is defined as &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; (m &amp;lt; q), then the total number of runs will be &lt;br /&gt;
&amp;lt;math&amp;gt;\left( \begin{align}&lt;br /&gt;
  &amp;amp; q \\ &lt;br /&gt;
 &amp;amp; 1 \\ &lt;br /&gt;
\end{align} \right)+\left( \begin{align}&lt;br /&gt;
  &amp;amp; q \\ &lt;br /&gt;
 &amp;amp; 2 \\ &lt;br /&gt;
\end{align} \right)+...+\left( \begin{align}&lt;br /&gt;
  &amp;amp; q \\ &lt;br /&gt;
 &amp;amp; m \\ &lt;br /&gt;
\end{align} \right)\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Since a simplex centroid design usually has fewer runs than a simplex lattice design with the same degree, a polynomial model with fewer terms should be used. A {3, 3} simplex centroid design can be used to fit the following model. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}+{{\beta }_{12}}{{x}_{1}}{{x}_{2}}+{{\beta }_{13}}{{x}_{1}}{{x}_{3}}+{{\beta }_{23}}{{x}_{2}}{{x}_{3}}+{{\beta }_{123}}{{x}_{1}}{{x}_{2}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above model is called the special cubic model. Note that the intercept term is not included due to the correlation between all the components (their sum is 100%).&lt;br /&gt;
&lt;br /&gt;
===Simplex Axial Design===&lt;br /&gt;
&lt;br /&gt;
The simplex lattice and simplex centroid designs are boundary designs since the points of these designs are positioned on boundaries (vertices, edges, faces, etc.) of the simplex factor space, with the exception of the overall centroid. Axial designs, on the other hand, are designs consisting mainly of the points positioned inside the simplex. Axial designs have been recommended for use when component effects are to be measured in a screening experiment, particularly when first degree models are to be fitted. &lt;br /&gt;
&lt;br /&gt;
Definition of Axial: The axial of a component &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; is defined as the imaginary line extending from the base point &amp;lt;math&amp;gt;{{x}_{i}}=0\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;{{x}_{j}}=1/\left( q-1 \right)\,\!&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;j\ne i\,\!&amp;lt;/math&amp;gt;, to the vertex where &amp;lt;math&amp;gt;{{x}_{i}}=1,{{x}_{j}}=0\,\!&amp;lt;/math&amp;gt; all &amp;lt;math&amp;gt;j\ne i\,\!&amp;lt;/math&amp;gt;. [John Cornell]    &lt;br /&gt;
&lt;br /&gt;
In a simplex axial design, all the points are on the axial. The simplest form of axial design is one whose points are positioned equidistant from the overall centroid &amp;lt;math&amp;gt;\left( {1}/{q,{1}/{q,}\;{1}/{q,}\;...}\; \right)\,\!&amp;lt;/math&amp;gt;. Traditionally, points located at the half distance from the overall centroid to the vertex are called axial points/blends. This is illustrated in the following plot.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.5.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
Points 4, 5 and 6 are the axial blends. &lt;br /&gt;
&lt;br /&gt;
By default, a simple axial design in DOE++ only has vertices, axial blends, centroid of the constraint planes and the overall centroid. For a design with q components, constraint plane centroids are the center points of dimension of q-1 space. One component is 0, and the remaining components have the same values for the center points of constraint planes. The number of the constraint plane centroids is the number of components q. The total number of runs in a simple axial design will be 3q+1. They are q vertex runs, q centroids of constraint planes, q axial blends and 1 overall centroid. &lt;br /&gt;
&lt;br /&gt;
A simplex axial design for 3 components has 10 points as given below. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.6.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
Points 1, 2 and 3 are the three vertices; points 4, 5, 6 are the axial blends; points 7, 8 and 9 are the centroids of constraint planes, and point 0 is the overall center point.&lt;br /&gt;
&lt;br /&gt;
===Extreme Vertex Design===&lt;br /&gt;
&lt;br /&gt;
Extreme vertex designs are used when both lower and upper bound constraints on the components are presented, or when linear constraints are added to several components. For example, if a mixture design with 3 components has the following constraints:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:*&amp;lt;math&amp;gt;{{x}_{2}}\le 0.7\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
:*&amp;lt;math&amp;gt;-2{{x}_{1}}+2{{x}_{2}}+3{{x}_{3}}\ge 0\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
:*&amp;lt;math&amp;gt;48{{x}_{1}}+13{{x}_{2}}-{{x}_{3}}\ge 0\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the feasible region is defined by the six points in the following simplex plot. To meet the above constraints, all the runs conducted in the experiment should be in the feasible region or on its boundary. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.7.png|500 px|center]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The CONSIM method described in [Snee 1979] is used in DOE++ to check the consistency of all the constraints and to get the vertices defined by them. &lt;br /&gt;
&lt;br /&gt;
Extreme vertex designs by default use the vertices at the boundary. Additional points such as the centroid of spaces of different dimensions, axial points and the overall center point can be added. In extreme vertex designs, axial points are between the overall center point and the vertices.  For the above example, if the axial points and the overall center point are added, then all the runs in the experiment will be:&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.8.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
Point 0 in the center of the feasible region is the overall centroid. The other red points are the axial points. They are at the middle of the lines connecting the center point with the vertices.&lt;br /&gt;
&lt;br /&gt;
==Mixture Design Data Analysis==&lt;br /&gt;
&lt;br /&gt;
In the following section, we will discuss the most popular regression models in mixture design data analysis. Due to the correlation between all the components in mixture designs, the intercept term usually is not included in the regression model. &lt;br /&gt;
&lt;br /&gt;
===Models Used in Mixture Design===&lt;br /&gt;
&lt;br /&gt;
For a design with three components, the following models are commonly used.&lt;br /&gt;
&lt;br /&gt;
*Linear model: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the intercept were included in the model, then the linear model would be&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y=\beta _{0}^{&#039;}+\beta _{1}^{&#039;}{{x}_{1}}+\beta _{2}^{&#039;}{{x}_{2}}+\beta _{3}^{&#039;}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, since &amp;lt;math&amp;gt;{{x}_{1}}+{{x}_{2}}+{{x}_{3}}=1\,\!&amp;lt;/math&amp;gt; (can be other constants as well), the above equation can be written as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y=\beta _{0}^{&#039;}\left( {{x}_{1}}+{{x}_{2}}+{{x}_{3}} \right)+\beta _{1}^{&#039;}{{x}_{1}}+\beta _{2}^{&#039;}{{x}_{2}}+\beta _{3}^{&#039;}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; =\left( \beta _{0}^{&#039;}+\beta _{1}^{&#039;} \right){{x}_{1}}+\left( \beta _{0}^{&#039;}+\beta _{2}^{&#039;} \right){{x}_{2}}+\left( \beta _{0}^{&#039;}+\beta _{3}^{&#039;} \right){{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; ={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equation has thus been reformatted to omit the intercept. &lt;br /&gt;
&lt;br /&gt;
*Quadratic model: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}+{{\beta }_{12}}{{x}_{1}}{{x}_{2}}+{{\beta }_{13}}{{x}_{1}}{{x}_{3}}+{{\beta }_{23}}{{x}_{2}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are no classic quadratic terms such as &amp;lt;math&amp;gt;x_{1}^{2}\,\!&amp;lt;/math&amp;gt;. This is because &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;x_{1}^{2}={{x}_{1}}\left( 1-{{x}_{2}}-{{x}_{3}} \right)={{x}_{1}}-{{x}_{1}}{{x}_{2}}-{{x}_{1}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Full cubic model:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}+{{\beta }_{12}}{{x}_{1}}{{x}_{2}}+{{\beta }_{13}}{{x}_{1}}{{x}_{3}}+{{\beta }_{23}}{{x}_{2}}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; +{{\delta }_{12}}{{x}_{1}}{{x}_{2}}\left( {{x}_{1}}-{{x}_{2}} \right)+{{\delta }_{13}}{{x}_{1}}{{x}_{3}}\left( {{x}_{1}}-{{x}_{3}} \right)+{{\delta }_{23}}{{x}_{2}}{{x}_{3}}\left( {{x}_{2}}-{{x}_{3}} \right) \\ &lt;br /&gt;
 &amp;amp; +{{\beta }_{123}}{{x}_{1}}{{x}_{2}}{{x}_{3}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Special cubic model: &amp;lt;math&amp;gt;{{\delta }_{ij}}{{x}_{i}}{{x}_{j}}\left( {{x}_{i}}-{{x}_{j}} \right)\,\!&amp;lt;/math&amp;gt; are removed from the full cubic model. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}+{{\beta }_{12}}{{x}_{1}}{{x}_{2}}+{{\beta }_{13}}{{x}_{1}}{{x}_{3}}+{{\beta }_{23}}{{x}_{2}}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; +{{\beta }_{123}}{{x}_{1}}{{x}_{2}}{{x}_{3}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above types of models are called Scheffe type models. They can be extended to designs with more than three components. &lt;br /&gt;
&lt;br /&gt;
In regular regression analysis, the effect of an exploratory variable or factor is represented by the value of the coefficient. The ratio of the estimated coefficient and its standard error is used for the t-test. The t-test can tell us if a coefficient is 0 or not. If a coefficient is statistically 0, then the corresponding factor has no significant effect on the response. However, for Scheffe type models, since the intercept term is not included in the model, we cannot use the regular t-test to test each individual main effect. In other words, we cannot test if the coefficient for each component is 0 or not. &lt;br /&gt;
&lt;br /&gt;
Similarly, in the ANOVA analysis, the linear effects of all the components are tested together as a single group. The main effect test for each individual component is not conducted.  To perform ANOVA analysis, the Scheffe type model needs to be reformatted to include the hidden intercept. For example, the linear model&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
can be rewritten as&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; ={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}\left( 1-{{x}_{1}}-{{x}_{2}} \right) \\ &lt;br /&gt;
 &amp;amp; ={{\beta }_{3}}+\left( {{\beta }_{1}}-{{\beta }_{3}} \right){{x}_{1}}+\left( {{\beta }_{2}}-{{\beta }_{3}} \right){{x}_{2}} \\ &lt;br /&gt;
 &amp;amp; ={{\beta }_{0}}+\beta _{1}^{&#039;}{{x}_{1}}+\beta _{2}^{&#039;}{{x}_{2}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;{{\beta }_{0}}={{\beta }_{3}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\beta _{1}^{&#039;}={{\beta }_{1}}-{{\beta }_{3}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\beta _{2}^{&#039;}={{\beta }_{2}}-{{\beta }_{3}}\,\!&amp;lt;/math&amp;gt;. All other models such as the quadratic, cubic and special cubic model can be reformatted using the same procedure. By including the intercept in the model, the correct sum of squares can be calculated in the ANOVA table. If ANOVA analysis is conducted directly using the Scheffe type models, the result will be incorrect.&lt;br /&gt;
&lt;br /&gt;
===L-Pseudocomponent, Proportion, and Actual Values===&lt;br /&gt;
&lt;br /&gt;
In mixture designs, the total amount of the mixture is usually given. For example, we can make either a one-pound or a two-pound cake. Regardless of whether the cake is one or two pounds, the proportion of each ingredient is the same. When the total amount is given, the upper and lower limits for each ingredient are usually given in amounts, which is easier for the experimenter to understand. Of course, if the limits or other constraints are given in terms of proportions, these proportions need be converted to the real amount values when conducting the experiment. To keep everything consistent, all the constraints in DOE++ are treated as amounts.&lt;br /&gt;
&lt;br /&gt;
In regular factorial design and response surface methods, the regression model is calculated using coded values. Coded values scale all the factors to the same magnitude, which makes the analysis much easier and reduces convergence error. Similarly, the analysis in mixture design is conducted using the so-called L-pseudocomponent value. L-pseudocomponent values scale all the components&#039; values within 0 and 1. In DOE++ all the designs and calculations for mixture factors are based on L-pseudocomponent values. The relationship between L-pseudocomponent values, proportions and actual amounts are explained next. &lt;br /&gt;
&lt;br /&gt;
====Example for L-Pseudocomponent Value====&lt;br /&gt;
&lt;br /&gt;
We are going to make one gallon (about 3.8 liters) of fruit punch. Three ingredients will be in the punch with the following constraints.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;1.2\le A\le 3.8\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;1.5\le B\le 3\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;0\le C\le 3.8\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;x_{i}^{A}\,\!&amp;lt;/math&amp;gt; (i = 1, 2, 3) be the actual amount value, &amp;lt;math&amp;gt;x_{i}^{{}}\,\!&amp;lt;/math&amp;gt; be the L-pseudocomponent value and &amp;lt;math&amp;gt;x_{i}^{R}\,\!&amp;lt;/math&amp;gt; be the proportion value. Then the equations for the conversion between them are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{x}_{i}}=\frac{x_{i}^{A}-{{l}_{i}}}{\left( T-\sum\limits_{j=1}^{p}{{{l}_{j}}} \right)}\,\!&amp;lt;/math&amp;gt;,	  &amp;lt;math&amp;gt;x_{i}^{A}={{l}_{i}}+\left( T-\sum\limits_{j=1}^{p}{{{l}_{i}}} \right){{x}_{i}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;x_{i}^{R}=\frac{x_{i}^{A}}{T}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;{{x}_{1}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;x_{1}^{A}\,\!&amp;lt;/math&amp;gt; and &lt;br /&gt;
&amp;lt;math&amp;gt;x_{1}^{R}\,\!&amp;lt;/math&amp;gt; are for component A, &amp;lt;math&amp;gt;{{x}_{2}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;x_{2}^{A}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;x_{2}^{R}\,\!&amp;lt;/math&amp;gt; are for component B, and &amp;lt;math&amp;gt;{{x}_{3}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;x_{3}^{A}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;x_{3}^{R}\,\!&amp;lt;/math&amp;gt; are for component C. &lt;br /&gt;
&lt;br /&gt;
Since components in this example have both lower and upper limit constraints, an extreme vertex design is used. The design settings are given below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.9.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
The created design in terms of L-pseudocomponent values is:&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.10.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
Displayed in amount values, it is:&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.11.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
Displayed in proportion values, it is:&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.12.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
====Check Constraint Consistency====&lt;br /&gt;
&lt;br /&gt;
In the above example, all the constraints are consistent. However, if we set the constraints to &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;1.2\le A\le 3.8\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;1.5\le B\le 3\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;2\le C\le 3.8,\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
then they are not consistent. This is because the total is only 3.8, but the sum of all the lower limits is 4.7. Therefore, not all the lower limits can be satisfied at the same time. If only lower limits and upper limits are presented for all the components, then we can adjust the lower bounds to make the constraints consistent. The method given by [Pieple 1983] is used and summarized below.&lt;br /&gt;
&lt;br /&gt;
Defined the range of a component to be &amp;lt;math&amp;gt;{{R}_{i}}={{U}_{i}}-{{L}_{i}}\,\!&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;{{U}_{i}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{L}_{i}}\,\!&amp;lt;/math&amp;gt; are the upper and lower limit for component i. The implied range of component i is  &lt;br /&gt;
&amp;lt;math&amp;gt;R_{i}^{*}=U_{i}^{*}-L_{i}^{*}\,\!&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;L_{i}^{*}=T-\sum\limits_{j\ne i}^{q}{{{U}_{i}}}\,\!&amp;lt;/math&amp;gt;, and &lt;br /&gt;
&amp;lt;math&amp;gt;U_{i}^{*}=T-\sum\limits_{j\ne i}^{q}{{{L}_{i}}}\,\!&amp;lt;/math&amp;gt;. T is the total amount. The steps for checking and adjusting bounds are given below. &lt;br /&gt;
&lt;br /&gt;
Step 1:  Check if &amp;lt;math&amp;gt;L_{i}^{*}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;U_{i}^{*}\,\!&amp;lt;/math&amp;gt; are greater than 0, if they are, then these constraints meet the basic requirement to be consistent. We can move forward to step 2. If not, these constraints cannot be adjusted to be consistent. We should stop. &lt;br /&gt;
&lt;br /&gt;
Step 2: For each component, check if &amp;lt;math&amp;gt;{{L}_{i}}\ge L_{i}^{*}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{U}_{i}}\le U_{i}^{*}\,\!&amp;lt;/math&amp;gt;. If they are, then this component’s constraints are consistent. Otherwise, if &amp;lt;math&amp;gt;{{L}_{i}}&amp;lt;L_{i}^{*}\,\!&amp;lt;/math&amp;gt;, then set &amp;lt;math&amp;gt;{{L}_{i}}=L_{i}^{*}\,\!&amp;lt;/math&amp;gt;, and if &amp;lt;math&amp;gt;{{U}_{i}}&amp;gt;U_{i}^{*}\,\!&amp;lt;/math&amp;gt;, then set &amp;lt;math&amp;gt;{{U}_{i}}=U_{i}^{*}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Step 3: Whenever a bound is changed, restart from Step 1 to use the new bound to check if all the constraints are consistent. Repeat this until all the limits are consistent. &lt;br /&gt;
 &lt;br /&gt;
For extreme vertex design where linear constraints are allowed, DOE++ will give a warning and stop creating the design if inconsistent linear combination constraints are found. No adjustment will be conducted for linear constraints.&lt;br /&gt;
&lt;br /&gt;
===Response Trace Plot===&lt;br /&gt;
&lt;br /&gt;
Due to the correlation between all the components, the regular t-test is not used to test the significance of each component. A special plot called the Response Trace Plot can be used to see how the response changes when each component changes from its reference point [John Cornell]. &lt;br /&gt;
&lt;br /&gt;
A reference point can be any point inside the experiment space. An imaginary line can be drawn from this reference point to each vertex &amp;lt;math&amp;gt;{{x}_{i}}=1\,\!&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;{{x}_{j}}=0\,\!&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;i\ne j\,\!&amp;lt;/math&amp;gt;). This line is the direction for component i to change. Component i can either increase or decrease its value along this line, while the ratio of other components &amp;lt;math&amp;gt;{{{x}_{j}}}/{{{x}_{k}}}\,\!&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;j,k\ne i\,\!&amp;lt;/math&amp;gt;) will keep constant. If the simplex plot is defined in terms of proportion, then the direction is called Cox’s direction, and &amp;lt;math&amp;gt;{{{x}_{j}}}/{{{x}_{k}}}\,\!&amp;lt;/math&amp;gt; is the ratio of proportion. If the simplex plot is defined in terms of pseduocomponent value, then the direction is called Pieple’s direction, and &amp;lt;math&amp;gt;{{{x}_{j}}}/{{{x}_{k}}}\,\!&amp;lt;/math&amp;gt; will be the ratio of pseduocomponent values. &lt;br /&gt;
&lt;br /&gt;
Assume the reference point in terms of proportion is &amp;lt;math&amp;gt;s=\left( {{s}_{1}},{{s}_{2}},...,{{s}_{q}} \right)\,\!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;{{s}_{1}}+{{s}_{2}}+...+{{s}_{q}}=1\,\!&amp;lt;/math&amp;gt;. Suppose the proportion of component &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; at &amp;lt;math&amp;gt;{{s}_{i}}\,\!&amp;lt;/math&amp;gt; is now changed by &amp;lt;math&amp;gt;{{\Delta }_{i}}\,\!&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;{{\Delta }_{i}}\,\!&amp;lt;/math&amp;gt; could be greater than or less than 0) in Cox’s direction, so that the new proportion becomes &amp;lt;math&amp;gt;{{x}_{i}}={{s}_{i}}+{{\Delta }_{i}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then the proportions of the remaining &amp;lt;math&amp;gt;q-1\,\!&amp;lt;/math&amp;gt; components resulting from the change from &amp;lt;math&amp;gt;{{s}_{i}}\,\!&amp;lt;/math&amp;gt; will be&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{x}_{j}}={{s}_{j}}-\frac{{{\Delta }_{i}}{{s}_{j}}}{1-{{s}_{i}}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After the change, the ratio of component j and k is unchanged. This is because&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\frac{{{x}_{j}}}{{{x}_{k}}}=\frac{{{s}_{j}}-\frac{{{\Delta }_{i}}{{s}_{j}}}{1-{{s}_{i}}}}{{{s}_{k}}-\frac{{{\Delta }_{i}}{{s}_{k}}}{1-{{s}_{i}}}}=\frac{{{s}_{j}}}{{{s}_{k}}}\frac{\frac{{{\Delta }_{i}}}{1-{{s}_{i}}}}{\frac{{{\Delta }_{i}}}{1-{{s}_{i}}}}=\frac{{{s}_{j}}}{{{s}_{k}}}\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
While &amp;lt;math&amp;gt;{{x}_{i}}\,\!&amp;lt;/math&amp;gt; is changed along Cox’s direction, we can use a fitted regression model to get the response value y.  A response trace plot for a mixture design with three components will look like &lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.13.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
The x-axis is the deviation amount from the reference point, and the y-value is the fitted response. Each component has one curve. Since the red curve for component A changes significantly, this means it has a significant effect along its axial. The blue curve for component C is almost flat; this means when C changes along Cox’s direction and other components keep the same ratio, the response Y does not change very much. The effect of component B is between component A and C.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
Watermelon (A), pineapple (B) and orange juice (C) are used for making 3.8 liters of fruit punch. At least 30% of the fruit punch must be watermelon. Therefore the constraints are&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;1.14\le A\le 3.8\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;0\le B\le 3.8\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;0\le C\le 3.8,\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Different blends of the three-juice recipe were evaluated by a panel. A value from 1 (extremely poor) to 9 (very good) is used for the response [John Cornell, page 74]. A {3, 2} simplex lattice design is used with one center point and three axial points. Three replicates were conducted for each ingredient combination. The settings for creating this design in DOE++ is &lt;br /&gt;
 &lt;br /&gt;
[[Image:doe_14.14.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
The generated design in L-pseudocomponent values and the response values from the experiment are&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.15.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
The simplex design point plot is&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.16.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
Main effect and 2-way interactions are included in the regression model. The result for the regression model in terms of L-pseudocomponents is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y=4.81{{x}_{1}}+6.03{{x}_{2}}+6.16{{x}_{3}}+1.13{{x}_{1}}{{x}_{2}}+2.45{{x}_{1}}{{x}_{3}}+1.69{{x}_{2}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The regression information table is&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;8&amp;quot; style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; style=&amp;quot;background:#CCCCCC&amp;quot;| Regression Information&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Term&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Coefficient&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Standard Error&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Low Confidence&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | High Confidence&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | T Value&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | P Value&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Variance Inflation Factor&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | A: Watermelon&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 4.8093&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.3067&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 4.2845&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 5.3340&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.9636&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | B: Pineapple&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 6.0274&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.3067&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 5.5027&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 6.5522&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.9636&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | C: Orange&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 6.1577&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.3067&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 5.6330&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 6.6825&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.9636&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | A • B&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.1253&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.4137&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | -1.2934&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 3.5439&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.7960&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.4339&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.9819&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; A • C &amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 2.4525&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.4137&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.0339&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 4.8712&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.7348&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0956 &amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.9819&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | B • C&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.6889&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.4137&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | -0.7298&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 4.1075&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.1947&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.2439&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.9819&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The result shows that the taste of the fruit punch is significantly affected by the interaction between watermelon and orange. &lt;br /&gt;
&lt;br /&gt;
The ANOVA table is&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;6&amp;quot; style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; style=&amp;quot;background:#CCCCCC&amp;quot;| Anova Table&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Source of Variation&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Degrees of Freedom&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Standard ErrorSum of Squares [Partial]&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Mean Squares [Partial]&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | F Ratio&lt;br /&gt;
| style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | P Value&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Model &amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 5&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 6.5517&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.3103&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 4.3181&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0061 &amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;     Linear &amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 2&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 3.6513&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.8256&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 6.0162&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0076 &amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | A • B&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.1923&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.1923&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.6336&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.4339&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;     A • C &amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.9133&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.9133&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 3.0097&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0956 &amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | B • C&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.4331&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.4331&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.4272&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.2439&lt;br /&gt;
|-&lt;br /&gt;
| Residual&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 24&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 7.2829&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.3035&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt;     Lack of Fit &amp;lt;/span&amp;gt;&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 4&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 4.4563&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 1.1141&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 7.8825&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0006 &amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | Pure Error&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 20&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 2.8267&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 0.1413&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| Total&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 29&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | 13.8347&lt;br /&gt;
| style=&amp;quot;text-align: center;&amp;quot; | &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|} 	 &lt;br /&gt;
&lt;br /&gt;
The simplex contour plot in L-pseudocomponent values is&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.17.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
From this plot we can see that as the amount of watermelon is reduced, the taste of the fruit punch becomes better.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to find the best proportion of each ingredient, the optimization tool in DOE++ can be utilized. Set the settings as&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.18.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
The resulting optimal plot is&lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.19.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
This plot shows that when the amounts for watermelon, pineapple and orange juice are 1.141, 1.299 and 1.359, respectively, the rated taste of the fruit punch is highest.&lt;br /&gt;
&lt;br /&gt;
==Mixture Design with Process Variables==&lt;br /&gt;
&lt;br /&gt;
Process variables often play very important roles in mixture experiments. A simple example is baking a cake. Even with the same ingredients, different baking temperatures and baking times can produce completely different results. In order to study the effect of process variables and find their best settings, we need to consider them when conducting a mixture experiment. &lt;br /&gt;
&lt;br /&gt;
An easy way to do this is to make mixtures with the same ingredients in different combinations of process variables. If all the process variables are independent, then we can plan a regular factorial design for these process variables. By combining these designs with a separated mixture design, the effect of mixture components and effect of process variables can be studied. &lt;br /&gt;
&lt;br /&gt;
For example, a {3, 2} simplex lattice design is used for a mixture with 3 components. Together with the center point, it has total of 7 runs or 7 different ingredient combinations. Assume 2 process variables are potentially important and a two level factorial design is used for them. It has a total of 4 combinations for these 2 process variables. If the 7 different mixtures are made under each of the 4 process variable combinations, then the experiment has a total of 28 runs. This is illustrated in the figure below. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.20.png|500 px|center]]&lt;br /&gt;
&lt;br /&gt;
Of course, if it is possible, all the 28 experiments should be conducted in a random order. &lt;br /&gt;
&lt;br /&gt;
===Model with Process Variables===&lt;br /&gt;
&lt;br /&gt;
In DOE++, regression models including both mixture components and process variables are available. For mixture components, we use L-pseudocomponent values, and for process variables coded values are used. &lt;br /&gt;
&lt;br /&gt;
Assume a design has 3 mixture components and 2 process variables, as illustrated in the above figure. We can use the following models for them. &lt;br /&gt;
&lt;br /&gt;
*For the 3 mixture components, the following special cubic model is used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y={{\beta }_{1}}{{x}_{1}}+{{\beta }_{2}}{{x}_{2}}+{{\beta }_{3}}{{x}_{3}}+{{\beta }_{12}}{{x}_{1}}{{x}_{2}}+{{\beta }_{13}}{{x}_{1}}{{x}_{3}}+{{\beta }_{23}}{{x}_{2}}{{x}_{3}}+{{\beta }_{123}}{{x}_{1}}{{x}_{2}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*For the 2 process variables the following model is used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y={{\alpha }_{0}}+{{\alpha }_{1}}{{z}_{1}}+{{\alpha }_{2}}{{z}_{2}}+{{\alpha }_{12}}{{z}_{1}}{{z}_{2}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The combined model with both mixture components and process variables is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y=\sum\limits_{i=1}^{3}{\gamma _{i}^{0}{{x}_{i}}}+\sum{\sum\limits_{i&amp;lt;j}^{3}{\gamma _{ij}^{0}{{x}_{i}}{{x}_{j}}}+}\gamma _{123}^{0}{{x}_{1}}{{x}_{2}}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; +\left( \sum\limits_{i=1}^{3}{\gamma _{i}^{1}{{x}_{i}}}+\sum{\sum\limits_{i&amp;lt;j}^{3}{\gamma _{ij}^{1}{{x}_{i}}{{x}_{j}}}+}\gamma _{123}^{1}{{x}_{1}}{{x}_{2}}{{x}_{3}} \right){{z}_{1}} \\ &lt;br /&gt;
 &amp;amp; +\left( \sum\limits_{i=1}^{3}{\gamma _{i}^{2}{{x}_{i}}}+\sum{\sum\limits_{i&amp;lt;j}^{3}{\gamma _{ij}^{2}{{x}_{i}}{{x}_{j}}}+}\gamma _{123}^{2}{{x}_{1}}{{x}_{2}}{{x}_{3}} \right){{z}_{2}} \\ &lt;br /&gt;
 &amp;amp; +\left( \sum\limits_{i=1}^{3}{\gamma _{i}^{12}{{x}_{i}}}+\sum{\sum\limits_{i&amp;lt;j}^{3}{\gamma _{ij}^{12}{{x}_{i}}{{x}_{j}}}+}\gamma _{123}^{12}{{x}_{1}}{{x}_{2}}{{x}_{3}} \right){{z}_{1}}{{z}_{2}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above combined model has total of 7x4=28 terms. By expanding it, we get the following model:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y=\gamma _{1}^{0}{{x}_{1}}+\gamma _{2}^{0}{{x}_{2}}+\gamma _{3}^{0}{{x}_{3}}+\gamma _{12}^{0}{{x}_{1}}{{x}_{2}}+\gamma _{13}^{0}{{x}_{1}}{{x}_{3}}+\gamma _{23}^{0}{{x}_{2}}{{x}_{3}}+\gamma _{123}^{0}{{x}_{1}}{{x}_{2}}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; +\gamma _{1}^{1}{{x}_{1}}{{z}_{1}}+\gamma _{2}^{1}{{x}_{2}}{{z}_{1}}+\gamma _{3}^{1}{{x}_{3}}{{z}_{1}}+\gamma _{12}^{1}{{x}_{1}}{{x}_{2}}{{z}_{1}}+\gamma _{13}^{1}{{x}_{1}}{{x}_{3}}{{z}_{1}}+\gamma _{23}^{1}{{x}_{2}}{{x}_{3}}{{z}_{1}}+\gamma _{123}^{1}{{x}_{1}}{{x}_{2}}{{x}_{3}}{{z}_{1}} \\ &lt;br /&gt;
 &amp;amp; +\gamma _{1}^{2}{{x}_{1}}{{z}_{2}}+\gamma _{2}^{2}{{x}_{2}}{{z}_{2}}+\gamma _{3}^{2}{{x}_{3}}{{z}_{2}}+\gamma _{12}^{2}{{x}_{1}}{{x}_{2}}{{z}_{2}}+\gamma _{13}^{2}{{x}_{1}}{{x}_{3}}{{z}_{2}}+\gamma _{23}^{2}{{x}_{2}}{{x}_{3}}{{z}_{2}}+\gamma _{123}^{2}{{x}_{1}}{{x}_{2}}{{x}_{3}}{{z}_{2}} \\ &lt;br /&gt;
 &amp;amp; +\gamma _{1}^{12}{{x}_{1}}{{z}_{1}}{{z}_{2}}+\gamma _{2}^{12}{{x}_{2}}{{z}_{1}}{{z}_{2}}+\gamma _{3}^{12}{{x}_{3}}{{z}_{1}}{{z}_{2}}+\gamma _{12}^{12}{{x}_{1}}{{x}_{2}}{{z}_{1}}{{z}_{2}}+\gamma _{13}^{12}{{x}_{1}}{{x}_{3}}{{z}_{1}}{{z}_{2}}+\gamma _{23}^{12}{{x}_{2}}{{x}_{3}}{{z}_{1}}{{z}_{2}}+\gamma _{123}^{12}{{x}_{1}}{{x}_{2}}{{x}_{3}}{{z}_{1}}{{z}_{2}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The combined model basically crosses every term in the mixture components model with every term in the process variables model. From a mathematical point of view, this model is just a regular regression model. Therefore, the traditional regression analysis method can still be used for obtaining the model coefficients and calculating the ANOVA table.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
Three kinds of meats (beef, pork and lamb) are mixed together to form burger patties. The meat comprises 90% of the total mixture, with the remaining 10% reserved for flavoring ingredients. A {3, 2} simplex design with the center point is used for the experiment. The design has 7 meat combinations, which are given below using L-pseudocomponent values. &lt;br /&gt;
	&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
!A: Beef&lt;br /&gt;
!B: Pork&lt;br /&gt;
!C: Lamb&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|1||style=&amp;quot;text-align: center&amp;quot;|	0||style=&amp;quot;text-align: center&amp;quot;|	0&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|0.5||style=&amp;quot;text-align: center&amp;quot;|	0.5||style=&amp;quot;text-align: center&amp;quot;|	0&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|0.5||style=&amp;quot;text-align: center&amp;quot;|	0||style=&amp;quot;text-align: center&amp;quot;|	0.5&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|0||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|0||style=&amp;quot;text-align: center&amp;quot;|	0.5||style=&amp;quot;text-align: center&amp;quot;|	0.5&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|0||style=&amp;quot;text-align: center&amp;quot;|	0||style=&amp;quot;text-align: center&amp;quot;|	1&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|0.333333||style=&amp;quot;text-align: center&amp;quot;|	0.333333||style=&amp;quot;text-align: center&amp;quot;|	0.333333&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Two process variables on making the patties are also studied: cooking temperature and cooking time. The low and high temperature values are 375°F and 425°F, and the low and high time values are 25 and 40 minutes. A two level full factorial design is used and displayed below with coded values. &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot; style=&amp;quot;text-align:center&amp;quot; &lt;br /&gt;
!Temperature&lt;br /&gt;
!Time&lt;br /&gt;
|-&lt;br /&gt;
|	-1||	-1&lt;br /&gt;
|-&lt;br /&gt;
|	-1||	1&lt;br /&gt;
|-&lt;br /&gt;
|	1||	-1&lt;br /&gt;
|-&lt;br /&gt;
|	1||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
One of the properties of the burger patties is texture. The texture is measured by a compression test that measures the grams of force required to puncture the surface of the patty. &lt;br /&gt;
&lt;br /&gt;
Combining the simplex design and the factorial design together, we get the following 28 runs. The corresponding texture reading for each blend is also provided. &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot; style=&amp;quot;text-align:center&amp;quot; &lt;br /&gt;
!Standard Order&lt;br /&gt;
!A: Beef&lt;br /&gt;
!B: Pork&lt;br /&gt;
!C: Lamb&lt;br /&gt;
!Z1: Temperature&lt;br /&gt;
!Z2: Time&lt;br /&gt;
!Texture (&amp;lt;math&amp;gt;10^3\,\!&amp;lt;/math&amp;gt; gram)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	0||	0||	-1||	-1||	1.84&lt;br /&gt;
|-&lt;br /&gt;
|2||	0.5||	0.5||	0||	-1||	-1||	0.67&lt;br /&gt;
|-&lt;br /&gt;
|3||	0.5||	0||	0.5||	-1||	-1||	1.51&lt;br /&gt;
|-&lt;br /&gt;
|4||	0||	1||	0||	-1||	-1||	1.29&lt;br /&gt;
|-&lt;br /&gt;
|5||	0||	0.5||	0.5||	-1||	-1||	1.42&lt;br /&gt;
|-&lt;br /&gt;
|6||	0||	0||	1||	-1||	-1||	1.16&lt;br /&gt;
|-&lt;br /&gt;
|7||	0.333||	0.333||	0.333||	-1||	-1||	1.59&lt;br /&gt;
|-&lt;br /&gt;
|8||	1||	0||	0||	1||	-1||	2.86&lt;br /&gt;
|-&lt;br /&gt;
|9||	0.5||	0.5||	0||	1||	-1||	1.1&lt;br /&gt;
|-&lt;br /&gt;
|10||	0.5||	0||	0.5||	1||	-1||	1.6&lt;br /&gt;
|-&lt;br /&gt;
|11||	0||	1||	0||	1||	-1||	1.53&lt;br /&gt;
|-&lt;br /&gt;
|12||	0||	0.5||	0.5||	1||	-1||	1.81&lt;br /&gt;
|-&lt;br /&gt;
|13||	0||	0||	1||	1||	-1||	1.5&lt;br /&gt;
|-&lt;br /&gt;
|14||	0.333||	0.333||	0.333||	1||	-1||	1.68&lt;br /&gt;
|-&lt;br /&gt;
|15||	1||	0||	0||	-1||	1||	3.01&lt;br /&gt;
|-&lt;br /&gt;
|16||	0.5||	0.5||	0||	-1||	1||	1.21&lt;br /&gt;
|-&lt;br /&gt;
|17||	0.5||	0||	0.5||	-1||	1||	2.32&lt;br /&gt;
|-&lt;br /&gt;
|18||	0||	1||	0||	-1||	1||	1.93&lt;br /&gt;
|-&lt;br /&gt;
|19||	0||	0.5||	0.5||	-1||	1||	2.57&lt;br /&gt;
|-&lt;br /&gt;
|20||	0||	0||	1||	-1||	1||	1.83&lt;br /&gt;
|-&lt;br /&gt;
|21||	0.333||	0.3333||	0.333||	-1||	1||	1.94&lt;br /&gt;
|-&lt;br /&gt;
|22||	1||	0||	0||	1||	1||	4.13&lt;br /&gt;
|-&lt;br /&gt;
|23||	0.5||	0.5||	0||	1||	1||	1.67&lt;br /&gt;
|-&lt;br /&gt;
|24||	0.5||	0||	0.5||	1||	1||	2.57&lt;br /&gt;
|-&lt;br /&gt;
|25||	0||	1||	0||	1||	1||	2.26&lt;br /&gt;
|-&lt;br /&gt;
|26||	0||	0.5||	0.5||	1||	1||	3.15&lt;br /&gt;
|-&lt;br /&gt;
|27||	0||	0||	1||	1||	1||	2.22&lt;br /&gt;
|-&lt;br /&gt;
|28||	0.333||	0.333||	0.333||	1||	1||	2.6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Using a quadratic model for the mixture component and a 2-way interaction model for the process variables, we get the following results. &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot; style=&amp;quot;text-align:center&amp;quot;  &lt;br /&gt;
!Term&lt;br /&gt;
!Coefficient&lt;br /&gt;
!Standard Error&lt;br /&gt;
!T Value&lt;br /&gt;
!P Value&lt;br /&gt;
!Variance Inflation Factor&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; A:Beef &amp;lt;/span&amp;gt;|| 2.9421|| 	0.1236|| 	*|| 	*|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; B:Pork &amp;lt;/span&amp;gt;|| 	1.7346|| 	0.1236|| 	*|| 	*|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; C:Lamb &amp;lt;/span&amp;gt;|| 	1.6596|| 	0.1236|| 	*|| 	*|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; A • B &amp;lt;/span&amp;gt;|| 	-4.4170|| 	0.5680|| 	-7.7766|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0015 &amp;lt;/span&amp;gt;|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|A • C|| 	-0.9170|| 	0.5680|| 	-1.6146|| 	0.1817|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; B • C &amp;lt;/span&amp;gt;|| 	2.4480|| 	0.5680|| 	4.3099|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0125 &amp;lt;/span&amp;gt;|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z1 • A &amp;lt;/span&amp;gt;|| 	0.5324|| 	0.1236|| 	4.3084|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0126 &amp;lt;/span&amp;gt;|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • B|| 	0.1399|| 	0.1236|| 	1.1319|| 	0.3209|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • C|| 	0.1799|| 	0.1236|| 	1.4557|| 	0.2192|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • A • B|| 	-0.4123|| 	0.5680|| 	-0.7260|| 	0.5081|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • A • C|| 	-1.0423|| 	0.5680|| 	-1.8352|| 	0.1404|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • B • C|| 	0.3727|| 	0.5680|| 	0.6561|| 	0.5476|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • A &amp;lt;/span&amp;gt;|| 	0.6193|| 	0.1236|| 	5.0117|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0074 &amp;lt;/span&amp;gt;|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • B &amp;lt;/span&amp;gt;|| 	0.3518|| 	0.1236|| 	2.8468|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0465 &amp;lt;/span&amp;gt;|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • C &amp;lt;/span&amp;gt;|| 	0.3568|| 	0.1236|| 	2.8873|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0447 &amp;lt;/span&amp;gt;|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|Z2 • A • B|| 	-0.9802|| 	0.5680|| 	-1.7258|| 	0.1595|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|Z2 • A • C|| 	-0.3202|| 	0.5680|| 	-0.5638|| 	0.6030|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|Z2 • B • C|| 	0.9248|| 	0.5680|| 	1.6282|| 	0.1788|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • Z2 • A|| 	0.0177|| 	0.1236|| 	0.1433|| 	0.8930|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • Z2 • B|| 	0.0152|| 	0.1236|| 	0.1231|| 	0.9080|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • Z2 • C|| 	0.0052|| 	0.1236|| 	0.0422|| 	0.9684|| 	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • Z2 • A • B|| 	0.0808|| 	0.5680|| 	0.1423|| 	0.8937|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • Z2 • A • C|| 	0.2308|| 	0.5680|| 	0.4064|| 	0.7052|| 	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|Z1 • Z2 • B • C|| 	0.2658|| 	0.5680|| 	0.4680|| 	0.6641|| 	1.5695&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The above table shows that all the terms with &amp;lt;math&amp;gt;{{z}_{1}}\times {{z}_{2}}\,\!&amp;lt;/math&amp;gt; have very large P values, therefore, we can remove these terms from the model. We can also remove other terms with P values larger than 0.5. After recalculating with the desired terms, the final results are&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot; style=&amp;quot;text-align:center&amp;quot; &lt;br /&gt;
!Term&lt;br /&gt;
!Coefficient&lt;br /&gt;
!Standard Error&lt;br /&gt;
!T Value&lt;br /&gt;
!P Value&lt;br /&gt;
!Variance Inflation Factor&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; A:Beef &amp;lt;/span&amp;gt;||	2.9421||	0.0875||	*||	*||	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; B:Pork &amp;lt;/span&amp;gt;||	1.7346||	0.0875||	*||	*||	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; C:Lamb &amp;lt;/span&amp;gt;||	1.6596||	0.0875||	*||	*||	1.5989&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; A • B &amp;lt;/span&amp;gt;||	-4.4170||	0.4023||	-10.9782|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 6.0305E-08 &amp;lt;/span&amp;gt;||	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; A • C &amp;lt;/span&amp;gt;||	-0.9170||	0.4023||	-2.2792|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0402 &amp;lt;/span&amp;gt;||	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; B • C &amp;lt;/span&amp;gt;||	2.4480||	0.4023||	6.0842|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 3.8782E-05 &amp;lt;/span&amp;gt;||	1.5695&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z1 • A &amp;lt;/span&amp;gt;||	0.4916||	0.0799||	6.1531|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 3.4705E-05 &amp;lt;/span&amp;gt;||	1.3321&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z1 • B &amp;lt;/span&amp;gt;||	0.1365||	0.0725||	1.8830|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0823 &amp;lt;/span&amp;gt;||	1.0971&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z1 • C &amp;lt;/span&amp;gt;||	0.2176||	0.0799||	2.7235|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0174 &amp;lt;/span&amp;gt;||	1.3321&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z1 • A • C &amp;lt;/span&amp;gt;||	-1.0406||	0.4015||	-2.5916|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0224 &amp;lt;/span&amp;gt;||	1.5631&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • A &amp;lt;/span&amp;gt;||	0.5910||	0.0800||	7.3859|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 5.3010E-06 &amp;lt;/span&amp;gt;||	1.3364&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • B &amp;lt;/span&amp;gt;||	0.3541||	0.0875||	4.0475|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0014 &amp;lt;/span&amp;gt;||	1.5971&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • C &amp;lt;/span&amp;gt;||	0.3285||	0.0800||	4.1056|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0012 &amp;lt;/span&amp;gt;||	1.3364&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • A • B &amp;lt;/span&amp;gt;||	-0.9654||	0.4019||	-2.4020|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0320 &amp;lt;/span&amp;gt;||	1.5661&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; Z2 • B • C &amp;lt;/span&amp;gt;||	0.9396||	0.4019||	2.3378|| &amp;lt;span style=&amp;quot;color:red;&amp;quot;&amp;gt; 0.0360 &amp;lt;/span&amp;gt;||	1.5661&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The regression model is&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; y=2.9421{{x}_{1}}+1.7346{{x}_{2}}+1.6596{{x}_{3}}-4.4170{{x}_{1}}{{x}_{2}}-0.9170{{x}_{1}}{{x}_{3}}+2.4480{{x}_{2}}{{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; +0.4916{{x}_{1}}{{z}_{1}}+0.1365{{x}_{2}}{{z}_{1}}+0.2176{{x}_{3}}{{z}_{1}}-1.0406{{x}_{1}}{{x}_{3}}{{z}_{1}}+0.5910{{x}_{1}}{{z}_{2}} \\ &lt;br /&gt;
 &amp;amp; +0.3541{{x}_{2}}{{z}_{2}}+0.3285{{x}_{3}}{{z}_{2}}-0.9654{{x}_{1}}{{x}_{2}}{{z}_{2}}+0.9396{{x}_{2}}{{x}_{3}}{{z}_{2}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ANOVA table for this model is&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; align=&amp;quot;center&amp;quot;  &lt;br /&gt;
! colspan=&amp;quot;6&amp;quot; style=&amp;quot;background: #CCCCCC;&amp;quot;|ANOVA Table&lt;br /&gt;
|-&lt;br /&gt;
!Source of Variation||Degrees of Freedom||Sum of Squares [Partial]||	Mean Squares [Partial]||	F Ratio||	P Value&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Model&amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	14||style=&amp;quot;text-align: center&amp;quot;|	14.5066||style=&amp;quot;text-align: center&amp;quot;|	1.0362||	style=&amp;quot;text-align: center&amp;quot;|33.5558||style=&amp;quot;text-align: center&amp;quot;|	6.8938E-08&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|Component Only	 || || || || ||	 	 	 	 &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Linear &amp;lt;/span&amp;gt; ||style=&amp;quot;text-align: center&amp;quot;|	2||style=&amp;quot;text-align: center&amp;quot;|	4.1446||style=&amp;quot;text-align: center&amp;quot;|	2.0723||style=&amp;quot;text-align: center&amp;quot;|	67.1102||style=&amp;quot;text-align: center&amp;quot;|	1.4088E-07&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; A • B &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	3.7216||style=&amp;quot;text-align: center&amp;quot;|	3.7216||style=&amp;quot;text-align: center&amp;quot;|	120.5208||style=&amp;quot;text-align: center&amp;quot;|	6.0305E-08&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; A • C &amp;lt;/span&amp;gt; ||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.1604||style=&amp;quot;text-align: center&amp;quot;|	0.1604||style=&amp;quot;text-align: center&amp;quot;|	5.1949||style=&amp;quot;text-align: center&amp;quot;|	0.0402&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; B • C &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	1.1431||style=&amp;quot;text-align: center&amp;quot;|	1.1431||style=&amp;quot;text-align: center&amp;quot;|	37.0173	||style=&amp;quot;text-align: center&amp;quot;|3.8782E-05&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|Component  •  Z1||	 || || || ||	 	 	 	 &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;| &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z1 • A &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|1||style=&amp;quot;text-align: center&amp;quot;|	1.1691||style=&amp;quot;text-align: center&amp;quot;|	1.1691||style=&amp;quot;text-align: center&amp;quot;|	37.8604||style=&amp;quot;text-align: center&amp;quot;|	3.4705E-05&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z1 • B &amp;lt;/span&amp;gt; ||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.1095||style=&amp;quot;text-align: center&amp;quot;|	0.1095||style=&amp;quot;text-align: center&amp;quot;|	3.5456||style=&amp;quot;text-align: center&amp;quot;|	0.0823&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z1 • C &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.2290||style=&amp;quot;text-align: center&amp;quot;|	0.2290||style=&amp;quot;text-align: center&amp;quot;|	7.4172||style=&amp;quot;text-align: center&amp;quot;|	0.0174&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z1 • A • C &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.2074||style=&amp;quot;text-align: center&amp;quot;|	0.2074||style=&amp;quot;text-align: center&amp;quot;|	6.7165||style=&amp;quot;text-align: center&amp;quot;|	0.0224&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|Component  •  Z2|| || || || ||	 	 	 	 	 &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z2 • A &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	1.6845||style=&amp;quot;text-align: center&amp;quot;|	1.6845||	style=&amp;quot;text-align: center&amp;quot;|54.5517||style=&amp;quot;text-align: center&amp;quot;|	5.3010E-06&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z2 • B &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.5059||style=&amp;quot;text-align: center&amp;quot;|	0.5059||style=&amp;quot;text-align: center&amp;quot;|	16.3819||style=&amp;quot;text-align: center&amp;quot;|	0.0014&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z2 • C &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.5205||style=&amp;quot;text-align: center&amp;quot;|	0.5205||style=&amp;quot;text-align: center&amp;quot;|	16.8556||style=&amp;quot;text-align: center&amp;quot;|	0.0012&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z2 • A • B &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.1782||style=&amp;quot;text-align: center&amp;quot;|	0.1782||style=&amp;quot;text-align: center&amp;quot;|	5.7698||style=&amp;quot;text-align: center&amp;quot;|	0.0320&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right&amp;quot;|&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt; Z2 • B • C &amp;lt;/span&amp;gt;||style=&amp;quot;text-align: center&amp;quot;|	1||style=&amp;quot;text-align: center&amp;quot;|	0.1688||style=&amp;quot;text-align: center&amp;quot;|	0.1688||style=&amp;quot;text-align: center&amp;quot;|	5.4651||style=&amp;quot;text-align: center&amp;quot;|	0.0360&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: left&amp;quot;|Residual ||style=&amp;quot;text-align: center&amp;quot;|	13||style=&amp;quot;text-align: center&amp;quot;|	0.4014||style=&amp;quot;text-align: center&amp;quot;|	0.0309|| ||	 	 &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: center&amp;quot;|Lack of Fit||style=&amp;quot;text-align: center&amp;quot;|	13||style=&amp;quot;text-align: center&amp;quot;|	0.4014||style=&amp;quot;text-align: center&amp;quot;|	0.0309	 ||	|| &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: left&amp;quot;|Total||style=&amp;quot;text-align: center&amp;quot;|	27||style=&amp;quot;text-align: center&amp;quot;|	14.9080|| || || 	 	 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The above table shows both process factors have significant effects on the texture of the patties. Since the model is pretty complicate, the best settings for the process variables and for components cannot be easily identified. &lt;br /&gt;
&lt;br /&gt;
The optimization tool in DOE++ is used for the above model. The target texture value is &amp;lt;math&amp;gt;3\times {{10}^{3}}\,\!&amp;lt;/math&amp;gt; grams with an acceptable range of &amp;lt;math&amp;gt;2.5-3.5\times {{10}^{3}}\,\!&amp;lt;/math&amp;gt; grams. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe_14.21.png|600 px|center]]&lt;br /&gt;
&lt;br /&gt;
The optimal solution is Beef = 98.5%, Pork = 0.7%, Lamb = 0.7%, Temperature = 375.7, and Time = 40.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
1.	Cornell, John (2002), Experiments with Mixtures: Designs, Models, and the Analysis of Mixture Data, John Wiley &amp;amp; Sons, Inc. New York.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
2.	Piepel, G. F. (1983), “Defining consistent constraint regions in mixture experiments,” Technometrics, Vol. 25, pp. 97-101. &lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
3.	Snee, R. D. (1979), “Experimental designs for mixture systems with multiple component constraints,” Communications in Statistics, Theory and Methods, Bol. A8, pp. 303-326.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Two_Level_Factorial_Experiments&amp;diff=62025</id>
		<title>Two Level Factorial Experiments</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Two_Level_Factorial_Experiments&amp;diff=62025"/>
		<updated>2015-12-15T16:07:57Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Design Resolution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Doebook|8}}&lt;br /&gt;
Two level factorial experiments are factorial experiments in which each factor is investigated at only two levels. The early stages of experimentation usually involve the investigation of a large number of potential factors to discover the &amp;quot;vital few&amp;quot; factors. Two level factorial experiments are used during these stages to quickly filter out unwanted effects so that attention can then be focused on the important ones.&lt;br /&gt;
&lt;br /&gt;
==2&amp;lt;sup&amp;gt;&#039;&#039;k&#039;&#039;&amp;lt;/sup&amp;gt; Designs==&lt;br /&gt;
The factorial experiments, where all combination of the levels of the factors are run, are usually referred to as &#039;&#039;full factorial experiments&#039;&#039;. Full factorial two level experiments are also referred to as &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs where &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; denotes the number of factors being investigated in the experiment. In DOE++, these designs are referred to as 2 Level Factorial Designs as shown in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_1.png|thumb|center|487px|Selection of full factorial experiments with two levels in DOE++.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A full factorial two level design with &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; factors requires &amp;lt;math&amp;gt;{{2}^{k}}\,\!&amp;lt;/math&amp;gt; runs for a single replicate. For example, a two level experiment with three factors will require &amp;lt;math&amp;gt;2\times 2\times 2={{2}^{3}}=8\,\!&amp;lt;/math&amp;gt; runs. The choice of the two levels of factors used in two level experiments depends on the factor; some factors naturally have two levels. For example, if gender is a factor, then male and female are the two levels. For other factors, the limits of the range of interest are usually used. For example, if temperature is a factor that varies from &amp;lt;math&amp;gt;{45}^{o}C\,\!&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;{90}^{o}C\,\!&amp;lt;/math&amp;gt;, then the two levels used in the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design for this factor would be &amp;lt;math&amp;gt;{45}^{o}\,\!C\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{90}^{o}\,\!C\,\!&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The two levels of the factor in the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design are usually represented as &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt; (for the first level) and &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt; (for the second level). Note that this representation is reversed from the coding used in [[General Full Factorial Designs]] for the indicator variables that represent two level factors in ANOVA models. For ANOVA models, the first level of the factor was represented using a value of &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt; for the indicator variable, while the second level was represented using a value of &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt;. For details on the notation used for two level experiments refer to [[Two_Level_Factorial_Experiments#Notation| Notation]].&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
===The 2&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; Design===&lt;br /&gt;
&lt;br /&gt;
The simplest of the two level factorial experiments is the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design where two factors (say factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;) are investigated at two levels. A single replicate of this design will require four runs (&amp;lt;math&amp;gt;{{2}^{2}}=2\times 2=4\,\!&amp;lt;/math&amp;gt;) The effects investigated by this design are the two main effects, &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B,\,\!&amp;lt;/math&amp;gt; and the interaction effect &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;. The treatments for this design are shown in figure (a) below. In figure (a), letters are used to represent the treatments. The presence of a letter indicates the high level of the corresponding factor and the absence indicates the low level. For example, (1) represents the treatment combination where all factors involved are at the low level or the level represented by &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt; ; &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt; represents the treatment combination where factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is at the high level or the level of &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt;, while the remaining factors (in this case, factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;) are at the low level or the level of &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt;. Similarly, &amp;lt;math&amp;gt;b\,\!&amp;lt;/math&amp;gt; represents the treatment combination where factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; is at the high level or the level of &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt;, while factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is at the low level and &amp;lt;math&amp;gt;ab\,\!&amp;lt;/math&amp;gt; represents the treatment combination where factors &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; are at the high level or the level of the 1. Figure (b) below shows the design matrix for the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design. It can be noted that the sum of the terms resulting from the product of any two columns of the design matrix is zero. As a result the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design is an &#039;&#039;orthogonal design&#039;&#039;. In fact, all &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs are orthogonal designs. This property of the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs offers a great advantage in the analysis because of the simplifications that result from orthogonality. These simplifications are explained later on in this chapter.&lt;br /&gt;
The &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design can also be represented geometrically using a square with the four treatment combinations lying at the four corners, as shown in figure (c) below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.2.png|thumb|center|400px|The &amp;lt;math&amp;gt;2^2\,\!&amp;lt;/math&amp;gt; design. Figure (a) displays the experiment design, (b) displays the design matrix and (c) displays the geometric representation for the design. In Figure (b), the column names I, A, B and AB are used. Column I represents the intercept term. Columns A and B represent the respective factor settings. Column AB represents the interaction and is the product of columns A and B.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The 2&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; Design===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design is a two level factorial experiment design with three factors (say factors &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;). This design tests three (&amp;lt;math&amp;gt;k=3\,\!&amp;lt;/math&amp;gt;) main effects, &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; ; three (&amp;lt;math&amp;gt;(_{2}^{k})=\,\!&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;(_{2}^{3})=3\,\!&amp;lt;/math&amp;gt;) two factor interaction effects, &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; ; and one (&amp;lt;math&amp;gt;(_{3}^{k})=\,\!&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;(_{3}^{3})=1\,\!&amp;lt;/math&amp;gt;) three factor interaction effect, &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt;. The design requires eight runs per replicate. The eight treatment combinations corresponding to these runs are &amp;lt;math&amp;gt;(1)\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;ab\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;ac\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;bc\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;abc\,\!&amp;lt;/math&amp;gt;. Note that the treatment combinations are written in such an order that factors are introduced one by one with each new factor being combined with the preceding terms. This order of writing the treatments is called the &#039;&#039;standard order&#039;&#039; or &#039;&#039;Yates&#039; order&#039;&#039;. The &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design is shown in figure (a) below. The design matrix for the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design is shown in figure (b). The design matrix can be constructed by following the standard order for the treatment combinations to obtain the columns for the main effects and then multiplying the main effects columns to obtain the interaction columns. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.3.png|thumb|center|324px|The &amp;lt;math&amp;gt;2^3\,\!&amp;lt;/math&amp;gt; design. Figure (a) shows the experiment design and (b) shows the design matrix.]]&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.4.png|thumb|center|290px|Geometric representation of the &amp;lt;math&amp;gt;2^3\,\!&amp;lt;/math&amp;gt; design.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design can also be represented geometrically using a cube with the eight treatment combinations lying at the eight corners as shown in the figure above.&lt;br /&gt;
&lt;br /&gt;
==Analysis of 2&amp;lt;sup&amp;gt;&#039;&#039;k&#039;&#039;&amp;lt;/sup&amp;gt; Designs==&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs are a special category of the factorial experiments where all the factors are at two levels. The fact that these designs contain factors at only two levels and are orthogonal greatly simplifies their analysis even when the number of factors is large. The use of &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs in investigating a large number of factors calls for a revision of the notation used previously for the ANOVA models. The case for revised notation is made stronger by the fact that the ANOVA and multiple linear regression models are identical for &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs because all factors are only at two levels. Therefore, the notation of the regression models is applied to the ANOVA models for these designs, as explained next.&lt;br /&gt;
&lt;br /&gt;
===Notation===&lt;br /&gt;
&lt;br /&gt;
Based on the notation used in [[General Full Factorial Designs]], the ANOVA model for a two level factorial experiment with three factors would be as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; Y= &amp;amp; \mu +{{\tau }_{1}}\cdot {{x}_{1}}+{{\delta }_{1}}\cdot {{x}_{2}}+{{(\tau \delta )}_{11}}\cdot {{x}_{1}}{{x}_{2}}+{{\gamma }_{1}}\cdot {{x}_{3}} \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; +{{(\tau \gamma )}_{11}}\cdot {{x}_{1}}{{x}_{3}}+{{(\delta \gamma )}_{11}}\cdot {{x}_{2}}{{x}_{3}}+{{(\tau \delta \gamma )}_{111}}\cdot {{x}_{1}}{{x}_{2}}{{x}_{3}}+\epsilon   &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:•	 &amp;lt;math&amp;gt;\mu \,\!&amp;lt;/math&amp;gt; represents the overall mean&lt;br /&gt;
:•	 &amp;lt;math&amp;gt;{{\tau }_{1}}\,\!&amp;lt;/math&amp;gt; represents the independent effect of the first factor (factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;) out of the two effects &amp;lt;math&amp;gt;{{\tau }_{1}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{\tau }_{2}}\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
:•	 &amp;lt;math&amp;gt;{{\delta }_{1}}\,\!&amp;lt;/math&amp;gt; represents the independent effect of the second factor (factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;) out of the two effects &amp;lt;math&amp;gt;{{\delta }_{1}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{\delta }_{2}}\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
:•	 &amp;lt;math&amp;gt;{{(\tau \delta )}_{11}}\,\!&amp;lt;/math&amp;gt; represents the independent effect of the interaction &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; out of the other interaction effects&lt;br /&gt;
:•	 &amp;lt;math&amp;gt;{{\gamma }_{1}}\,\!&amp;lt;/math&amp;gt; represents the effect of the third factor (factor &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;) out of the two effects &amp;lt;math&amp;gt;{{\gamma }_{1}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{\gamma }_{2}}\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
:•	 &amp;lt;math&amp;gt;{{(\tau \gamma )}_{11}}\,\!&amp;lt;/math&amp;gt; represents the effect of the interaction &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; out of the other interaction effects&lt;br /&gt;
:•	 &amp;lt;math&amp;gt;{{(\delta \gamma )}_{11}}\,\!&amp;lt;/math&amp;gt; represents the effect of the interaction &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt; out of the other interaction effects&lt;br /&gt;
:•	 &amp;lt;math&amp;gt;{{(\tau \delta \gamma )}_{111}}\,\!&amp;lt;/math&amp;gt; represents the effect of the interaction &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; out of the other interaction effects&lt;br /&gt;
and &amp;lt;math&amp;gt;\epsilon \,\!&amp;lt;/math&amp;gt; is the random error term.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The notation for a linear regression model having three predictor variables with interactions is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; Y= &amp;amp; {{\beta }_{0}}+{{\beta }_{1}}\cdot {{x}_{1}}+{{\beta }_{2}}\cdot {{x}_{2}}+{{\beta }_{12}}\cdot {{x}_{1}}{{x}_{2}}+{{\beta }_{3}}\cdot {{x}_{3}} \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; +{{\beta }_{13}}\cdot {{x}_{1}}{{x}_{3}}+{{\beta }_{23}}\cdot {{x}_{2}}{{x}_{3}}+{{\beta }_{123}}\cdot {{x}_{1}}{{x}_{2}}{{x}_{3}}+\epsilon   &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The notation for the regression model is much more convenient, especially for the case when a large number of higher order interactions are present. In two level experiments, the ANOVA model requires only one indicator variable to represent each factor for both qualitative and quantitative factors. Therefore, the notation for the multiple linear regression model can be applied to the ANOVA model of the experiment that has all the factors at two levels. For example, for the experiment of the ANOVA model given above, &amp;lt;math&amp;gt;{{\beta }_{0}}\,\!&amp;lt;/math&amp;gt; can represent the overall mean instead of &amp;lt;math&amp;gt;\mu \,\!&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;{{\beta }_{1}}\,\!&amp;lt;/math&amp;gt; can represent the independent effect, &amp;lt;math&amp;gt;{{\tau }_{1}}\,\!&amp;lt;/math&amp;gt;, of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;. Other main effects can be represented in a similar manner. The notation for the interaction effects is much more simplified (e.g., &amp;lt;math&amp;gt;{{\beta }_{123}}\,\!&amp;lt;/math&amp;gt; can be used to represent the three factor interaction effect, &amp;lt;math&amp;gt;{{(\tau \beta \gamma )}_{111}}\,\!&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
As mentioned earlier, it is important to note that the coding for the indicator variables for the ANOVA models of two level factorial experiments is reversed from the coding followed in [[General Full Factorial Designs]]. Here &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt; represents the first level of the factor while &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt; represents the second level. This is because for a two level factor a single variable is needed to represent the factor for both qualitative and quantitative factors. For quantitative factors, using &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt; for the first level (which is the low level) and 1 for the second level (which is the high level) keeps the coding consistent with the numerical value of the factors. The change in coding between the two coding schemes does not affect the analysis except that signs of the estimated effect coefficients will be reversed (i.e., numerical values of &amp;lt;math&amp;gt;{{\hat{\tau }}_{1}}\,\!&amp;lt;/math&amp;gt;, obtained based on the coding of [[General Full Factorial Designs]], and &amp;lt;math&amp;gt;{{\hat{\beta }}_{1}}\,\!&amp;lt;/math&amp;gt;, obtained based on the new coding, will be the same but their signs would be opposite).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp;  &amp;amp; \text{Factor }A\text{ Coding (two level factor)} \\ &lt;br /&gt;
 &amp;amp;  &amp;amp;   &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{matrix}&lt;br /&gt;
   \text{Previous Coding} &amp;amp; {} &amp;amp; {} &amp;amp; {} &amp;amp; \text{Coding for }{{\text{2}}^{k}}\text{ Designs}  \\&lt;br /&gt;
   {} &amp;amp; {} &amp;amp; {} &amp;amp; {} &amp;amp; {}  \\&lt;br /&gt;
   Effect\text{ }{{\tau }_{1}}\ \ :\ \ {{x}_{1}}=1\text{         } &amp;amp; {} &amp;amp; {} &amp;amp; {} &amp;amp; Effect\text{ }{{\tau }_{1}}\text{ (or }-{{\beta }_{1}}\text{)}\ \ :\ \ {{x}_{1}}=-1\text{         }  \\&lt;br /&gt;
   Effect\text{ }{{\tau }_{2}}\ \ :\ \ {{x}_{1}}=-1\text{         } &amp;amp; {} &amp;amp; {} &amp;amp; {} &amp;amp; Effect\text{ }{{\tau }_{2}}\text{ (or }{{\beta }_{1}}\text{)}\ \ :\ \ {{x}_{1}}=1\text{         }  \\&lt;br /&gt;
\end{matrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In summary, the ANOVA model for the experiments with all factors at two levels is different from the ANOVA models for other experiments in terms of the notation in the following two ways:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:•	The notation of the regression models is used for the effect coefficients.&lt;br /&gt;
:•	The coding of the indicator variables is reversed.&lt;br /&gt;
&lt;br /&gt;
===Special Features===&lt;br /&gt;
&lt;br /&gt;
Consider the design matrix, &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt;, for the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design discussed above. The (&amp;lt;math&amp;gt;{{X}^{\prime }}X\,\!&amp;lt;/math&amp;gt;) &amp;lt;math&amp;gt;^{-1}\,\!&amp;lt;/math&amp;gt; matrix is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;{{({{X}^{\prime }}X)}^{-1}}=\left[ \begin{matrix}&lt;br /&gt;
   0.125 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   0 &amp;amp; 0.125 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   0 &amp;amp; 0 &amp;amp; 0.125 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0.125 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0.125 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0.125 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0.125 &amp;amp; 0  \\&lt;br /&gt;
   0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0.125  \\&lt;br /&gt;
\end{matrix} \right]\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that, due to the orthogonal design of the &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt; matrix, the &amp;lt;math&amp;gt;{{({{X}^{\prime }}X)}^{-1}}\,\!&amp;lt;/math&amp;gt; has been simplified to a diagonal matrix which can be written as: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
{{({{X}^{\prime }}X)}^{-1}}= &amp;amp; 0.125\cdot I = &amp;amp; \frac{1}{8}\cdot I = &amp;amp; \frac{1}{{{2}^{3}}}\cdot I  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;I\,\!&amp;lt;/math&amp;gt; represents the identity matrix of the same order as the design matrix, &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt;. Since there are eight observations per replicate of the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design, the &amp;lt;math&amp;gt;(X\,\!&amp;lt;/math&amp;gt; &#039; &amp;lt;math&amp;gt;X{{)}^{-1}}\,\!&amp;lt;/math&amp;gt; matrix for &amp;lt;math&amp;gt;m\,\!&amp;lt;/math&amp;gt; replicates of this design can be written as: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{({{X}^{\prime }}X)}^{-1}}=\frac{1}{({{2}^{3}}\cdot m)}\cdot I\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;{{({{X}^{\prime }}X)}^{-1}}\,\!&amp;lt;/math&amp;gt; matrix for any &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design can now be written as: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{({{X}^{\prime }}X)}^{-1}}=\frac{1}{({{2}^{k}}\cdot m)}\cdot I\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the variance-covariance matrix for the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design is: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
C= &amp;amp; {{{\hat{\sigma }}}^{2}}\cdot {{({{X}^{\prime }}X)}^{-1}} = &amp;amp; M{{S}_{E}}\cdot {{({{X}^{\prime }}X)}^{-1}} = &amp;amp; \frac{M{{S}_{E}}}{({{2}^{k}}\cdot m)}\cdot I  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the variance-covariance matrix for the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design is also a diagonal matrix. Therefore, the estimated effect coefficients (&amp;lt;math&amp;gt;{{\beta }_{1}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;{{\beta }_{2}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;{{\beta }_{12}},\,\!&amp;lt;/math&amp;gt; etc.) for these designs are uncorrelated. This implies that the terms in the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design (main effects, interactions) are independent of each other. Consequently, the extra sum of squares for each of the terms in these designs is independent of the sequence of terms in the model, and also independent of the presence of other terms in the model. As a result the sequential and partial sum of squares for the terms are identical for these designs and will always add up to the model sum of squares. Multicollinearity is also not an issue for these designs.&lt;br /&gt;
 &lt;br /&gt;
It can also be noted from the equation given above, that in addition to the &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; matrix being diagonal, all diagonal elements of the &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; matrix are identical. This means that the variance (or its square root, the standard error) of all estimated effect coefficients are the same. The standard error, &amp;lt;math&amp;gt;se({{\hat{\beta }}_{j}})\,\!&amp;lt;/math&amp;gt;, for all the coefficients is: &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
se({{{\hat{\beta }}}_{j}})= &amp;amp; \sqrt{{{C}_{jj}}} = &amp;amp; \sqrt{\frac{M{{S}_{E}}}{({{2}^{k}}\cdot m)}}\text{   }for\text{ }all\text{ }j  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This property is used to construct the normal probability plot of effects in &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs and identify significant effects using graphical techniques.  For details on the normal probability plot of effects in DOE++, refer to [[Two_Level_Factorial_Experiments#Normal_Probability_Plot_of_Effects| Normal Probability Plot of Effects]].&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
To illustrate the analysis of a full factorial &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design, consider a three factor experiment to investigate the effect of honing pressure, number of strokes and cycle time on the surface finish of automobile brake drums. Each of these factors is investigated at two levels. The honing pressure is investigated at levels of 200 &amp;lt;math&amp;gt;psi\,\!&amp;lt;/math&amp;gt; and 400 &amp;lt;math&amp;gt;psi\,\!&amp;lt;/math&amp;gt;, the number of strokes used is 3 and 5 and the two levels of the cycle time are 3 and 5 seconds. The design for this experiment is set up in DOE++ as shown in the first two following figures. It is decided to run two replicates for this experiment. The surface finish data collected from each run (using randomization) and the complete design is shown in the third following figure. The analysis of the experiment data is explained next.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_5.png|thumb|center|887px|Design properties for the experiment in the example.]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_6.png|thumb|center|859px|Design summary for the experiment in the example.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_7.png|thumb|center|850px|Experiment design for the example to investigate the surface finish of automobile brake drums.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The applicable model using the notation for &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs is: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
Y= &amp;amp; {{\beta }_{0}}+{{\beta }_{1}}\cdot {{x}_{1}}+{{\beta }_{2}}\cdot {{x}_{2}}+{{\beta }_{12}}\cdot {{x}_{1}}{{x}_{2}}+{{\beta }_{3}}\cdot {{x}_{3}} \\ &lt;br /&gt;
 &amp;amp; +{{\beta }_{13}}\cdot {{x}_{1}}{{x}_{3}}+{{\beta }_{23}}\cdot {{x}_{2}}{{x}_{3}}+{{\beta }_{123}}\cdot {{x}_{1}}{{x}_{2}}{{x}_{3}}+\epsilon   &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where the indicator variable, &amp;lt;math&amp;gt;{{x}_{1,}}\,\!&amp;lt;/math&amp;gt; represents factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; (honing pressure), &amp;lt;math&amp;gt;{{x}_{1}}=-1\,\!&amp;lt;/math&amp;gt; represents the low level of 200 &amp;lt;math&amp;gt;psi\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{x}_{1}}=1\,\!&amp;lt;/math&amp;gt; represents the high level of 400 &amp;lt;math&amp;gt;psi\,\!&amp;lt;/math&amp;gt;. Similarly, &amp;lt;math&amp;gt;{{x}_{2}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{x}_{3}}\,\!&amp;lt;/math&amp;gt; represent factors &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; (number of strokes) and &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; (cycle time), respectively. &amp;lt;math&amp;gt;{{\beta }_{0}}\,\!&amp;lt;/math&amp;gt; is the overall mean, while &amp;lt;math&amp;gt;{{\beta }_{1}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;{{\beta }_{2}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{\beta }_{3}}\,\!&amp;lt;/math&amp;gt; are the effect coefficients for the main effects of factors &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;, respectively. &amp;lt;math&amp;gt;{{\beta }_{12}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;{{\beta }_{13}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{\beta }_{23}}\,\!&amp;lt;/math&amp;gt; are the effect coefficients for the &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt; interactions, while &amp;lt;math&amp;gt;{{\beta }_{123}}\,\!&amp;lt;/math&amp;gt; represents the &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; interaction.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If the subscripts for the run (&amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; ; &amp;lt;math&amp;gt;i=\,\!&amp;lt;/math&amp;gt; 1 to 8) and replicates (&amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt; ; &amp;lt;math&amp;gt;j=\,\!&amp;lt;/math&amp;gt; 1,2) are included, then the model can be written as: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
{{Y}_{ij}}= &amp;amp; {{\beta }_{0}}+{{\beta }_{1}}\cdot {{x}_{ij1}}+{{\beta }_{2}}\cdot {{x}_{ij2}}+{{\beta }_{12}}\cdot {{x}_{ij1}}{{x}_{ij2}}+{{\beta }_{3}}\cdot {{x}_{ij3}} \\ &lt;br /&gt;
 &amp;amp; +{{\beta }_{13}}\cdot {{x}_{ij1}}{{x}_{ij3}}+{{\beta }_{23}}\cdot {{x}_{ij2}}{{x}_{ij3}}+{{\beta }_{123}}\cdot {{x}_{ij1}}{{x}_{ij2}}{{x}_{ij3}}+{{\epsilon }_{ij}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To investigate how the given factors affect the response, the following hypothesis tests need to be carried: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;{{H}_{0}}\ \ :\ \ {{\beta }_{1}}=0\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;{{H}_{1}}\ \ :\ \ {{\beta }_{1}}\ne 0\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This test investigates the main effect of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; (honing pressure). The statistic for this test is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{({{F}_{0}})}_{A}}=\frac{M{{S}_{A}}}{M{{S}_{E}}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;M{{S}_{A}}\,\!&amp;lt;/math&amp;gt; is the mean square for factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M{{S}_{E}}\,\!&amp;lt;/math&amp;gt; is the error mean square. Hypotheses for the other main effects, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;, can be written in a similar manner. &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;{{H}_{0}}\ \ :\ \ {{\beta }_{12}}=0\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;{{H}_{1}}\ \ :\ \ {{\beta }_{12}}\ne 0\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This test investigates the two factor interaction &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;. The statistic for this test is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{({{F}_{0}})}_{AB}}=\frac{M{{S}_{AB}}}{M{{S}_{E}}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;M{{S}_{AB}}\,\!&amp;lt;/math&amp;gt; is the mean square for the interaction &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M{{S}_{E}}\,\!&amp;lt;/math&amp;gt; is the error mean square. Hypotheses for the other two factor interactions, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt;, can be written in a similar manner. &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;{{H}_{0}}\ \ :\ \ {{\beta }_{123}}=0\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;{{H}_{1}}\ \ :\ \ {{\beta }_{123}}\ne 0\,\!&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
This test investigates the three factor interaction &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt;. The statistic for this test is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{({{F}_{0}})}_{ABC}}=\frac{M{{S}_{ABC}}}{M{{S}_{E}}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;M{{S}_{ABC}}\,\!&amp;lt;/math&amp;gt; is the mean square for the interaction &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;M{{S}_{E}}\,\!&amp;lt;/math&amp;gt; is the error mean square.&lt;br /&gt;
To calculate the test statistics, it is convenient to express the ANOVA model in the form &amp;lt;math&amp;gt;y=X\beta +\epsilon \,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====Expression of the ANOVA Model as &amp;lt;math&amp;gt;y=X\beta +\epsilon \,\!&amp;lt;/math&amp;gt;====&lt;br /&gt;
&lt;br /&gt;
In matrix notation, the ANOVA model can be expressed as: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;y=X\beta +\epsilon \,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;y=\left[ \begin{matrix}&lt;br /&gt;
   {{Y}_{11}}  \\&lt;br /&gt;
   {{Y}_{21}}  \\&lt;br /&gt;
   .  \\&lt;br /&gt;
   {{Y}_{81}}  \\&lt;br /&gt;
   {{Y}_{12}}  \\&lt;br /&gt;
   .  \\&lt;br /&gt;
   {{Y}_{82}}  \\&lt;br /&gt;
\end{matrix} \right]=\left[ \begin{matrix}&lt;br /&gt;
   90  \\&lt;br /&gt;
   90  \\&lt;br /&gt;
   .  \\&lt;br /&gt;
   90  \\&lt;br /&gt;
   86  \\&lt;br /&gt;
   .  \\&lt;br /&gt;
   80  \\&lt;br /&gt;
\end{matrix} \right]\text{     }X=\left[ \begin{matrix}&lt;br /&gt;
   1 &amp;amp; -1 &amp;amp; -1 &amp;amp; 1 &amp;amp; -1 &amp;amp; 1 &amp;amp; 1 &amp;amp; -1  \\&lt;br /&gt;
   1 &amp;amp; 1 &amp;amp; -1 &amp;amp; -1 &amp;amp; -1 &amp;amp; -1 &amp;amp; 1 &amp;amp; 1  \\&lt;br /&gt;
   . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; .  \\&lt;br /&gt;
   1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1  \\&lt;br /&gt;
   1 &amp;amp; -1 &amp;amp; -1 &amp;amp; 1 &amp;amp; -1 &amp;amp; 1 &amp;amp; 1 &amp;amp; -1  \\&lt;br /&gt;
   . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; . &amp;amp; .  \\&lt;br /&gt;
   1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1  \\&lt;br /&gt;
\end{matrix} \right]\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\beta =\left[ \begin{matrix}&lt;br /&gt;
   {{\beta }_{0}}  \\&lt;br /&gt;
   {{\beta }_{1}}  \\&lt;br /&gt;
   {{\beta }_{2}}  \\&lt;br /&gt;
   {{\beta }_{12}}  \\&lt;br /&gt;
   {{\beta }_{3}}  \\&lt;br /&gt;
   {{\beta }_{13}}  \\&lt;br /&gt;
   {{\beta }_{23}}  \\&lt;br /&gt;
   {{\beta }_{123}}  \\&lt;br /&gt;
\end{matrix} \right]\text{     }\epsilon =\left[ \begin{matrix}&lt;br /&gt;
   {{\epsilon }_{11}}  \\&lt;br /&gt;
   {{\epsilon }_{21}}  \\&lt;br /&gt;
   .  \\&lt;br /&gt;
   {{\epsilon }_{81}}  \\&lt;br /&gt;
   {{\epsilon }_{12}}  \\&lt;br /&gt;
   .  \\&lt;br /&gt;
   .  \\&lt;br /&gt;
   {{\epsilon }_{82}}  \\&lt;br /&gt;
\end{matrix} \right]\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
====Calculation of the Extra Sum of Squares for the Factors====&lt;br /&gt;
&lt;br /&gt;
Knowing the matrices &amp;lt;math&amp;gt;y\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\beta \,\!&amp;lt;/math&amp;gt;, the extra sum of squares for the factors can be calculated.  These are used to calculate the mean squares that are used to obtain the test statistics. Since the experiment design is orthogonal, the partial and sequential extra sum of squares are identical. The extra sum of squares for each effect can be calculated as shown next. As an example, the extra sum of squares for the main effect of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
S{{S}_{A}}= &amp;amp; Model\text{ }Sum\text{ }of\text{ }Squares - Sum\text{ }of\text{ }Squares\text{ }of\text{ }model\text{ }excluding\text{ }the\text{ }main\text{ }effect\text{ }of\text{ }A \\ &lt;br /&gt;
= &amp;amp; {{y}^{\prime }}[H-(1/16)J]y-{{y}^{\prime }}[{{H}_{\tilde{\ }A}}-(1/16)J]y  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;H\,\!&amp;lt;/math&amp;gt; is the hat matrix and &amp;lt;math&amp;gt;J\,\!&amp;lt;/math&amp;gt; is the matrix of ones. The matrix &amp;lt;math&amp;gt;{{H}_{\tilde{\ }A}}\,\!&amp;lt;/math&amp;gt; can be calculated using &amp;lt;math&amp;gt;{{H}_{\tilde{\ }A}}={{X}_{\tilde{\ }A}}{{(X_{\tilde{\ }A}^{\prime }{{X}_{\tilde{\ }A}})}^{-1}}X_{\tilde{\ }A}^{\prime }\,\!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;{{X}_{\tilde{\ }A}}\,\!&amp;lt;/math&amp;gt; is the design matrix, &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt;, excluding the second column that represents the main effect of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;. Thus, the sum of squares for the main effect of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
S{{S}_{A}}= &amp;amp; {{y}^{\prime }}[H-(1/16)J]y-{{y}^{\prime }}[{{H}_{\tilde{\ }A}}-(1/16)J]y \\ &lt;br /&gt;
= &amp;amp; 654.4375-549.375 \\ &lt;br /&gt;
= &amp;amp; 105.0625  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, the extra sum of squares for the interaction effect &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; is: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
S{{S}_{AB}}= &amp;amp; {{y}^{\prime }}[H-(1/16)J]y-{{y}^{\prime }}[{{H}_{\tilde{\ }AB}}-(1/16)J]y \\ &lt;br /&gt;
= &amp;amp; 654.4375-636.375 \\ &lt;br /&gt;
= &amp;amp; 18.0625  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The extra sum of squares for other effects can be obtained in a similar manner.&lt;br /&gt;
&lt;br /&gt;
====Calculation of the Test Statistics====&lt;br /&gt;
&lt;br /&gt;
Knowing the extra sum of squares, the test statistic for the effects can be calculated. For example, the test statistic for the interaction &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
{{({{f}_{0}})}_{AB}}= &amp;amp; \frac{M{{S}_{AB}}}{M{{S}_{E}}} \\ &lt;br /&gt;
= &amp;amp; \frac{S{{S}_{AB}}/dof(S{{S}_{AB}})}{S{{S}_{E}}/dof(S{{S}_{E}})} \\ &lt;br /&gt;
= &amp;amp; \frac{18.0625/1}{147.5/8} \\ &lt;br /&gt;
= &amp;amp; 0.9797  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;M{{S}_{AB}}\,\!&amp;lt;/math&amp;gt; is the mean square for the &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; interaction and &amp;lt;math&amp;gt;M{{S}_{E}}\,\!&amp;lt;/math&amp;gt; is the error mean square.  The &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; value corresponding to the statistic, &amp;lt;math&amp;gt;{{({{f}_{0}})}_{AB}}=0.9797\,\!&amp;lt;/math&amp;gt;, based on the &amp;lt;math&amp;gt;F\,\!&amp;lt;/math&amp;gt; distribution with one degree of freedom in the numerator and eight degrees of freedom in the denominator is: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
p\text{ }value= &amp;amp; 1-P(F\le {{({{f}_{0}})}_{AB}}) \\ &lt;br /&gt;
= &amp;amp; 1-0.6487 \\ &lt;br /&gt;
= &amp;amp; 0.3513  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Assuming that the desired significance is 0.1, since &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; value &amp;gt; 0.1, it can be concluded that the interaction between honing pressure and number of strokes does not affect the surface finish of the brake drums. Tests for other effects can be carried out in a similar manner. The results are shown in the ANOVA Table in the following figure. The values S, R-sq and R-sq(adj) in the figure indicate how well the model fits the data. The value of S represents the standard error of the model, R-sq represents the coefficient of multiple determination and R-sq(adj) represents the adjusted coefficient of multiple determination. For details on these values refer to [[Multiple_Linear_Regression_Analysis|Multiple Linear Regression Analysis]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_8.png|thumb|center|633px|ANOVA table for the experiment in the [[Two_Level_Factorial_Experiments#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
====Calculation of Effect Coefficients====&lt;br /&gt;
&lt;br /&gt;
The estimate of effect coefficients can also be obtained: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\hat{\beta }= &amp;amp; {{({{X}^{\prime }}X)}^{-1}}{{X}^{\prime }}y \\ &lt;br /&gt;
= &amp;amp; \left[ \begin{matrix}&lt;br /&gt;
   86.4375  \\&lt;br /&gt;
   2.5625  \\&lt;br /&gt;
   -4.9375  \\&lt;br /&gt;
   1.0625  \\&lt;br /&gt;
   -1.0625  \\&lt;br /&gt;
   2.4375  \\&lt;br /&gt;
   -1.3125  \\&lt;br /&gt;
   -0.1875  \\&lt;br /&gt;
\end{matrix} \right]  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_9.png|thumb|center|650px|Regression Information table for the experiment in the [[Two_Level_Factorial_Experiments#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
The coefficients and related results are shown in the Regression Information table above. In the table, the Effect column displays the effects, which are simply twice the coefficients. The Standard Error column displays the standard error, &amp;lt;math&amp;gt;se({{\hat{\beta }}_{j}})\,\!&amp;lt;/math&amp;gt;. The Low CI and High CI columns display the confidence interval on the coefficients. The interval shown is the 90% interval as the significance is chosen as 0.1. The T Value column displays the &amp;lt;math&amp;gt;t\,\!&amp;lt;/math&amp;gt; statistic, &amp;lt;math&amp;gt;{{t}_{0}}\,\!&amp;lt;/math&amp;gt;, corresponding to the coefficients. The P Value column displays the &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; value corresponding to the &amp;lt;math&amp;gt;t\,\!&amp;lt;/math&amp;gt; statistic. (For details on how these results are calculated, refer to [[General Full Factorial Designs]]). Plots of residuals can also be obtained from DOE++ to ensure that the assumptions related to the ANOVA model are not violated.&lt;br /&gt;
&lt;br /&gt;
====Model Equation====&lt;br /&gt;
&lt;br /&gt;
From the analysis results in the above figure within [[Two_Level_Factorial_Experiments#Calculation_of_Effect_Coefficients|calculation of effect coefficients]] section, it is seen that effects &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; are significant. In DOE++, the &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; values for the significant effects are displayed in red in the ANOVA Table for easy identification. Using the values of the estimated effect coefficients, the model for the present &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design in terms of the coded values can be written as: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
\hat{y}= &amp;amp; {{\beta }_{0}}+{{\beta }_{1}}\cdot {{x}_{1}}+{{\beta }_{2}}\cdot {{x}_{2}}+{{\beta }_{13}}\cdot {{x}_{1}}{{x}_{3}} \\ &lt;br /&gt;
= &amp;amp; 86.4375+2.5625{{x}_{1}}-4.9375{{x}_{2}}+2.4375{{x}_{1}}{{x}_{3}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To make the model hierarchical, the main effect, &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;, needs to be included in the model (because the interaction &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; is included in the model).  The resulting model is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\hat{y}=86.4375+2.5625{{x}_{1}}-4.9375{{x}_{2}}+1.0625{{x}_{3}}+2.4375{{x}_{1}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This equation can be viewed in DOE++, as shown in the following figure, using the Show Analysis Summary icon in the Control Panel. The equation shown in the figure will match the hierarchical model once the required terms are selected using the Select Effects icon.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_10.png|thumb|center|619px|The model equation for the experiment of the [[Two_Level_Factorial_Experiments#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
==Replicated and Repeated Runs==&lt;br /&gt;
&lt;br /&gt;
In the case of replicated experiments, it is important to note the difference between replicated runs and repeated runs. Both repeated and replicated runs are multiple response readings taken at the same factor levels. However, repeated runs are response observations taken at the same time or in succession. Replicated runs are response observations recorded in a random order. Therefore, replicated runs include more variation than repeated runs. For example, a baker, who wants to investigate the effect of two factors on the quality of cakes, will have to bake four cakes to complete one replicate of a &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design. Assume that the baker bakes eight cakes in all. If, for each of the four treatments of the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design, the baker selects one treatment at random and then bakes two cakes for this treatment at the same time then this is a case of two repeated runs. If, however, the baker bakes all the eight cakes randomly, then the eight cakes represent two sets of replicated runs.&lt;br /&gt;
For repeated measurements, the average values of the response for each treatment should be entered into DOE++ as shown in the following figure (a) when the two cakes for a particular treatment are baked together. For replicated measurements, when all the cakes are baked randomly, the data is entered as shown in the following figure (b).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.11.png|thumb|center|300px|Data entry for repeated and replicated runs. Figure (a) shows repeated runs and (b) shows replicated runs.]]&lt;br /&gt;
&lt;br /&gt;
==Unreplicated 2&amp;lt;sup&amp;gt;&#039;&#039;k&#039;&#039;&amp;lt;/sup&amp;gt; Designs==&lt;br /&gt;
&lt;br /&gt;
If a factorial experiment is run only for a single replicate then it is not possible to test hypotheses about the main effects and interactions as the error sum of squares cannot be obtained.  This is because the number of observations in a single replicate equals the number of terms in the ANOVA model. Hence the model fits the data perfectly and no degrees of freedom are available to obtain the error sum of squares. &lt;br /&gt;
&lt;br /&gt;
However, sometimes it is only possible to run a single replicate of the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design because of constraints on resources and time. In the absence of the error sum of squares, hypothesis tests to identify significant factors cannot be conducted. A number of methods of analyzing information obtained from unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs are available. These include pooling higher order interactions, using the normal probability plot of effects or including center point replicates in the design.&lt;br /&gt;
&lt;br /&gt;
===Pooling Higher Order Interactions===&lt;br /&gt;
&lt;br /&gt;
One of the ways to deal with unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs is to use the sum of squares of some of the higher order interactions as the error sum of squares provided these higher order interactions can be assumed to be insignificant. By dropping some of the higher order interactions from the model, the degrees of freedom corresponding to these interactions can be used to estimate the error mean square. Once the error mean square is known, the test statistics to conduct hypothesis tests on the factors can be calculated.   &lt;br /&gt;
&lt;br /&gt;
===Normal Probability Plot of Effects===&lt;br /&gt;
Another way to use unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs to identify significant effects is to construct the normal probability plot of the effects. As mentioned in [[Two_Level_Factorial_Experiments#Special_Features| Special Features]], the standard error for all effect coefficients in the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs is the same. Therefore, on a normal probability plot of effect coefficients, all non-significant effect coefficients (with &amp;lt;math&amp;gt;\beta =0\,\!&amp;lt;/math&amp;gt;) will fall along the straight line representative of the normal distribution, N(&amp;lt;math&amp;gt;0,{{\sigma }^{2}}/({{2}^{k}}\cdot m)\,\!&amp;lt;/math&amp;gt;).  Effect coefficients that show large deviations from this line will be significant since they do not come from this normal distribution. Similarly, since effects &amp;lt;math&amp;gt;=2\times \,\!&amp;lt;/math&amp;gt; effect coefficients, all non-significant effects will also follow a straight line on the normal probability plot of effects. For replicated designs, the Effects Probability plot of DOE++ plots the normalized effect values (or the T Values) on the standard normal probability line, N(0,1). However, in the case of unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs, &amp;lt;math&amp;gt;{{\sigma }^{2}}\,\!&amp;lt;/math&amp;gt; remains unknown since &amp;lt;math&amp;gt;M{{S}_{E}}\,\!&amp;lt;/math&amp;gt; cannot be obtained. Lenth&#039;s method is used in this case to estimate the variance of the effects. For details on Lenth&#039;s method, please refer to [[DOE References| Montgomery (2001)]]. DOE++ then uses this variance value to plot effects along the N(0, Lenth&#039;s effect variance) line. The &lt;br /&gt;
method is illustrated in the following example.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
Vinyl panels, used as instrument panels in a certain automobile, are seen to develop defects after a certain amount of time. To investigate the issue, it is decided to carry out a two level factorial experiment. Potential factors to be investigated in the experiment are vacuum rate (factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;), material temperature (factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;), element intensity (factor &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;) and pre-stretch (factor &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt;). The two levels of the factors used in the experiment are as shown in below. &lt;br /&gt;
&lt;br /&gt;
[[Image:doet7.1.png|thumb|center|300px|Factors to investigate defects in vinyl panels.]]&lt;br /&gt;
&lt;br /&gt;
With a &amp;lt;math&amp;gt;{2}^{4}\,\!&amp;lt;/math&amp;gt; design requiring 16 runs per replicate it is only feasible for the manufacturer to run a single replicate.&lt;br /&gt;
&lt;br /&gt;
The experiment design and data, collected as percent defects, are shown in the following figure. Since the present experiment design contains only a single replicate, it is not possible to obtain an estimate of the error sum of squares, &amp;lt;math&amp;gt;S{{S}_{E}}\,\!&amp;lt;/math&amp;gt;. It is decided to use the normal probability plot of effects to identify the significant effects. The effect values for each term are obtained as shown in the following figure. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_13.png|thumb|center|650px|Experiment design for the [[Two_Level_Factorial_Experiments#Example_2| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lenth&#039;s method uses these values to estimate the variance. As described in [[DOE_References|[Lenth, 1989]]], if all effects are arranged in ascending order, using their absolute values, then &amp;lt;math&amp;gt;{{s}_{0}}\,\!&amp;lt;/math&amp;gt; is defined as 1.5 times the median value: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
{{s}_{0}}= &amp;amp; 1.5\cdot median(\left| effect \right|) \\ &lt;br /&gt;
= &amp;amp; 1.5\cdot 2 \\ &lt;br /&gt;
= &amp;amp; 3  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using &amp;lt;math&amp;gt;{{s}_{0}}\,\!&amp;lt;/math&amp;gt;, the &amp;quot;pseudo standard error&amp;quot; (&amp;lt;math&amp;gt;PSE\,\!&amp;lt;/math&amp;gt;) is calculated as 1.5 times the median value of all effects that are less than 2.5 &amp;lt;math&amp;gt;{{s}_{0}}\,\!&amp;lt;/math&amp;gt; :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
PSE= &amp;amp; 1.5\cdot median(\left| effect \right|\ \ :\ \ \left| effect \right|&amp;lt;2.5{{s}_{0}}) \\ &lt;br /&gt;
= &amp;amp; 1.5\cdot 1.5 \\ &lt;br /&gt;
= &amp;amp; 2.25  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using &amp;lt;math&amp;gt;PSE\,\!&amp;lt;/math&amp;gt; as an estimate of the effect variance, the effect variance is 2.25. Knowing the effect variance, the normal probability plot of effects for the present unreplicated experiment can be constructed as shown in the following figure. The line on this plot is the line N(0, 2.25). The plot shows that the effects &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt; and the interaction &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt; do not follow the distribution represented by this line. Therefore, these effects are significant. &lt;br /&gt;
&lt;br /&gt;
The significant effects can also be identified by comparing individual effect values to the margin of error or the threshold value using the pareto chart (see the third following figure). If the required significance is 0.1, then:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;margin\text{ }of\text{ }error={{t}_{\alpha /2,d}}\cdot PSE\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;t\,\!&amp;lt;/math&amp;gt; statistic, &amp;lt;math&amp;gt;{{t}_{\alpha /2,d}}\,\!&amp;lt;/math&amp;gt;, is calculated at a significance of &amp;lt;math&amp;gt;\alpha /2\,\!&amp;lt;/math&amp;gt; (for the two-sided hypothesis) and degrees of freedom &amp;lt;math&amp;gt;d=(\,\!&amp;lt;/math&amp;gt; number of effects &amp;lt;math&amp;gt;)/3\,\!&amp;lt;/math&amp;gt;. Thus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
margin\text{ }of\text{ }error= &amp;amp; {{t}_{0.05,5}}\cdot PSE \\ &lt;br /&gt;
= &amp;amp; 2.015\cdot 2.25 \\ &lt;br /&gt;
= &amp;amp; 4.534  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The value of 4.534 is shown as the critical value line in the third following figure. All effects with absolute values greater than the margin of error can be considered to be significant. These effects are &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt; and the interaction &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt;. Therefore, the vacuum rate, the pre-stretch and their interaction have a significant effect on the defects of the vinyl panels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_14.png|thumb|center|650px|Effect values for the experiment in the [[Two_Level_Factorial_Experiments#Example_2| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_15.png|thumb|center|580px|Normal probability plot of effects for the experiment in the [[Two_Level_Factorial_Experiments#Example_2| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_16.png|thumb|center|587px|Pareto chart for the experiment in the [[Two_Level_Factorial_Experiments#Example_2| example]].]]&lt;br /&gt;
&lt;br /&gt;
===Center Point Replicates===&lt;br /&gt;
&lt;br /&gt;
Another method of dealing with unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs that only have quantitative factors is to use replicated runs at the center point.  The center point is the response corresponding to the treatment exactly midway between the two levels of all factors. Running multiple replicates at this point provides an estimate of pure error. Although running multiple replicates at any treatment level can provide an estimate of pure error, the other advantage of running center point replicates in the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design is in checking for the presence of curvature. The test for curvature investigates whether the model between the response and the factors is linear and is discussed in [[Two_Level_Factorial_Experiments#Using_Center_Point_Replicates_to_Test_Curvature| Center Pt. Replicates to Test Curvature]].&lt;br /&gt;
&lt;br /&gt;
====Example: Use Center Point to Get Pure Error====&lt;br /&gt;
&lt;br /&gt;
Consider a &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; experiment design to investigate the effect of two factors, &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;, on a certain response. The energy consumed when the treatments of the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design are run is considerably larger than the energy consumed for the center point run (because at the center point the factors are at their middle levels). Therefore, the analyst decides to run only a single replicate of the design and augment the design by five replicated runs at the center point as shown in the following figure.  The design properties for this experiment are shown in the second following figure. The complete experiment design is shown in the third following figure. The center points can be used in the identification of significant effects as shown next.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.17.png|thumb|center|300px|&amp;lt;math&amp;gt;2^2\,\!&amp;lt;/math&amp;gt; design augmented by five center point runs.]]&lt;br /&gt;
[[Image:doe7_18.png|thumb|center|537px|Design properties for the experiment in the [[Two_Level_Factorial_Experiments#Example_3| example]].]]&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_19.png|thumb|center|630px|Experiment design for the [[Two_Level_Factorial_Experiments#Example_3| example]].]] &lt;br /&gt;
&lt;br /&gt;
Since the present &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design is unreplicated, there are no degrees of freedom available to calculate the error sum of squares. By augmenting this design with five center points, the response values at the center points, &amp;lt;math&amp;gt;y_{i}^{c}\,\!&amp;lt;/math&amp;gt;, can be used to obtain an estimate of pure error, &amp;lt;math&amp;gt;S{{S}_{PE}}\,\!&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;{{\bar{y}}^{c}}\,\!&amp;lt;/math&amp;gt; represent the average response for the five replicates at the center. Then:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;S{{S}_{PE}}=Sum\text{ }of\text{ }Squares\text{ }for\text{ }center\text{ }points\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
S{{S}_{PE}}= &amp;amp; \underset{i=1}{\overset{5}{\mathop{\sum }}}\,{{(y_{i}^{c}-{{{\bar{y}}}^{c}})}^{2}} \\ &lt;br /&gt;
= &amp;amp; {{(25.2-25.26)}^{2}}+...+{{(25.3-25.26)}^{2}} \\ &lt;br /&gt;
= &amp;amp; 0.052  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the corresponding mean square is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
M{{S}_{PE}}= &amp;amp; \frac{S{{S}_{PE}}}{degrees\text{ }of\text{ }freedom} \\ &lt;br /&gt;
= &amp;amp; \frac{0.052}{5-1} \\ &lt;br /&gt;
= &amp;amp; 0.013  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, &amp;lt;math&amp;gt;M{{S}_{PE}}\,\!&amp;lt;/math&amp;gt; can be directly obtained by calculating the variance of the response values at the center points:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
M{{S}_{PE}}= &amp;amp; {{s}^{2}} \\ &lt;br /&gt;
= &amp;amp; \frac{\underset{i=1}{\overset{5}{\mathop{\sum }}}\,{{(y_{i}^{c}-{{{\bar{y}}}^{c}})}^{2}}}{5-1}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once &amp;lt;math&amp;gt;M{{S}_{PE}}\,\!&amp;lt;/math&amp;gt; is known, it can be used as the error mean square, &amp;lt;math&amp;gt;M{{S}_{E}}\,\!&amp;lt;/math&amp;gt;, to carry out the test of significance for each effect. For example, to test the significance of the main effect of factor &amp;lt;math&amp;gt;A,\,\!&amp;lt;/math&amp;gt; the sum of squares corresponding to this effect is obtained in the usual manner by considering only the four runs of the original &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design.&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
S{{S}_{A}}= &amp;amp; {{y}^{\prime }}[H-(1/4)J]y-{{y}^{\prime }}[{{H}_{\tilde{\ }A}}-(1/4)J]y \\ &lt;br /&gt;
= &amp;amp; 0.5625  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, the test statistic to test the significance of the main effect of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
{{({{f}_{0}})}_{A}}= &amp;amp; \frac{M{{S}_{A}}}{M{{S}_{E}}} \\ &lt;br /&gt;
= &amp;amp; \frac{0.5625/1}{0.052/4} \\ &lt;br /&gt;
= &amp;amp; 43.2692  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; value corresponding to the statistic, &amp;lt;math&amp;gt;{{({{f}_{0}})}_{A}}=43.2692\,\!&amp;lt;/math&amp;gt;, based on the &amp;lt;math&amp;gt;F\,\!&amp;lt;/math&amp;gt; distribution with one degree of freedom in the numerator and eight degrees of freedom in the denominator is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
p\text{ }value= &amp;amp; 1-P(F\le {{({{f}_{0}})}_{A}}) \\ &lt;br /&gt;
= &amp;amp; 1-0.9972 \\ &lt;br /&gt;
= &amp;amp; 0.0028  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming that the desired significance is 0.1, since &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; value &amp;lt; 0.1, it can be concluded that the main effect of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; significantly affects the response. This result is displayed in the ANOVA table as shown in the following figure. Test for the significance of other factors can be carried out in a similar manner.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_20.png|thumb|center|649px|Results for the experiment in the [[Two_Level_Factorial_Experiments#Example_3| example]].]]&lt;br /&gt;
&lt;br /&gt;
===Using Center Point Replicates to Test Curvature===&lt;br /&gt;
&lt;br /&gt;
Center point replicates can also be used to check for curvature in replicated or unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs. The test for curvature investigates whether the model between the response and the factors is linear. The way DOE++ handles center point replicates is similar to its handling of blocks. The center point replicates are treated as an additional factor in the model. The factor is labeled as Curvature in the results of DOE++. If Curvature turns out to be a significant factor in the results, then this indicates the presence of curvature in the model.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example: Use Center Point to Test Curvature====&lt;br /&gt;
&lt;br /&gt;
To illustrate the use of center point replicates in testing for curvature, consider again the data of the single replicate &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; experiment from a preceding figure(labeled &amp;quot;&amp;lt;math&amp;gt;2^2&amp;lt;/math&amp;gt; design augmented by five center point runs&amp;quot;). Let &amp;lt;math&amp;gt;{{x}_{1}}\,\!&amp;lt;/math&amp;gt; be the indicator variable to indicate if the run is a center point: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{matrix}&lt;br /&gt;
   {{x}_{1}}=0 &amp;amp; {} &amp;amp; \text{Center point run}  \\&lt;br /&gt;
   {{x}_{1}}=1 &amp;amp; {} &amp;amp; \text{Other run}  \\&lt;br /&gt;
\end{matrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;{{x}_{2}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{x}_{3}}\,\!&amp;lt;/math&amp;gt; are the indicator variables representing factors &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;, respectively, then the model for this experiment is: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;Y={{\beta }_{0}}+{{\beta }_{1}}\cdot {{x}_{1}}+{{\beta }_{2}}\cdot {{x}_{2}}+{{\beta }_{3}}\cdot {{x}_{3}}+{{\beta }_{23}}\cdot {{x}_{2}}{{x}_{3}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
To investigate the presence of curvature, the following hypotheses need to be tested:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; {{H}_{0}}: &amp;amp; {{\beta }_{1}}=0\text{    (Curvature is absent)} \\ &lt;br /&gt;
 &amp;amp; {{H}_{1}}: &amp;amp; {{\beta }_{1}}\ne 0  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The test statistic to be used for this test is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;{{({{F}_{0}})}_{curvature}}=\frac{M{{S}_{curvature}}}{M{{S}_{E}}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;M{{S}_{curvature}}\,\!&amp;lt;/math&amp;gt; is the mean square for Curvature and &amp;lt;math&amp;gt;M{{S}_{E}}\,\!&amp;lt;/math&amp;gt; is the error mean square.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Calculation of the Sum of Squares&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt; matrix and &amp;lt;math&amp;gt;y\,\!&amp;lt;/math&amp;gt; vector for this experiment are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;X=\left[ \begin{matrix}&lt;br /&gt;
   1 &amp;amp; 1 &amp;amp; -1 &amp;amp; -1 &amp;amp; 1  \\&lt;br /&gt;
   1 &amp;amp; 1 &amp;amp; 1 &amp;amp; -1 &amp;amp; -1  \\&lt;br /&gt;
   1 &amp;amp; 1 &amp;amp; -1 &amp;amp; 1 &amp;amp; -1  \\&lt;br /&gt;
   1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1 &amp;amp; 1  \\&lt;br /&gt;
   1 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   1 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   1 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   1 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
   1 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0 &amp;amp; 0  \\&lt;br /&gt;
\end{matrix} \right]\text{      }y=\left[ \begin{matrix}&lt;br /&gt;
   24.6  \\&lt;br /&gt;
   25.4  \\&lt;br /&gt;
   25.0  \\&lt;br /&gt;
   25.7  \\&lt;br /&gt;
   25.2  \\&lt;br /&gt;
   25.3  \\&lt;br /&gt;
   25.4  \\&lt;br /&gt;
   25.1  \\&lt;br /&gt;
   25.3  \\&lt;br /&gt;
\end{matrix} \right]\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sum of squares can now be calculated. For example, the error sum of squares is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; S{{S}_{E}}= &amp;amp; {{y}^{\prime }}[I-H]y \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 0.052  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;I\,\!&amp;lt;/math&amp;gt; is the identity matrix and &amp;lt;math&amp;gt;H\,\!&amp;lt;/math&amp;gt; is the hat matrix. It can be seen that this is equal to &amp;lt;math&amp;gt;S{{S}_{PE\text{ }}}\,\!&amp;lt;/math&amp;gt; (the sum of squares due to pure error) because of the replicates at the center point, as obtained in the [[Two_Level_Factorial_Experiments#Example_3| example]]. The number of degrees of freedom associated with &amp;lt;math&amp;gt;S{{S}_{E}}\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;dof(S{{S}_{E}})\,\!&amp;lt;/math&amp;gt; is four.  The extra sum of squares corresponding to the center point replicates (or Curvature) is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; S{{S}_{Curvature}}= &amp;amp; Model\text{ }Sum\text{ }of\text{ }Squares- \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; Sum\text{ }of\text{ }Squares\text{ }of\text{ }model\text{ }excluding\text{ }the\text{ }center\text{ }point \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; {{y}^{\prime }}[H-(1/9)J]y-{{y}^{\prime }}[{{H}_{\tilde{\ }Curvature}}-(1/9)J]y  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;H\,\!&amp;lt;/math&amp;gt; is the hat matrix and &amp;lt;math&amp;gt;J\,\!&amp;lt;/math&amp;gt; is the matrix of ones. The matrix &amp;lt;math&amp;gt;{{H}_{\tilde{\ }Curvature}}\,\!&amp;lt;/math&amp;gt; can be calculated using &amp;lt;math&amp;gt;{{H}_{\tilde{\ }Curvature}}={{X}_{\tilde{\ }Curv}}{{(X_{\tilde{\ }Curv}^{\prime }{{X}_{\tilde{\ }Curv}})}^{-1}}X_{\tilde{\ }Curv}^{\prime }\,\!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;{{X}_{\tilde{\ }Curv}}\,\!&amp;lt;/math&amp;gt; is the design matrix, &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt;, excluding the second column that represents the center point. Thus, the extra sum of squares corresponding to Curvature is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; S{{S}_{Curvature}}= &amp;amp; {{y}^{\prime }}[H-(1/9)J]y-{{y}^{\prime }}[{{H}_{\tilde{\ }Center}}-(1/9)J]y \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 0.7036-0.6875 \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 0.0161  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This extra sum of squares can be used to test for the significance of curvature. The corresponding mean square is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; M{{S}_{Curvature}}= &amp;amp; \frac{Sum\text{ }of\text{ }squares\text{ }corresponding\text{ }to\text{ }Curvature}{degrees\text{ }of\text{ }freedom} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; \frac{0.0161}{1} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 0.0161  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Calculation of the Test Statistic&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Knowing the mean squares, the statistic to check the significance of curvature can be calculated.&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; {{({{f}_{0}})}_{Curvature}}= &amp;amp; \frac{M{{S}_{Curvature}}}{M{{S}_{E}}} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; \frac{0.0161/1}{0.052/4} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 1.24  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; value corresponding to the statistic, &amp;lt;math&amp;gt;{{({{f}_{0}})}_{Curvature}}=1.24\,\!&amp;lt;/math&amp;gt;, based on the &amp;lt;math&amp;gt;F\,\!&amp;lt;/math&amp;gt; distribution with one degree of freedom in the numerator and four degrees of freedom in the denominator is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; p\text{ }value= &amp;amp; 1-P(F\le {{({{f}_{0}})}_{Curvature}}) \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 1-0.6713 \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 0.3287  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming that the desired significance is 0.1, since &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; value &amp;gt; 0.1, it can be concluded that curvature does not exist for this design. This results is shown in the ANOVA table in the figure above. The surface of the fitted model based on these results, along with the observed response values, is shown in the figure below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.21.png|thumb|center|400px|Model surface and observed response values for the design in the [[Two_Level_Factorial_Experiments#Example_4| example]].]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Blocking in 2&amp;lt;sup&amp;gt;k&amp;lt;/sup&amp;gt; Designs==&lt;br /&gt;
&lt;br /&gt;
Blocking can be used in the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs to deal with cases when replicates cannot be run under identical conditions. Randomized complete block designs that were discussed in [[Randomization and Blocking in DOE]] for factorial experiments are also applicable here. At times, even with just two levels per factor, it is not possible to run all treatment combinations for one replicate of the experiment under homogeneous conditions. For example, each replicate of the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design requires four runs. If each run requires two hours and testing facilities are available for only four hours per day, two days of testing would be required to run one complete replicate. Blocking can be used to separate the treatment runs on the two different days. Blocks that do not contain all treatments of a replicate are called incomplete blocks. In incomplete block designs, the block effect is confounded with certain effect(s) under investigation.  For the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design assume that treatments &amp;lt;math&amp;gt;(1)\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;ab\,\!&amp;lt;/math&amp;gt; were run on the first day and treatments &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b\,\!&amp;lt;/math&amp;gt; were run on the second day. Then, the incomplete block design for this experiment is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{matrix}&lt;br /&gt;
   \text{Block 1} &amp;amp; {} &amp;amp; \text{Block 2}  \\&lt;br /&gt;
   \left[ \begin{matrix}&lt;br /&gt;
   (1)  \\&lt;br /&gt;
   ab  \\&lt;br /&gt;
\end{matrix} \right] &amp;amp; {} &amp;amp; \left[ \begin{matrix}&lt;br /&gt;
   a  \\&lt;br /&gt;
   b  \\&lt;br /&gt;
\end{matrix} \right]  \\&lt;br /&gt;
\end{matrix}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For this design the block effect may be calculated as:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; Block\text{ }Effect= &amp;amp; Average\text{ }response\text{ }for\text{ }Block\text{ }1- \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; Average\text{ }response\text{ }for\text{ }Block\text{ }2 \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; \frac{(1)+ab}{2}-\frac{a+b}{2} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; \frac{1}{2}[(1)+ab-a-b]  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; interaction effect is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; AB= &amp;amp; Average\text{ }response\text{ }at\text{ }{{A}_{\text{high}}}\text{-}{{B}_{\text{high}}}\text{ }and\text{ }{{A}_{\text{low}}}\text{-}{{B}_{\text{low}}}- \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; Average\text{ }response\text{ }at\text{ }{{A}_{\text{low}}}\text{-}{{B}_{\text{high}}}\text{ }and\text{ }{{A}_{\text{high}}}\text{-}{{B}_{\text{low}}} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; \frac{ab+(1)}{2}-\frac{b+a}{2} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; \frac{1}{2}[(1)+ab-a-b]  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The two equations given above show that, in this design, the &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; interaction effect cannot be distinguished from the block effect because the formulas to calculate these effects are the same. In other words, the &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; interaction is said to be confounded with the block effect and it is not possible to say if the effect calculated based on these equations is due to the &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; interaction effect, the block effect or both. In incomplete block designs some effects are always confounded with the blocks. Therefore, it is important to design these experiments in such a way that the important effects are not confounded with the blocks. In most cases, the experimenter can assume that higher order interactions are unimportant. In this case, it would better to use incomplete block designs that confound these effects with the blocks.&lt;br /&gt;
One way to design incomplete block designs is to use defining contrasts as shown next:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;L={{\alpha }_{1}}{{q}_{1}}+{{\alpha }_{2}}{{q}_{2}}+...+{{\alpha }_{k}}{{q}_{k}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;math&amp;gt;{{\alpha }_{i}}\,\!&amp;lt;/math&amp;gt; s are the exponents for the factors in the effect that is to be confounded with the block effect and the &amp;lt;math&amp;gt;{{q}_{i}}\,\!&amp;lt;/math&amp;gt; s are values based on the level of the &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; the factor (in a treatment that is to be allocated to a block). For &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; designs the &amp;lt;math&amp;gt;{{\alpha }_{i}}\,\!&amp;lt;/math&amp;gt; s are either 0 or 1 and the &amp;lt;math&amp;gt;{{q}_{i}}\,\!&amp;lt;/math&amp;gt; s have a value of 0 for the low level of the &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt; th factor and a value of 1 for the high level of the factor in the treatment under consideration. As an example, consider the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design where the interaction effect &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; is confounded with the block. Since there are two factors, &amp;lt;math&amp;gt;k=2\,\!&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;i=1\,\!&amp;lt;/math&amp;gt; representing factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i=2\,\!&amp;lt;/math&amp;gt; representing factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;. Therefore:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;L={{\alpha }_{1}}{{q}_{1}}+{{\alpha }_{2}}{{q}_{2}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The value of &amp;lt;math&amp;gt;{{\alpha }_{1}}\,\!&amp;lt;/math&amp;gt; is one because the exponent of factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; in the confounded interaction &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; is one. Similarly, the value of &amp;lt;math&amp;gt;{{\alpha }_{2}}\,\!&amp;lt;/math&amp;gt; is one because the exponent of factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; in the confounded interaction &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; is also one. Therefore, the defining contrast for this design can be written as:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; L= &amp;amp; {{\alpha }_{1}}{{q}_{1}}+{{\alpha }_{2}}{{q}_{2}} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 1\cdot {{q}_{1}}+1\cdot {{q}_{2}} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; {{q}_{1}}+{{q}_{2}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the defining contrast is known, it can be used to allocate treatments to the blocks.   For the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; design, there are four treatments &amp;lt;math&amp;gt;(1)\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;ab\,\!&amp;lt;/math&amp;gt;. Assume that &amp;lt;math&amp;gt;L=0\,\!&amp;lt;/math&amp;gt; represents block 2 and &amp;lt;math&amp;gt;L=1\,\!&amp;lt;/math&amp;gt; represents block 1. In order to decide which block the treatment &amp;lt;math&amp;gt;(1)\,\!&amp;lt;/math&amp;gt; belongs to, the levels of factors &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; for this run are used. Since factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is at the low level in this treatment, &amp;lt;math&amp;gt;{{q}_{1}}=0\,\!&amp;lt;/math&amp;gt;. Similarly, since factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; is also at the low level in this treatment, &amp;lt;math&amp;gt;{{q}_{2}}=0\,\!&amp;lt;/math&amp;gt;. Therefore:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; L= &amp;amp; {{q}_{1}}+{{q}_{2}} \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 0+0=0\text{ (mod 2)}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the value of &amp;lt;math&amp;gt;L\,\!&amp;lt;/math&amp;gt; used to decide the block allocation is &amp;quot;mod 2&amp;quot; of the original value.  This value is obtained by taking the value of 1 for odd numbers and 0 otherwise. Based on the value of &amp;lt;math&amp;gt;L\,\!&amp;lt;/math&amp;gt;, treatment &amp;lt;math&amp;gt;(1)\,\!&amp;lt;/math&amp;gt; is assigned to block 1. Other treatments can be assigned using the following calculations:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; (1): &amp;amp; \text{ }L=0+0=0=0\text{ (mod 2)} \\ &lt;br /&gt;
 &amp;amp; a: &amp;amp; \text{ }L=1+0=1=1\text{ (mod 2)} \\ &lt;br /&gt;
 &amp;amp; b: &amp;amp; \text{ }L=0+1=1=1\text{ (mod 2)} \\ &lt;br /&gt;
 &amp;amp; ab: &amp;amp; \text{ }L=1+1=2=0\text{ (mod 2)}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Therefore, to confound the interaction &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; with the block effect in the &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; incomplete block design, treatments &amp;lt;math&amp;gt;(1)\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;ab\,\!&amp;lt;/math&amp;gt; (with &amp;lt;math&amp;gt;L=0\,\!&amp;lt;/math&amp;gt;) should be assigned to block 2 and treatment combinations &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b\,\!&amp;lt;/math&amp;gt; (with &amp;lt;math&amp;gt;L=1\,\!&amp;lt;/math&amp;gt;) should be assigned to block 1.&lt;br /&gt;
&lt;br /&gt;
====Example: Two Level Factorial Design with Two Blocks====&lt;br /&gt;
&lt;br /&gt;
This example illustrates how treatments can be allocated to two blocks for an unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design. Consider the unreplicated &amp;lt;math&amp;gt;{2}^{4}\,\!&amp;lt;/math&amp;gt; design to investigate the four factors affecting the defects in automobile vinyl panels discussed in [[Two_Level_Factorial_Experiments#Normal_Probability_Plot_of_Effects| Normal Probability Plot of Effects]]. Assume that the 16 treatments required for this experiment were run by two different operators with each operator conducting 8 runs. This experiment is an example of an incomplete block design. The analyst in charge of this experiment assumed that the interaction &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt; was not significant and decided to allocate treatments to the two operators so that the &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt; interaction was confounded with the block effect (the two operators are the blocks). The allocation scheme to assign treatments to the two operators can be obtained as follows.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The defining contrast for the &amp;lt;math&amp;gt;{2}^{4}\,\!&amp;lt;/math&amp;gt; design where the &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt; interaction is confounded with the blocks is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;L={{q}_{1}}+{{q}_{2}}+{{q}_{3}}+{{q}_{4}}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The treatments can be allocated to the two operators using the values of the defining contrast. Assume that &amp;lt;math&amp;gt;L=0\,\!&amp;lt;/math&amp;gt; represents block 2 and &amp;lt;math&amp;gt;L=1\,\!&amp;lt;/math&amp;gt; represents block 1. Then the value of the defining contrast for treatment &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt; is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;a\ \ :\ \ \text{ }L=1+0+0+0=1=1\text{ (mod 2)}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Therefore, treatment &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt; should be assigned to Block 1 or the first operator. Similarly, for treatment &amp;lt;math&amp;gt;ab\,\!&amp;lt;/math&amp;gt; we have:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;ab\ \ :\ \ \text{ }L=1+1+0+0=2=0\text{ (mod 2)}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.22.png|thumb|center|400px| Allocation of treatments to two blocks for the &amp;lt;math&amp;gt;2^4&amp;lt;/math&amp;gt; design in the example by confounding interaction of &amp;lt;math&amp;gt;ABCD&amp;lt;/math&amp;gt; with the blocks.]]&lt;br /&gt;
&lt;br /&gt;
Therefore, &amp;lt;math&amp;gt;ab\,\!&amp;lt;/math&amp;gt; should be assigned to Block 2 or the second operator. Other treatments can be allocated to the two operators in a similar manner to arrive at the allocation scheme shown in the figure below. &lt;br /&gt;
In DOE++, to confound the &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt; interaction for the &amp;lt;math&amp;gt;{2}^{4}\,\!&amp;lt;/math&amp;gt; design into two blocks, the number of blocks are specified as shown in the figure below. Then the interaction &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt; is entered in the Block Generator window (second following figure) which is available using the Block Generator button in the following figure. The design generated by DOE++ is shown in the third of the following figures. This design matches the allocation scheme of the preceding figure.  &lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_23.png|thumb|center|700px| Adding block properties for the experiment in the example.]]&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_24.png|thumb|center|700px|Specifying the interaction ABCD as the interaction to be confounded with the blocks for the [[Two_Level_Factorial_Experiments#Example_5| example]].]]&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_25.png|thumb|center|650px|Two block design for the experiment in the [[Two_Level_Factorial_Experiments#Example_5| example]].]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
For the analysis of this design, the sum of squares for all effects are calculated assuming no blocking. Then, to account for blocking, the sum of squares corresponding to the &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt; interaction is considered as the sum of squares due to blocks and &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt;. In DOE++ this is done by displaying this sum of squares as the sum of squares due to the blocks. This is shown in the following figure where the sum of squares in question is obtained as 72.25 and is displayed against Block. The interaction ABCD, which is confounded with the blocks, is not displayed. Since the design is unreplicated, any of the methods to analyze unreplicated designs mentioned in [[Two_Level_Factorial_Experiments#Unreplicated_2__Designs_in_2__Blocks| Unreplicated &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; designs]] have to be used to identify significant effects.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_26.png|thumb|center|650px|ANOVA table for the experiment of the [[Two_Level_Factorial_Experiments#Example_5| example]].]]&lt;br /&gt;
&lt;br /&gt;
===Unreplicated 2&amp;lt;sup&amp;gt;&#039;&#039;k&#039;&#039;&amp;lt;/sup&amp;gt; Designs in 2&amp;lt;sup&amp;gt;&#039;&#039;p&#039;&#039;&amp;lt;/sup&amp;gt; Blocks===&lt;br /&gt;
&lt;br /&gt;
A single replicate of the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design can be run in up to &amp;lt;math&amp;gt;{2}^{p}\,\!&amp;lt;/math&amp;gt; blocks where &amp;lt;math&amp;gt;p&amp;lt;k\,\!&amp;lt;/math&amp;gt;. The number of effects confounded with the blocks equals the degrees of freedom associated with the block effect. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If two blocks are used (the block effect has two levels), then one (&amp;lt;math&amp;gt;2-1=1)\,\!&amp;lt;/math&amp;gt; effect is confounded with the blocks. If four blocks are used, then three (&amp;lt;math&amp;gt;4-1=3\,\!&amp;lt;/math&amp;gt;) effects are confounded with the blocks and so on.  For example an unreplicated &amp;lt;math&amp;gt;{2}^{4}\,\!&amp;lt;/math&amp;gt; design may be confounded in &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; (four) blocks using two contrasts, &amp;lt;math&amp;gt;{{L}_{1}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{L}_{2}}\,\!&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BD\,\!&amp;lt;/math&amp;gt; be the effects to be confounded with the blocks. Corresponding to these two effects, the contrasts are respectively:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; {{L}_{1}}= &amp;amp; {{q}_{1}}+{{q}_{3}} \\ &lt;br /&gt;
 &amp;amp; {{L}_{2}}= &amp;amp; {{q}_{2}}+{{q}_{4}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Based on the values of &amp;lt;math&amp;gt;{{L}_{1}}\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;{{L}_{2}},\,\!&amp;lt;/math&amp;gt; the treatments can be assigned to the four blocks as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{matrix}&lt;br /&gt;
   \text{Block 4} &amp;amp; {} &amp;amp; \text{Block 3} &amp;amp; {} &amp;amp; \text{Block 2} &amp;amp; {} &amp;amp; \text{Block 1}  \\&lt;br /&gt;
   {{L}_{1}}=0,{{L}_{2}}=0 &amp;amp; {} &amp;amp; {{L}_{1}}=1,{{L}_{2}}=0 &amp;amp; {} &amp;amp; {{L}_{1}}=0,{{L}_{2}}=1 &amp;amp; {} &amp;amp; {{L}_{1}}=1,{{L}_{2}}=1  \\&lt;br /&gt;
   {} &amp;amp; {} &amp;amp; {} &amp;amp; {} &amp;amp; {} &amp;amp; {} &amp;amp; {}  \\&lt;br /&gt;
   \left[ \begin{matrix}&lt;br /&gt;
   (1)  \\&lt;br /&gt;
   ac  \\&lt;br /&gt;
   bd  \\&lt;br /&gt;
   abcd  \\&lt;br /&gt;
\end{matrix} \right] &amp;amp; {} &amp;amp; \left[ \begin{matrix}&lt;br /&gt;
   a  \\&lt;br /&gt;
   c  \\&lt;br /&gt;
   abd  \\&lt;br /&gt;
   bcd  \\&lt;br /&gt;
\end{matrix} \right] &amp;amp; {} &amp;amp; \left[ \begin{matrix}&lt;br /&gt;
   b  \\&lt;br /&gt;
   abc  \\&lt;br /&gt;
   d  \\&lt;br /&gt;
   acd  \\&lt;br /&gt;
\end{matrix} \right] &amp;amp; {} &amp;amp; \left[ \begin{matrix}&lt;br /&gt;
   ab  \\&lt;br /&gt;
   bc  \\&lt;br /&gt;
   ad  \\&lt;br /&gt;
   cd  \\&lt;br /&gt;
\end{matrix} \right]  \\&lt;br /&gt;
\end{matrix}\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since the block effect has three degrees of freedom, three effects are confounded with the block effect. In addition to &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BD\,\!&amp;lt;/math&amp;gt;, the third effect confounded with the block effect is their generalized interaction, &amp;lt;math&amp;gt;(AC)(BD)=ABCD\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
In general, when an unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design is confounded in &amp;lt;math&amp;gt;{2}^{p}\,\!&amp;lt;/math&amp;gt; blocks, &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; contrasts are needed (&amp;lt;math&amp;gt;{{L}_{1}},{{L}_{2}}...{{L}_{p}}\,\!&amp;lt;/math&amp;gt;). &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; effects are selected to define these contrasts such that none of these effects are the generalized interaction of the others. The &amp;lt;math&amp;gt;{2}^{p}\,\!&amp;lt;/math&amp;gt; blocks can then be assigned the treatments using the &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; contrasts. &amp;lt;math&amp;gt;{{2}^{p}}-(p+1)\,\!&amp;lt;/math&amp;gt; effects, that are also confounded with the blocks, are then obtained as the generalized interaction of the &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; effects. In the statistical analysis of these designs, the sum of squares are computed as if no blocking were used. Then the block sum of squares is obtained by adding the sum of squares for all the effects confounded with the blocks.&lt;br /&gt;
&lt;br /&gt;
====Example: 2 Level Factorial Design with Four Blocks====&lt;br /&gt;
&lt;br /&gt;
This example illustrates how DOE++ obtains the sum of squares when treatments for an unreplicated &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design are allocated among four blocks. Consider again the unreplicated &amp;lt;math&amp;gt;{2}^{4}\,\!&amp;lt;/math&amp;gt; design used to investigate the defects in automobile vinyl panels presented in [[Two_Level_Factorial_Experiments#Normal_Probability_Plot_of_Effects| Normal Probability Plot of Effects]]. Assume that the 16 treatments needed to complete the experiment were run by four operators. Therefore, there are four blocks. Assume that the treatments were allocated to the blocks using the generators mentioned in the previous section, i.e., treatments were allocated among the four operators by confounding the effects, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BD,\,\!&amp;lt;/math&amp;gt; with the blocks. These effects can be specified as Block Generators as shown in the following figure. (The generalized interaction of these two effects, interaction &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt;, will also get confounded with the blocks.) The resulting design is shown in the second following figure and matches the allocation scheme obtained in the previous section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_27.png|thumb|center|400px|Specifying the interactions AC and BD as block generators for the [[Two_Level_Factorial_Experiments#Example_6| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The sum of squares in this case can be obtained by calculating the sum of squares for each of the effects assuming there is no blocking. Once the individual sum of squares have been obtained, the block sum of squares can be calculated. The block sum of squares is the sum of the sum of squares of effects, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;BD\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt;, since these effects are confounded with the block effect. As shown in the second following figure, this sum of squares is 92.25 and is displayed against Block.  The interactions &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;BD\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt;, which are confounded with the blocks, are not displayed.  Since the present design is unreplicated any of the methods to analyze unreplicated designs mentioned in [[Two_Level_Factorial_Experiments#Unreplicated_2__Designs_in_2__Blocks| Unreplicated &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; designs]] have to be used to identify significant effects.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_28.png|thumb|center|631px|Design for the experiment in the [[Two_Level_Factorial_Experiments#Example_6| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_29.png|thumb|center|635px|ANOVA table for the experiment in the [[Two_Level_Factorial_Experiments#Example_6| example]].]]&lt;br /&gt;
&lt;br /&gt;
==Variability Analysis==&lt;br /&gt;
&lt;br /&gt;
For replicated two level factorial experiments, DOE++ provides the option of conducting variability analysis (using the Variability Analysis icon under the Data menu). The analysis is used to identify the treatment that results in the least amount of variation in the product or process being investigated. Variability analysis is conducted by treating the standard deviation of the response for each treatment of the experiment as an additional response. The standard deviation for a treatment is obtained by using the replicated response values at that treatment run. As an example, consider the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design shown in the following figure where each run is replicated four times. A variability analysis can be conducted for this design. DOE++ calculates eight standard deviation values corresponding to each treatment of the design (see second following figure). Then, the design is analyzed as an unreplicated &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design with the standard deviations (displayed as Y Standard Deviation. in second following figure) as the response. The normal probability plot of effects identifies &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; as the effect that influences variability (see third figure following). Based on the effect coefficients obtained in the fourth figure following, the model for Y Std. is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; \text{Y Std}\text{.}= &amp;amp; 0.6779+0.2491\cdot AC \\ &lt;br /&gt;
 &amp;amp; = &amp;amp; 0.6779+0.2491{{x}_{1}}{{x}_{3}}  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Based on the model, the experimenter has two choices to minimize variability (by minimizing Y Std.). The first choice is that &amp;lt;math&amp;gt;{{x}_{1}}\,\!&amp;lt;/math&amp;gt; should be &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; should be set at the high level) and &amp;lt;math&amp;gt;{{x}_{3}}\,\!&amp;lt;/math&amp;gt; should be &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; should be set at the low level). The second choice is that &amp;lt;math&amp;gt;{{x}_{1}}\,\!&amp;lt;/math&amp;gt; should be &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; should be set at the low level) and &amp;lt;math&amp;gt;{{x}_{3}}\,\!&amp;lt;/math&amp;gt; should be &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt; (i.e., &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; should be set at the high level). The experimenter can select the most feasible choice.   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.30.png|thumb|center|391px|A &amp;lt;math&amp;gt;2^3\,\!&amp;lt;/math&amp;gt; design with four replicated response values that can be used to conduct a variability analysis.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_31.png|thumb|center|567px|Variability analysis in DOE++.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_32.png|thumb|center|592px|Normal probability plot of effects for the variability analysis example.]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_33.png|thumb|center|646px|Effect coefficients for the variability analysis example.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Two Level Fractional Factorial Designs==&lt;br /&gt;
&lt;br /&gt;
As the number of factors in a two level factorial design increases, the number of runs for even a single replicate of the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design becomes very large. For example, a single replicate of an eight factor two level experiment would require 256 runs. Fractional factorial designs can be used in these cases to draw out valuable conclusions from fewer runs. The basis of fractional factorial designs is the &#039;&#039;sparsity of effects&#039;&#039; principle.[[DOE_References|[Wu, 2000]]] The principle states that, most of the time, responses are affected by a small number of main effects and lower order interactions, while higher order interactions are relatively unimportant. Fractional factorial designs are used as screening experiments during the initial stages of experimentation. At these stages, a large number of factors have to be investigated and the focus is on the main effects and two factor interactions. These designs obtain information about main effects and lower order interactions with fewer experiment runs by confounding these effects with unimportant higher order interactions. As an example, consider a &amp;lt;math&amp;gt;{2}^{8}\,\!&amp;lt;/math&amp;gt; design that requires 256 runs. This design allows for the investigation of 8 main effects and 28 two factor interactions. However, 219 degrees of freedom are devoted to three factor or higher order interactions. This full factorial design can prove to be very inefficient when these higher order interactions can be assumed to be unimportant. Instead, a fractional design can be used here to identify the important factors that can then be investigated more thoroughly in subsequent experiments. In unreplicated fractional factorial designs, no degrees of freedom are available to calculate the error sum of squares and the techniques mentioned in [[Two_Level_Factorial_Experiments#Unreplicated_2__Designs_in_2__Blocks| Unreplicated &amp;lt;math&amp;gt;2^k&amp;lt;/math&amp;gt; designs]] should be employed for the analysis of these designs.&lt;br /&gt;
&lt;br /&gt;
==Half-fraction Designs==&lt;br /&gt;
&lt;br /&gt;
A half-fraction of the &amp;lt;math&amp;gt;{2}^{k}\,\!&amp;lt;/math&amp;gt; design involves running only half of the treatments of the full factorial design. For example, consider a &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design that requires eight runs in all. The design matrix for this design is shown in the figure (a) below. A half-fraction of this design is the design in which only four of the eight treatments are run. The fraction is denoted as &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; with the &amp;quot;&amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt;&amp;quot; in the index denoting a half-fraction. Assume that the treatments chosen for the half-fraction design are the ones where the interaction &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; is at the high level (i.e., only those rows are chosen from the following figure (a) where the column for &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; has entries of 1). The resulting &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design has a design matrix as shown in figure (b) below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.34.png|thumb|center|330px|Half-fractions of the &amp;lt;math&amp;gt;2^3\,\!&amp;lt;/math&amp;gt; design. (a) shows the full factorial &amp;lt;math&amp;gt;2^3\,\!&amp;lt;/math&amp;gt; design, (b) shows the &amp;lt;math&amp;gt;2^{3-1}\,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABC\,\!&amp;lt;/math&amp;gt; and (c) shows the &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=-ABC\,\!&amp;lt;/math&amp;gt;.]]&lt;br /&gt;
&lt;br /&gt;
In the &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design of figure (b), since the interaction &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; is always included at the same level (the high level represented by 1), it is not possible to measure this interaction effect. The effect, &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt;, is called the &#039;&#039;generator&#039;&#039; or &#039;&#039;word&#039;&#039; for this design. It can be noted that, in the design matrix of the following figure (b), the column corresponding to the intercept, &amp;lt;math&amp;gt;I\,\!&amp;lt;/math&amp;gt;, and column corresponding to the interaction &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt;, are identical. The identical columns are written as &amp;lt;math&amp;gt;I=ABC\,\!&amp;lt;/math&amp;gt; and this equation is called the &#039;&#039;defining relation&#039;&#039; for the design. In DOE++, the present &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design can be obtained by specifying the design properties as shown in the following figure. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_35.png|thumb|center|700px|Design properties for the &amp;lt;math&amp;gt;2^{3-1}\,\!&amp;lt;/math&amp;gt; design.]]&lt;br /&gt;
&lt;br /&gt;
The defining relation, &amp;lt;math&amp;gt;I=ABC\,\!&amp;lt;/math&amp;gt;, is entered in the Fraction Generator window as shown next. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_36.png|thumb|center|700px|Specifying the defining relation for the &amp;lt;math&amp;gt;2^{3-1}\,\!&amp;lt;/math&amp;gt; design.]]&lt;br /&gt;
&lt;br /&gt;
Note that in the figure following that, the defining relation is specified as &amp;lt;math&amp;gt;C=AB\,\!&amp;lt;/math&amp;gt;. This relation is obtained by multiplying the defining relation, &amp;lt;math&amp;gt;I=ABC\,\!&amp;lt;/math&amp;gt;, by the last factor, &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;, of the design.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Calculation of Effects===&lt;br /&gt;
&lt;br /&gt;
Using the four runs of the &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design in figure (b) discussed above, the main effects can be calculated as follows: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A= &amp;amp; \frac{(a+abc)}{2}-\frac{(b+c)}{2}=\frac{1}{2}(a-b-c+abc) \\ &lt;br /&gt;
 &amp;amp; B= &amp;amp; \frac{(b+abc)}{2}-\frac{(a+c)}{2}=\frac{1}{2}(-a+b-c+abc) \\ &lt;br /&gt;
 &amp;amp; C= &amp;amp; \frac{(c+abc)}{2}-\frac{(a+b)}{2}=\frac{1}{2}(-a-b+c+abc)  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;a\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;b\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;c\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;abc\,\!&amp;lt;/math&amp;gt; are the treatments included in the &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, the two factor interactions can also be obtained as:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; BC= &amp;amp; \frac{(a+abc)}{2}-\frac{(b+c)}{2}=\frac{1}{2}(a-b-c+abc) \\ &lt;br /&gt;
 &amp;amp; AC= &amp;amp; \frac{(b+abc)}{2}-\frac{(a+c)}{2}=\frac{1}{2}(-a+b-c+abc) \\ &lt;br /&gt;
 &amp;amp; AB= &amp;amp; \frac{(c+abc)}{2}-\frac{(a+b)}{2}=\frac{1}{2}(-a-b+c+abc)  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The equations for &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt; above result in the same effect values showing that effects &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt; are confounded in the present &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design. Thus, the quantity, &amp;lt;math&amp;gt;\tfrac{1}{2}(a-b-c+abc),\,\!&amp;lt;/math&amp;gt; estimates &amp;lt;math&amp;gt;A+BC\,\!&amp;lt;/math&amp;gt; (i.e., both the main effect &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and the two-factor interaction &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt;). The effects, &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;BC,\,\!&amp;lt;/math&amp;gt; are called &#039;&#039;aliases&#039;&#039;. From the remaining equations given above, it can be seen that the other aliases for this design are &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;. Therefore, the equations to calculate the effects in the present &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design can be written as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A+BC= &amp;amp; \frac{1}{2}(a-b-c+abc) \\ &lt;br /&gt;
 &amp;amp; B+AC= &amp;amp; \frac{1}{2}(-a+b-c+abc) \\ &lt;br /&gt;
 &amp;amp; C+AB= &amp;amp; \frac{1}{2}(-a-b+c+abc)  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Calculation of Aliases===&lt;br /&gt;
&lt;br /&gt;
Aliases for a fractional factorial design can be obtained using the defining relation for the design. The defining relation for the present &amp;lt;math&amp;gt;{2}^{3-1}\,\!&amp;lt;/math&amp;gt; design is:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;I=ABC\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Multiplying both sides of the previous equation by the main effect, &amp;lt;math&amp;gt;A,\,\!&amp;lt;/math&amp;gt; gives the alias effect of &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; :&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A\cdot I= &amp;amp; A\cdot ABC \\ &lt;br /&gt;
 &amp;amp; A= &amp;amp; {{A}^{2}}BC \\ &lt;br /&gt;
 &amp;amp; A= &amp;amp; BC  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that in calculating the alias effects, any effect multiplied by &amp;lt;math&amp;gt;I\,\!&amp;lt;/math&amp;gt; remains the same (&amp;lt;math&amp;gt;A\cdot I=A\,\!&amp;lt;/math&amp;gt;), while an effect multiplied by itself results in &amp;lt;math&amp;gt;I\,\!&amp;lt;/math&amp;gt; (&amp;lt;math&amp;gt;{{A}^{2}}=I\,\!&amp;lt;/math&amp;gt;). Other aliases can also be obtained:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; B\cdot I= &amp;amp; B\cdot ABC \\ &lt;br /&gt;
 &amp;amp; B= &amp;amp; A{{B}^{2}}C \\ &lt;br /&gt;
 &amp;amp; B= &amp;amp; AC  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:and:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; C\cdot I= &amp;amp; C\cdot ABC \\ &lt;br /&gt;
 &amp;amp; C= &amp;amp; AB{{C}^{2}} \\ &lt;br /&gt;
 &amp;amp; C= &amp;amp; AB  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Fold-over Design===&lt;br /&gt;
&lt;br /&gt;
If it can be assumed for this design that the two-factor interactions are unimportant, then in the absence of &amp;lt;math&amp;gt;BC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, the equations for (A+BC), (B+AC) and (C+AB) can be used to estimate the main effects, &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;, respectively. However, if such an assumption is not applicable, then to uncouple the main effects from their two factor aliases, the alternate fraction that contains runs having &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; at the lower level should be run.  The design matrix for this design is shown in the preceding figure (c). The defining relation for this design is &amp;lt;math&amp;gt;I=-ABC\,\!&amp;lt;/math&amp;gt; because the four runs for this design are obtained by selecting the rows of the preceding figure (a) for which the value of the &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt; column is &amp;lt;math&amp;gt;-1\,\!&amp;lt;/math&amp;gt;. The aliases for this fraction can be obtained as explained in [[Two_Level_Factorial_Experiments#Half-fraction_Designs| Half-fraction Designs]] as &amp;lt;math&amp;gt;A=-BC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B=-AC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;C=-AB\,\!&amp;lt;/math&amp;gt;. The effects for this design can be calculated as:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A-BC= &amp;amp; \frac{1}{2}(ab+ac-(1)-bc) \\ &lt;br /&gt;
 &amp;amp; B-AC= &amp;amp; \frac{1}{2}(ab-ac+(1)-bc) \\ &lt;br /&gt;
 &amp;amp; C-AB= &amp;amp; \frac{1}{2}(-ab+ac-(1)+bc)  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These equations can be combined with the equations for (A+BC), (B+AC) and (C+AB) to obtain the de-aliased main effects and two factor interactions. For example, adding equations (A+BC) and (A-BC) returns the main effect &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; 2A= &amp;amp; \frac{1}{2}(a-b-c+abc)+ \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; \frac{1}{2}(ab+ac-(1)-bc)  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The process of augmenting a fractional factorial design by a second fraction of the same size by simply reversing the signs (of all effect columns except &amp;lt;math&amp;gt;I\,\!&amp;lt;/math&amp;gt;) is called &#039;&#039;folding over&#039;&#039;. The combined design is referred to as a &#039;&#039;fold-over design&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Quarter and Smaller Fraction Designs==&lt;br /&gt;
&lt;br /&gt;
At times, the number of runs even for a half-fraction design are very large. In these cases, smaller fractions are used. A quarter-fraction design, denoted as &amp;lt;math&amp;gt;{2}^{k-2}\,\!&amp;lt;/math&amp;gt;, consists of a fourth of the runs of the full factorial design. Quarter-fraction designs require two defining relations. The first defining relation returns the half-fraction or the &amp;lt;math&amp;gt;{2}^{k-1}\,\!&amp;lt;/math&amp;gt; design. The second defining relation selects half of the runs of the &amp;lt;math&amp;gt;{2}^{k-1}\,\!&amp;lt;/math&amp;gt; design to give the quarter-fraction. For example, consider the &amp;lt;math&amp;gt;{2}^{4}\,\!&amp;lt;/math&amp;gt; design. To obtain a &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design from this design, first a half-fraction of this design is obtained by using a defining relation. Assume that the defining relation used is &amp;lt;math&amp;gt;I=ABCD\,\!&amp;lt;/math&amp;gt;. The design matrix for the resulting &amp;lt;math&amp;gt;{2}^{4-1}\,\!&amp;lt;/math&amp;gt; design is shown in figure (a) below. Now, a quarter-fraction can be obtained from the &amp;lt;math&amp;gt;{2}^{4-1}\,\!&amp;lt;/math&amp;gt; design shown in figure (a) below using a second defining relation &amp;lt;math&amp;gt;I=AD\,\!&amp;lt;/math&amp;gt;. The resulting &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design obtained is shown in figure (b) below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.37.png|thumb|center|465px|Fractions of the &amp;lt;math&amp;gt;2^4\,\!&amp;lt;/math&amp;gt; design - Figure (a) shows the &amp;lt;math&amp;gt;2^{4-1}&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABCD\,\!&amp;lt;/math&amp;gt; and (b) shows the &amp;lt;math&amp;gt;2^{4-2}\,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABCD=AD=BC\,\!&amp;lt;/math&amp;gt;.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complete defining relation for this &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design is: &lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;I=ABCD=AD=BC\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the effect, &amp;lt;math&amp;gt;BC,\,\!&amp;lt;/math&amp;gt; in the defining relation is the generalized interaction of &amp;lt;math&amp;gt;ABCD\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt; and is obtained using &amp;lt;math&amp;gt;(ABCD)(AD)={{A}^{2}}BC{{D}^{2}}=BC\,\!&amp;lt;/math&amp;gt;. In general, a &amp;lt;math&amp;gt;{2}^{k-p}\,\!&amp;lt;/math&amp;gt; fractional factorial design requires &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; independent generators. The defining relation for the design consists of the &amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; independent generators and their &amp;lt;math&amp;gt;{2}^{p}\,\!&amp;lt;/math&amp;gt; - (&amp;lt;math&amp;gt;p\,\!&amp;lt;/math&amp;gt; +1) generalized interactions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Calculation of Aliases===&lt;br /&gt;
&lt;br /&gt;
The alias structure for the present &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design can be obtained using the defining relation of equation (I=ABCD=AD=BC) following the procedure explained in [[Two_Level_Factorial_Experiments#Half-fraction_Designs| Half-fraction Designs]]. For example, multiplying the defining relation by &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; returns the effects aliased with the main effect, &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, as follows:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A\cdot I= &amp;amp; A\cdot ABCD=A\cdot AD=A\cdot BC \\ &lt;br /&gt;
 &amp;amp; A= &amp;amp; {{A}^{2}}BCD={{A}^{2}}D=ABC \\ &lt;br /&gt;
 &amp;amp; A= &amp;amp; BCD=D=ABC  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Therefore, in the present &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design, it is not possible to distinguish between effects &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;BCD\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;ABC\,\!&amp;lt;/math&amp;gt;. Similarly, multiplying the defining relation by &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt; returns the effects that are aliased with these effects:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; B= &amp;amp; ACD=ABD=C \\ &lt;br /&gt;
 &amp;amp; AB= &amp;amp; CD=AD=AC  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other aliases can be obtained in a similar way. It can be seen that each effect in this design has three aliases. In general, each effect in a &amp;lt;math&amp;gt;{2}^{k-p}\,\!&amp;lt;/math&amp;gt; design has &amp;lt;math&amp;gt;{2}^{p-1}\,\!&amp;lt;/math&amp;gt; aliases.&lt;br /&gt;
The aliases for the &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design show that in this design the main effects are aliased with each other (&amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is aliased with &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; is aliased with &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;). Therefore, this design is not a useful design and is not available in DOE++. It is important to ensure that main effects and lower order interactions of interest are not aliased in a fractional factorial design. This is known by looking at the resolution of the fractional factorial design.&lt;br /&gt;
&lt;br /&gt;
==Design Resolution==&lt;br /&gt;
&lt;br /&gt;
The resolution of a fractional factorial design is defined as the number of factors in the lowest order effect in the defining relation. For example, in the defining relation &amp;lt;math&amp;gt;I=ABCD=AD=BC\,\!&amp;lt;/math&amp;gt; of the previous &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design, the lowest-order effect is either &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;BC,\,\!&amp;lt;/math&amp;gt; containing two factors. Therefore, the resolution of this design is equal to two. The resolution of a fractional factorial design is represented using Roman numerals. For example, the previously mentioned &amp;lt;math&amp;gt;{2}^{4-2}\,\!&amp;lt;/math&amp;gt; design with a resolution of two can be represented as 2 &amp;lt;math&amp;gt;_{\text{II}}^{4-2}\,\!&amp;lt;/math&amp;gt;. The resolution provides information about the confounding in the design as explained next:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
#&#039;&#039;&#039;Resolution III Designs&#039;&#039;&#039;&amp;lt;br&amp;gt;In these designs, the lowest order effect in the defining relation has three factors (e.g., a &amp;lt;math&amp;gt;{2}^{5-2}\,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABDE=ABC=CDE\,\!&amp;lt;/math&amp;gt;). In resolution III designs, no main effects are aliased with any other main effects, but main effects are aliased with two factor interactions. In addition, some two factor interactions are aliased with each other.&lt;br /&gt;
#&#039;&#039;&#039;Resolution IV Designs&#039;&#039;&#039;&amp;lt;br&amp;gt;In these designs, the lowest order effect in the defining relation has four factors (e.g., a &amp;lt;math&amp;gt;{2}^{5-1}\,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABDE\,\!&amp;lt;/math&amp;gt;). In resolution IV designs, no main effects are aliased with any other main effects or two factor interactions. However, some main effects are aliased with three factor interactions and the two factor interactions are aliased with each other.&lt;br /&gt;
#&#039;&#039;&#039;Resolution V Designs&#039;&#039;&#039;&amp;lt;br&amp;gt;In these designs the lowest order effect in the defining relation has five factors (e.g., a &amp;lt;math&amp;gt;{2}^{5-1}\,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABCDE\,\!&amp;lt;/math&amp;gt;). In resolution V designs, no main effects or two factor interactions are aliased with any other main effects or two factor interactions. However, some main effects are aliased with four factor interactions and the two factor interactions are aliased with three factor interactions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fractional factorial designs with the highest resolution possible should be selected because the higher the resolution of the design, the less severe the degree of confounding. In general, designs with a resolution less than III are never used because in these designs some of the main effects are aliased with each other. The table below shows fractional factorial designs with the highest available resolution for three to ten factor designs along with their defining relations. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet7.3.png|thumb|center|474px|Highest resolution designs available for fractional factorial designs with 3 to 10 factors.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All of the two level fractional factorial designs available in DOE++ are shown next.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7.38.png|thumb|center|471px|Two level fractional factorial designs available in DOE++ and their resolutions.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Minimum Aberration Designs===&lt;br /&gt;
At times, different designs with the same resolution but different aliasing may be available. The best design to select in such a case is the minimum aberration design. For example, all &amp;lt;math&amp;gt;{2}^{7-2}\,\!&amp;lt;/math&amp;gt; designs in the fourth table have a resolution of four (since the generator with the minimum number of factors in each design has four factors). Design &amp;lt;math&amp;gt;1\,\!&amp;lt;/math&amp;gt; has three generators of length four (&amp;lt;math&amp;gt;ABCF,\,\!&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;BCDG,\,\!&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;ADFG\,\!&amp;lt;/math&amp;gt;). Design &amp;lt;math&amp;gt;2\,\!&amp;lt;/math&amp;gt; has two generators of length four (&amp;lt;math&amp;gt;ABCF,\,\!&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;ADEG\,\!&amp;lt;/math&amp;gt;). Design &amp;lt;math&amp;gt;3\,\!&amp;lt;/math&amp;gt; has one generator of length four (&amp;lt;math&amp;gt;CEFG\,\!&amp;lt;/math&amp;gt;). Therefore, design &amp;lt;math&amp;gt;3\,\!&amp;lt;/math&amp;gt; has the least number of generators with the minimum length of four. Design &amp;lt;math&amp;gt;3\,\!&amp;lt;/math&amp;gt; is called the minimum aberration design. It can be seen that the alias structure for design &amp;lt;math&amp;gt;3\,\!&amp;lt;/math&amp;gt; is less involved compared to the other designs. For details refer to [[DOE_References|[Wu, 2000]]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet7.4.png|thumb|center|432px|Three &amp;lt;math&amp;gt;2_{IV}^{7-2}\,\!&amp;lt;/math&amp;gt; designs with different defining relations.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
The design of an automobile fuel cone is thought to be affected by six factors in the manufacturing process: cavity temperature (factor &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;), core temperature (factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;), melt temperature (factor &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt;), hold pressure (factor &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt;), injection speed (factor &amp;lt;math&amp;gt;E\,\!&amp;lt;/math&amp;gt;) and cool time (factor &amp;lt;math&amp;gt;F\,\!&amp;lt;/math&amp;gt;). The manufacturer of the fuel cone is unable to run the &amp;lt;math&amp;gt;{2}^{6}=64\,\!&amp;lt;/math&amp;gt; runs required to complete one replicate for a two level full factorial experiment with six factors. Instead, they decide to run a fractional factorial design. Considering that three factor and higher order interactions are likely to be inactive, the manufacturer selects a &amp;lt;math&amp;gt;{2}^{6-2}\,\!&amp;lt;/math&amp;gt; design that will require only 16 runs. The manufacturer chooses the resolution IV design which will ensure that all main effects are free from aliasing (assuming three factor and higher order interactions are absent). However, in this design the two factor interactions may be aliased with each other. It is decided that, if important two factor interactions are found to be present, additional experiment trials may be conducted to separate the aliased effects. The performance of the fuel cone is measured on a scale of 1 to 15. In DOE++, the design for this experiment is set up using the properties shown in the following figure. The Fraction Generators for the design, &amp;lt;math&amp;gt;E=ABC\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;F=BCD\,\!&amp;lt;/math&amp;gt;, are the same as the defaults used in DOE++. The resulting &amp;lt;math&amp;gt;{2}^{6-2}\,\!&amp;lt;/math&amp;gt; design and the corresponding response values are shown in the following two figures.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_39.png|thumb|center|538px|Design properties for the experiment in the [[Two_Level_Factorial_Experiments#Example_7| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_40.png|thumb|center|623px|Experiment design for the [[Two_Level_Factorial_Experiments#Example_7| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The complete alias structure for the 2 &amp;lt;math&amp;gt;_{\text{IV}}^{6-2}\,\!&amp;lt;/math&amp;gt; design is shown next.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;I=ABCE=ADEF=BCDF\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A= &amp;amp; BCE=DEF=ABCDF \\ &lt;br /&gt;
 &amp;amp; B= &amp;amp; ACE=CDF=ABDEF \\ &lt;br /&gt;
 &amp;amp; C= &amp;amp; ABE=BDF=ACDEF \\ &lt;br /&gt;
 &amp;amp; D= &amp;amp; AEF=BCF=ABCDE \\ &lt;br /&gt;
 &amp;amp; E= &amp;amp; ABC=ADF=BCDEF \\ &lt;br /&gt;
 &amp;amp; F= &amp;amp; ADE=BCD=ABCEF  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; AB= &amp;amp; CE=ACDF=BDEF \\ &lt;br /&gt;
 &amp;amp; AC= &amp;amp; BE=ABDF=CDEF \\ &lt;br /&gt;
 &amp;amp; AD= &amp;amp; EF=ABCF=BCDE \\ &lt;br /&gt;
 &amp;amp; AE= &amp;amp; BC=DF=ABCDEF \\ &lt;br /&gt;
 &amp;amp; AF= &amp;amp; DE=ABCD=BCEF \\ &lt;br /&gt;
 &amp;amp; BD= &amp;amp; CF=ABEF=ACDE \\ &lt;br /&gt;
 &amp;amp; BF= &amp;amp; CD=ABDE=ACEF  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; ABD= &amp;amp; ACF=BEF=CDE \\ &lt;br /&gt;
 &amp;amp; ABF= &amp;amp; ACD=BDE=CEF  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In DOE++, the alias structure is displayed in the Design Summary and as part of the Design Evaluation result, as shown next:&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_41.png|thumb|center|700px|Alias structure for the experiment design in the [[Two_Level_Factorial_Experiments#Example_7| example]].]]&lt;br /&gt;
&lt;br /&gt;
The normal probability plot of effects for this unreplicated design shows the main effects of factors &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt; and the interaction effect, &amp;lt;math&amp;gt;BF\,\!&amp;lt;/math&amp;gt;, to be significant (see the following figure). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_42.png|thumb|center|599px|Normal probability plot of effects for the experiment in the [[Two_Level_Factorial_Experiments#Example_7| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the alias structure, it can be seen that for the present design interaction effect, &amp;lt;math&amp;gt;BF,\,\!&amp;lt;/math&amp;gt; is confounded with &amp;lt;math&amp;gt;CD\,\!&amp;lt;/math&amp;gt;. Therefore, the actual source of this effect cannot be known on the basis of the present experiment. However because neither factor &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; nor &amp;lt;math&amp;gt;F\,\!&amp;lt;/math&amp;gt; is found to be significant there is an indication the observed effect is likely due to interaction, &amp;lt;math&amp;gt;CD\,\!&amp;lt;/math&amp;gt;. To confirm this, a follow-up &amp;lt;math&amp;gt;{2}^{2}\,\!&amp;lt;/math&amp;gt; experiment is run involving only factors &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;F\,\!&amp;lt;/math&amp;gt;. The interaction, &amp;lt;math&amp;gt;BF\,\!&amp;lt;/math&amp;gt;, is found to be inactive, leading to the conclusion that the interaction effect in the original experiment is effect, &amp;lt;math&amp;gt;CD\,\!&amp;lt;/math&amp;gt;. Given these results, the fitted regression model for the fuel cone design as per the coefficients obtained from DOE++ is shown next.&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\hat{y}=7.6875+C+2\cdot D+2.1875\cdot CD\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe7_43.png|thumb|center|629px|Effect coefficients for the experiment in the [[Two_Level_Factorial_Experiments#Example_7| example]].]]&lt;br /&gt;
&lt;br /&gt;
==Projection==&lt;br /&gt;
&lt;br /&gt;
Projection refers to the reduction of a fractional factorial design to a full factorial design by dropping out some of the factors of the design. Any fractional factorial design of resolution, &amp;lt;math&amp;gt;R,\,\!&amp;lt;/math&amp;gt; can be reduced to complete factorial designs in any subset of &amp;lt;math&amp;gt;R-1\,\!&amp;lt;/math&amp;gt; factors. For example, consider the 2 &amp;lt;math&amp;gt;_{\text{IV}}^{7-3}\,\!&amp;lt;/math&amp;gt; design. The resolution of this design is four. Therefore, this design can be reduced to full factorial designs in any three (&amp;lt;math&amp;gt;4-1=3\,\!&amp;lt;/math&amp;gt;) of the original seven factors (by dropping the remaining four of factors). Further, a fractional factorial design can also be reduced to a full factorial design in any &amp;lt;math&amp;gt;R\,\!&amp;lt;/math&amp;gt; of the original factors, as long as these &amp;lt;math&amp;gt;R\,\!&amp;lt;/math&amp;gt; factors are not part of the generator in the defining relation. Again consider the 2 &amp;lt;math&amp;gt;_{\text{IV}}^{7-3}\,\!&amp;lt;/math&amp;gt; design. This design can be reduced to a full factorial design in four factors provided these four factors do not appear together as a generator in the defining relation. The complete defining relation for this design is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; I= &amp;amp; ABCE=BCDF=ACDG=ADEF=ABFG=BDEG=CEFG  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Therefore, there are seven four factor combinations out of the 35 (&amp;lt;math&amp;gt;(_{7}^{4})=35\,\!&amp;lt;/math&amp;gt;) possible four-factor combinations that are used as generators in the defining relation. The designs with the remaining 28 four factor combinations would be full factorial 16-run designs. For example, factors &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt; do not occur as a generator in the defining relation of the 2 &amp;lt;math&amp;gt;_{\text{IV}}^{7-3}\,\!&amp;lt;/math&amp;gt; design. If the remaining factors, &amp;lt;math&amp;gt;E\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;F\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;G\,\!&amp;lt;/math&amp;gt;, are dropped, the 2 &amp;lt;math&amp;gt;_{\text{IV}}^{7-3}\,\!&amp;lt;/math&amp;gt; design will reduce to a full factorial design in &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;C\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;D\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Resolution III Designs==&lt;br /&gt;
&lt;br /&gt;
At times, the factors to be investigated in screening experiments are so large that even running a fractional factorial design is impractical. This can be partially solved by using resolution III fractional factorial designs in the cases where three factor and higher order interactions can be assumed to be unimportant. Resolution III designs, such as the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design, can be used to estimate &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using just &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs. In these designs, the main effects are aliased with two factor interactions. Once the results from these designs are obtained, and knowing that three factor and higher order interactions are unimportant, the experimenter can decide if there is a need to run a fold-over design to de-alias the main effects from the two factor interactions. Thus, the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design can be used to investigate three factors in four runs, the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design can be used to investigate seven factors in eight runs, the 2 &amp;lt;math&amp;gt;_{\text{III}}^{15-11}\,\!&amp;lt;/math&amp;gt; design can be used to investigate fifteen factors in sixteen runs and so on.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
&lt;br /&gt;
{{:Resolution_III_Design_Example}}&lt;br /&gt;
&lt;br /&gt;
==Alias Matrix==&lt;br /&gt;
In [[Two_Level_Factorial_Experiments#Half-fraction_Designs| Half-fraction designs]] and [[Two_Level_Factorial_Experiments#Quarter_and_Smaller_Fraction_Designs| Quarter and Smaller Fraction Designs]], the alias structure for fractional factorial designs was obtained using the defining relation. However, this method of obtaining the alias structure is not very efficient when the alias structure is very complex or when partial aliasing is involved.  One of the ways to obtain the alias structure for any design, regardless of its complexity, is to use the alias matrix. The alias matrix for a design is calculated using &amp;lt;math&amp;gt;{{(X_{1}^{\prime }{{X}_{1}})}^{-1}}X_{1}^{\prime }{{X}_{2}}\,\!&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;{{X}_{1}}\,\!&amp;lt;/math&amp;gt; is the portion of the design matrix, &amp;lt;math&amp;gt;X,\,\!&amp;lt;/math&amp;gt; that contains the effects for which the aliases need to be calculated, and &amp;lt;math&amp;gt;{{X}_{2}}\,\!&amp;lt;/math&amp;gt; contains the remaining columns of the design matrix, other than those included in &amp;lt;math&amp;gt;{{X}_{1}}\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To illustrate the use of the alias matrix, consider the design matrix for the 2 &amp;lt;math&amp;gt;_{\text{IV}}^{4-1}\,\!&amp;lt;/math&amp;gt; design (using the defining relation &amp;lt;math&amp;gt;I=ABCD\,\!&amp;lt;/math&amp;gt;) shown next:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Chapter7__879.png|center|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The alias structure for this design can be obtained by defining &amp;lt;math&amp;gt;{{X}_{1}}\,\!&amp;lt;/math&amp;gt; using eight columns since the 2 &amp;lt;math&amp;gt;_{\text{IV}}^{4-1}\,\!&amp;lt;/math&amp;gt; design estimates eight effects. If the first eight columns of &amp;lt;math&amp;gt;X\,\!&amp;lt;/math&amp;gt; are used then &amp;lt;math&amp;gt;{{X}_{1}}\,\!&amp;lt;/math&amp;gt; is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Chapter7__884.png|center|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;{{X}_{2}}\,\!&amp;lt;/math&amp;gt; is obtained using the remaining columns as:  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Chapter7__886.png|center|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the alias matrix &amp;lt;math&amp;gt;{{(X_{1}^{\prime }{{X}_{1}})}^{-1}}X_{1}^{\prime }{{X}_{2}}\,\!&amp;lt;/math&amp;gt; is:  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Chapter7__888.png|center|link=]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The alias relations can be easily obtained by observing the alias matrix as:  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; I= &amp;amp; ABCD \\ &lt;br /&gt;
 &amp;amp; A= &amp;amp; BCD \\ &lt;br /&gt;
 &amp;amp; B= &amp;amp; ACD \\ &lt;br /&gt;
 &amp;amp; AB= &amp;amp; CD \\ &lt;br /&gt;
 &amp;amp; C= &amp;amp; ABD \\ &lt;br /&gt;
 &amp;amp; AC= &amp;amp; BD \\ &lt;br /&gt;
 &amp;amp; BC= &amp;amp; AD \\ &lt;br /&gt;
 &amp;amp; D= &amp;amp; ABC  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Doe7.38.png&amp;diff=62024</id>
		<title>File:Doe7.38.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Doe7.38.png&amp;diff=62024"/>
		<updated>2015-12-15T15:57:48Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: uploaded a new version of &amp;quot;File:Doe7.38.png&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61610</id>
		<title>Highly Fractional Factorial Designs</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61610"/>
		<updated>2015-11-24T18:30:07Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Doebook|9}}&lt;br /&gt;
This chapter discusses factorial designs that are commonly used in designed experiments, but are not necessarily limited to two level factors. These designs are the [[Highly_Fractional_Factorial_Designs#Plackett-Burman_Designs|Plackett-Burman designs]] and [[Highly_Fractional_Factorial_Designs#Taguchi.27s_Orthogonal_Arrays|Taguchi&#039;s orthogonal arrays]].&lt;br /&gt;
&lt;br /&gt;
==Plackett-Burman Designs==&lt;br /&gt;
&lt;br /&gt;
It was mentioned in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]] that resolution III designs can be used as highly fractional designs to investigate &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs (provided that three factor and higher order interaction effects are not important to the experimenter). A limitation with these designs is that all runs in these designs have to be a power of 2. The valid runs for these designs are 4, 8, 16, 32, etc. Therefore, the next design after the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design with 4 runs is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design with 8 runs, and the design after this is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{15-11}\,\!&amp;lt;/math&amp;gt; design with 32 runs and so on, as shown in the next table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.1.png|thumb|center|487px|Highly fractional designs to investigate main effects.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plackett-Burman designs solve this problem. These designs were proposed by R. L. Plackett and J.P. Burman (1946). They allow the estimation of &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs. In these designs, runs are a multiple of 4 (i.e., 4, 8, 12, 16, 20 and so on). When the runs are a power of 2, the designs correspond to the resolution III two factor fractional factorial designs. Although Plackett-Burman designs are all two level orthogonal designs, the alias structure for these designs is complicated when runs are not a power of 2.&lt;br /&gt;
&lt;br /&gt;
As an example, consider the 12-run Plackett-Burman design shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.1.png|thumb|center|400px|12-run Plackett-Burman design.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If 11 main effects are to be estimated using this design, then each of these main effects is partially aliased with all other two factor interactions not containing that main effect. For example, the main effect &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is partially aliased with all two factor interactions except &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AE\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AF\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AG\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AH\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AJ\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AK\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AL\,\!&amp;lt;/math&amp;gt;. There are 45 such two factor interactions that are aliased with &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A= &amp;amp; A-\frac{1}{3}BC-\frac{1}{3}BD+\frac{1}{3}CD-\frac{1}{3}BE-\frac{1}{3}CE+\frac{1}{3}DE+... \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; ...+\frac{1}{3}EL-\frac{1}{3}FL-\frac{1}{3}GL+\frac{1}{3}HL+\frac{1}{3}JL-\frac{1}{3}KL  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Due to the complex aliasing, Plackett-Burman designs involving a large number of factors should be used with care. Some of the Plackett-Burman designs available in DOE++ are included in [[Plackett-Burman_Designs|Appendix C]].&lt;br /&gt;
&lt;br /&gt;
==Taguchi&#039;s Orthogonal Arrays==&lt;br /&gt;
&lt;br /&gt;
Taguchi&#039;s orthogonal arrays are highly fractional orthogonal designs proposed by Dr. Genichi Taguchi, a Japanese industrialist. These designs can be used to estimate main effects using only a few experimental runs. These designs are not only applicable to two level factorial experiments; they can also investigate main effects when factors have more than two levels. Designs are also available to investigate main effects for certain mixed level experiments where the factors included do not have the same number of levels.  As in the case of Placket-Burman designs, these designs require the experimenter to assume that interaction effects are unimportant and can be ignored. A few of Taguchi&#039;s orthogonal arrays available in DOE++ are included in [[Taguchi_Orthogonal_Arrays|Appendix D]].&lt;br /&gt;
&lt;br /&gt;
Some of Taguchi&#039;s arrays, with runs that are a power of 2, are similar to the corresponding 2 &amp;lt;math&amp;gt;_{\text{III}}^{k-f}\,\!&amp;lt;/math&amp;gt; designs. For example, consider the L4 array shown in figure (a) below. The L4 array is denoted as L4(2^3) in DOE++. L4 means the array requires 4 runs. 2^3 indicates that the design estimates up to three main effects at 2 levels each. The L4 array can be used to estimate three main effects using four runs provided that the two factor and three factor interactions can be ignored. Figure (b) below shows the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design (defining relation &amp;lt;math&amp;gt;I=-ABC\,\!&amp;lt;/math&amp;gt; ) which also requires four runs and can be used to estimate up to three main effects, assuming that all two factor and three factor interactions are unimportant. A comparison between the two designs shows that the columns in the two designs are the same except for the arrangement of the columns. In figure (c) below, columns of the L4 array are marked with the name of the effect from the corresponding column of the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.3.png|thumb|center|400px|Taguchi&#039;s L4 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{3-1} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=-ABC \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L4 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, consider the L8(2^7) array shown in figure (a) below. This design can be used to estimate up to seven main effects using eight runs. This array is again similar to the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design shown in figure (b) below, except that the aliasing between the columns of the two designs differs in sign for some of the columns (see figure (c)).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.4.png|thumb|center|400px|Taguchi&#039;s L8 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{7-4} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABD=ACE=BCF=ABCG \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L8 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The L8 array can also be used as a full factorial three factor experiment design in the same way as a &amp;lt;math&amp;gt;2^{3}\,\!&amp;lt;/math&amp;gt; design. However, the orthogonal arrays should be used carefully in such cases, taking into consideration the alias relationships between the columns of the array. For the L8 array, figure (c) above shows that the third column of the array is the product of the first two columns. If the L8 array is used as a two level full factorial design in the place of a 2 &amp;lt;math&amp;gt;^{3}\,\!&amp;lt;/math&amp;gt; design, and if the main effects are assigned to the first three columns, the main effect assigned to the third column will be aliased with the two factor interaction of the first two main effects. The proper assignment of the main effects to the columns of the L8 array requires the experimenter to assign the three main effects to the first, second and fourth columns. These columns are sometimes referred to as the &#039;&#039;preferred columns&#039;&#039; for the L8 array. To know the preferred columns for any of the orthogonal arrays, the alias relationships between the array columns must be known. The alias relations between the main effects and two factor interactions of the columns for the L8 array are shown in the next table. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.2.png|thumb|center|400px|Alias relations for the L8 array.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cell value in any (&amp;lt;math&amp;gt;i,j\,\!&amp;lt;/math&amp;gt;) cell of the table gives the column number of the two factor interaction for the &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt;th row and &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;th column. For example, to know which column is confounded with the interaction of the first and second columns, look at the value in the ( &amp;lt;math&amp;gt;1,2\,\!&amp;lt;/math&amp;gt; ) cell. The value of 3 indicates that the third column is the same as the product of the first and second columns. The alias relations for some of Taguchi&#039;s orthogonal arrays are available in [[Alias_Relations_for_Taguchi_Orthogonal_Arrays|Appendix E]].&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
Recall the experiment to investigate factors affecting the surface finish of automobile brake drums discussed in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. The three factors investigated in the experiment were honing pressure (factor A), number of strokes (factor B) and cycle time (factor C). Assume that you used Taguchi&#039;s L8 orthogonal array to investigate the three factors instead of the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design that was used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. Based on the discussion in the previous section, the preferred columns for the L8 array are the first, second and fourth columns. Therefore, the three factors should be assigned to these columns. The three factors are assigned to these columns based on the figure (c) above, so that you can easily compare results obtained from the L8 array to the ones included in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]]. Based on this assignment, the L8 array for the two replicates, along with the respective response values, should be as shown in the third table. Note that to run the experiment using the L8 array, you would use only the first, the second and the fourth column to set the three factors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.3.png|thumb|center|639px|Using Taguchi&#039;s L8 array to investigate factors affecting the surface finish of automobile brake drums.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The experiment design for this example can be set using the properties shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_5.png|thumb|center|842px|Design properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that for this design, the factor properties are set up as shown in the design summary. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_6.png|thumb|center|828px|Factor properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The resulting design along with the response values is shown in the figure below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_7.png|thumb|center|650px|Experiment design for the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And the results from DOE++ for the design are shown in the next figure. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_8_1.png|thumb|center|613px|Results for the experiment in the example.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results identify honing pressure, number of strokes, and the interaction between honing pressure and cycle time to be significant effects. This is identical to the conclusion obtained from the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]].&lt;br /&gt;
&lt;br /&gt;
=== Preferred Columns in Taguchi OA===&lt;br /&gt;
One of the difficulties of using Taguchi OA is to assign factors to the appropriate columns of the array. For example, take a simple Taguchi OA L8(2^7), which can be used for experiments with up to 7 factors. If you have only 3 factors, which 3 columns in this array should be used? DOE++ provides a simple utility to help users utilize Taguchi OA more effectively by assigning factors to the appropriate columns. &lt;br /&gt;
Let’s use Taguchi OA L8(2^7) as an example. The design table for this array is: &lt;br /&gt;
 &lt;br /&gt;
[[Image:DOEtableChapter9.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a fractional factorial design for 7 factors. For any fractional factorial design, the first thing we need to do is check its alias structure. In general, the alias structures for Taguchi OAs are very complicated. People usually use the following table to represent the alias relations between each factor. For the above orthogonal array, the alias table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7&lt;br /&gt;
|-&lt;br /&gt;
|2x3||	1x3||	1x2||	1x5||	1x4||	1x7||	1x6&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x6||	4x7||	2x6||	2x7||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|6x7||	5x7||	5x6||	3x7||	3x6||	3x5||	3x4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the above table, an Arabic number is used to represent a factor. For instance, “1” represents the factor assigned to the 1st column in the array. “2x3” represents the interaction effect of the two factors assigned to column 2 and 3. Each column in the above alias table lists all the 2-way interaction effects that are aliased with the main effect of the factor assigned to this column. For example, for the 1st column, the main effect of the factor assigned to it is aliased with interaction effects of 2x3, 4x5 and 6x7. &lt;br /&gt;
If an experiment has only 3 factors and these 3 factors A, B and C are assigned to the first 3 columns of the above L8(2^7) array, then the design table will be:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 3)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The alias structure for the above table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[I] = I – ABC&lt;br /&gt;
|-&lt;br /&gt;
|[A] = A – BC&lt;br /&gt;
|-&lt;br /&gt;
|[B] = B – AC&lt;br /&gt;
|-&lt;br /&gt;
|[C] = C – AB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is a resolution 3 design. All the main effects are aliased with 2-way interactions. There are many ways to choose 3 columns from the 7 columns of L8(2^7). If the 3 factors are assigned to column 1, 2, and 4, then the design table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 4)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For experiments using the above design table, all the effects will be alias free.  Therefore, this design is much better than the previous one which used column 1, 2, and 3 of L8(2^7). Although both designs have the same number of runs, more information can be obtained from this design since it is alias free. &lt;br /&gt;
&lt;br /&gt;
Clearly, it is very important to assign factors to the right columns when applying Taguchi OA. DOE++ can help users automatically choose the right columns when the number of factors is less than the number of columns in a Taguchi OA. The selection is based on the specified model terms by users. Let’s use an example to explain this.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment with 3 qualitative factors. Factors A and B have 2 levels; factor C has 4 levels. The experimenters are interested in all the main effects and the interaction effect AC.&lt;br /&gt;
&lt;br /&gt;
Based on this requirement, Taguchi OA L16(2^6*4^3) can be used since it can handle both 2 level and 4 level factors. It has 9 columns. The first 6 columns are used for 2 level factors and the last 3 columns are used for 4 level factors. We need to assign factor A and B to two of the first 6 columns, and assign factor C to one of the last 3 columns. &lt;br /&gt;
&lt;br /&gt;
In DOE++, we can choose L16(2^6*4^3) in the Additional Settings. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_9.png|thumb|center|842px|Selecting the Taguchi OA design type.]] &lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;Specify Interaction Terms&#039;&#039;&#039; to specify the interaction terms that are of interest to the experimenters. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_10.png|thumb|center|420px|Specifying the interaction terms of interest.]] &lt;br /&gt;
&lt;br /&gt;
Based on the specified interaction effects, DOE++ will assign each factor to the appropriate column. In this case, they are column 1, 3, and 7 as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_11.png|thumb|center|842px|The interaction terms of interest have been specified.]]  &lt;br /&gt;
&lt;br /&gt;
However, for a given Taguchi OA, it may not be possible to estimate all the specified interaction terms. If not all the requirements can be satisfied, DOE++ will assign factors to columns that result in the least number of aliased effects. In this case, users should either use another Taguchi OA or other design types. The following example is one of these cases.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment for a test with 4 qualitative factors. Factors A and B have 2 levels; C and D have 4 levels. We are interested in all the main effects and the interaction effects AC and BD. &lt;br /&gt;
&lt;br /&gt;
Assume again we want to use Taguchi OA L16(2^6*4^3). Click &#039;&#039;&#039;Specify Interaction Terms&#039;&#039;&#039; as shown above to specify the interaction effects that you want to estimate in the experiment. &lt;br /&gt;
 &lt;br /&gt;
[[Image:doe8_12.png|thumb|center|420px|Specifying the interaction terms of interest.]] &lt;br /&gt;
&lt;br /&gt;
When you click &#039;&#039;&#039;OK&#039;&#039;&#039;, you will see a message warning that some of the specified interaction effects are aliased with main effects. These means that it is not possible to clearly estimate all the main effects and the specified interaction effects AC and BD. &lt;br /&gt;
&lt;br /&gt;
This can be explained by checking the alias table of an L16(2^6*4^3) design as given below.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7||	8||	9&lt;br /&gt;
|-&lt;br /&gt;
|2x7||	1x7||	1x9||	1x5||	1x4||	1x8||	1x2||	1x6||	1x3&lt;br /&gt;
|-&lt;br /&gt;
|3x9||	3x6||	2x6||	2x8||	2x9||	2x3||	1x8||	1x7||	1x7&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x8||	4x7||	3x7||	3x8||	4x9||	1x9||	1x9||	1x8&lt;br /&gt;
|-&lt;br /&gt;
|6x8||	5x9||	5x8||	6x9||	6x7||	5x7||	2x8||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|7x8||	7x8||	7x8||	7x8||	7x8||	7x8||	2x9||	2x7||	2x7&lt;br /&gt;
|-&lt;br /&gt;
|7x9||	7x9||	7x9||	7x9||	7x9||	7x9||	3x8||	2x9||	2x8&lt;br /&gt;
|-&lt;br /&gt;
|8x9||	8x9||	8x9||	8x9||	8x9||	8x9||	3x9||	3x5||	3x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x8||	3x7||	3x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x9||	3x9||	4x6&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x6||	4x7||	4x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x8||	4x9||	4x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x9||	5x7||	5x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x8||	5x9||	5x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x9||	6x7||	6x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||8x9||	6x9||	6x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	|| ||	7x9||	7x8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
From this table, we can see that it is impossible to clearly estimate both AC and BD. Factors C and D can only be assigned to the last three columns since they are 4 level factors. Assume we assign factor C to column 7 and factor D to column 8. Factor B (2 level) will be in one of the columns from 1 to 6. Therefore, effect BD will be one of the effects highlighted in the table, where the first term of the interaction is between 1 and 6 and the last term is 8 (i.e., factor D).&lt;br /&gt;
&lt;br /&gt;
The above alias table shows that factor C is aliased with one of those highlighted effects. Thus, no matter which of the first six columns is assigned to factor B, the main effect C will be aliased with interaction effect BD. This is also true if C is assigned to column 8 or 9. Therefore, if L16(2^6*4^3) is used, there is no way to clearly estimate all the main effects and the interaction effects AC and BD. Another Taguchi OA or other design types such as a general full factorial design should be used. A more efficient way might be to create an optimal custom design that can clearly estimate all the specified terms. For more detail, please refer to the chapter on [[Optimal Custom Designs]].&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61609</id>
		<title>Highly Fractional Factorial Designs</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61609"/>
		<updated>2015-11-24T18:29:22Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Doebook|9}}&lt;br /&gt;
This chapter discusses factorial designs that are commonly used in designed experiments, but are not necessarily limited to two level factors. These designs are the [[Highly_Fractional_Factorial_Designs#Plackett-Burman_Designs|Plackett-Burman designs]] and [[Highly_Fractional_Factorial_Designs#Taguchi.27s_Orthogonal_Arrays|Taguchi&#039;s orthogonal arrays]].&lt;br /&gt;
&lt;br /&gt;
==Plackett-Burman Designs==&lt;br /&gt;
&lt;br /&gt;
It was mentioned in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]] that resolution III designs can be used as highly fractional designs to investigate &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs (provided that three factor and higher order interaction effects are not important to the experimenter). A limitation with these designs is that all runs in these designs have to be a power of 2. The valid runs for these designs are 4, 8, 16, 32, etc. Therefore, the next design after the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design with 4 runs is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design with 8 runs, and the design after this is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{15-11}\,\!&amp;lt;/math&amp;gt; design with 32 runs and so on, as shown in the next table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.1.png|thumb|center|487px|Highly fractional designs to investigate main effects.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plackett-Burman designs solve this problem. These designs were proposed by R. L. Plackett and J.P. Burman (1946). They allow the estimation of &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs. In these designs, runs are a multiple of 4 (i.e., 4, 8, 12, 16, 20 and so on). When the runs are a power of 2, the designs correspond to the resolution III two factor fractional factorial designs. Although Plackett-Burman designs are all two level orthogonal designs, the alias structure for these designs is complicated when runs are not a power of 2.&lt;br /&gt;
&lt;br /&gt;
As an example, consider the 12-run Plackett-Burman design shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.1.png|thumb|center|400px|12-run Plackett-Burman design.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If 11 main effects are to be estimated using this design, then each of these main effects is partially aliased with all other two factor interactions not containing that main effect. For example, the main effect &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is partially aliased with all two factor interactions except &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AE\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AF\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AG\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AH\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AJ\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AK\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AL\,\!&amp;lt;/math&amp;gt;. There are 45 such two factor interactions that are aliased with &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A= &amp;amp; A-\frac{1}{3}BC-\frac{1}{3}BD+\frac{1}{3}CD-\frac{1}{3}BE-\frac{1}{3}CE+\frac{1}{3}DE+... \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; ...+\frac{1}{3}EL-\frac{1}{3}FL-\frac{1}{3}GL+\frac{1}{3}HL+\frac{1}{3}JL-\frac{1}{3}KL  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Due to the complex aliasing, Plackett-Burman designs involving a large number of factors should be used with care. Some of the Plackett-Burman designs available in DOE++ are included in [[Plackett-Burman_Designs|Appendix C]].&lt;br /&gt;
&lt;br /&gt;
==Taguchi&#039;s Orthogonal Arrays==&lt;br /&gt;
&lt;br /&gt;
Taguchi&#039;s orthogonal arrays are highly fractional orthogonal designs proposed by Dr. Genichi Taguchi, a Japanese industrialist. These designs can be used to estimate main effects using only a few experimental runs. These designs are not only applicable to two level factorial experiments; they can also investigate main effects when factors have more than two levels. Designs are also available to investigate main effects for certain mixed level experiments where the factors included do not have the same number of levels.  As in the case of Placket-Burman designs, these designs require the experimenter to assume that interaction effects are unimportant and can be ignored. A few of Taguchi&#039;s orthogonal arrays available in DOE++ are included in [[Taguchi_Orthogonal_Arrays|Appendix D]].&lt;br /&gt;
&lt;br /&gt;
Some of Taguchi&#039;s arrays, with runs that are a power of 2, are similar to the corresponding 2 &amp;lt;math&amp;gt;_{\text{III}}^{k-f}\,\!&amp;lt;/math&amp;gt; designs. For example, consider the L4 array shown in figure (a) below. The L4 array is denoted as L4(2^3) in DOE++. L4 means the array requires 4 runs. 2^3 indicates that the design estimates up to three main effects at 2 levels each. The L4 array can be used to estimate three main effects using four runs provided that the two factor and three factor interactions can be ignored. Figure (b) below shows the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design (defining relation &amp;lt;math&amp;gt;I=-ABC\,\!&amp;lt;/math&amp;gt; ) which also requires four runs and can be used to estimate up to three main effects, assuming that all two factor and three factor interactions are unimportant. A comparison between the two designs shows that the columns in the two designs are the same except for the arrangement of the columns. In figure (c) below, columns of the L4 array are marked with the name of the effect from the corresponding column of the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.3.png|thumb|center|400px|Taguchi&#039;s L4 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{3-1} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=-ABC \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L4 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, consider the L8(2^7) array shown in figure (a) below. This design can be used to estimate up to seven main effects using eight runs. This array is again similar to the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design shown in figure (b) below, except that the aliasing between the columns of the two designs differs in sign for some of the columns (see figure (c)).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.4.png|thumb|center|400px|Taguchi&#039;s L8 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{7-4} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABD=ACE=BCF=ABCG \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L8 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The L8 array can also be used as a full factorial three factor experiment design in the same way as a &amp;lt;math&amp;gt;2^{3}\,\!&amp;lt;/math&amp;gt; design. However, the orthogonal arrays should be used carefully in such cases, taking into consideration the alias relationships between the columns of the array. For the L8 array, figure (c) above shows that the third column of the array is the product of the first two columns. If the L8 array is used as a two level full factorial design in the place of a 2 &amp;lt;math&amp;gt;^{3}\,\!&amp;lt;/math&amp;gt; design, and if the main effects are assigned to the first three columns, the main effect assigned to the third column will be aliased with the two factor interaction of the first two main effects. The proper assignment of the main effects to the columns of the L8 array requires the experimenter to assign the three main effects to the first, second and fourth columns. These columns are sometimes referred to as the &#039;&#039;preferred columns&#039;&#039; for the L8 array. To know the preferred columns for any of the orthogonal arrays, the alias relationships between the array columns must be known. The alias relations between the main effects and two factor interactions of the columns for the L8 array are shown in the next table. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.2.png|thumb|center|400px|Alias relations for the L8 array.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cell value in any (&amp;lt;math&amp;gt;i,j\,\!&amp;lt;/math&amp;gt;) cell of the table gives the column number of the two factor interaction for the &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt;th row and &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;th column. For example, to know which column is confounded with the interaction of the first and second columns, look at the value in the ( &amp;lt;math&amp;gt;1,2\,\!&amp;lt;/math&amp;gt; ) cell. The value of 3 indicates that the third column is the same as the product of the first and second columns. The alias relations for some of Taguchi&#039;s orthogonal arrays are available in [[Alias_Relations_for_Taguchi_Orthogonal_Arrays|Appendix E]].&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
Recall the experiment to investigate factors affecting the surface finish of automobile brake drums discussed in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. The three factors investigated in the experiment were honing pressure (factor A), number of strokes (factor B) and cycle time (factor C). Assume that you used Taguchi&#039;s L8 orthogonal array to investigate the three factors instead of the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design that was used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. Based on the discussion in the previous section, the preferred columns for the L8 array are the first, second and fourth columns. Therefore, the three factors should be assigned to these columns. The three factors are assigned to these columns based on the figure (c) above, so that you can easily compare results obtained from the L8 array to the ones included in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]]. Based on this assignment, the L8 array for the two replicates, along with the respective response values, should be as shown in the third table. Note that to run the experiment using the L8 array, you would use only the first, the second and the fourth column to set the three factors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.3.png|thumb|center|639px|Using Taguchi&#039;s L8 array to investigate factors affecting the surface finish of automobile brake drums.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The experiment design for this example can be set using the properties shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_5.png|thumb|center|842px|Design properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that for this design, the factor properties are set up as shown in the design summary. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_6.png|thumb|center|828px|Factor properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The resulting design along with the response values is shown in the figure below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_7.png|thumb|center|650px|Experiment design for the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And the results from DOE++ for the design are shown in the next figure. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_8_1.png|thumb|center|613px|Results for the experiment in the example.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results identify honing pressure, number of strokes, and the interaction between honing pressure and cycle time to be significant effects. This is identical to the conclusion obtained from the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]].&lt;br /&gt;
&lt;br /&gt;
=== Preferred Columns in Taguchi OA===&lt;br /&gt;
One of the difficulties of using Taguchi OA is to assign factors to the appropriate columns of the array. For example, take a simple Taguchi OA L8(2^7), which can be used for experiments with up to 7 factors. If you have only 3 factors, which 3 columns in this array should be used? DOE++ provides a simple utility to help users utilize Taguchi OA more effectively by assigning factors to the appropriate columns. &lt;br /&gt;
Let’s use Taguchi OA L8(2^7) as an example. The design table for this array is: &lt;br /&gt;
 &lt;br /&gt;
[[Image:DOEtableChapter9.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a fractional factorial design for 7 factors. For any fractional factorial design, the first thing we need to do is check its alias structure. In general, the alias structures for Taguchi OAs are very complicated. People usually use the following table to represent the alias relations between each factor. For the above orthogonal array, the alias table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7&lt;br /&gt;
|-&lt;br /&gt;
|2x3||	1x3||	1x2||	1x5||	1x4||	1x7||	1x6&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x6||	4x7||	2x6||	2x7||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|6x7||	5x7||	5x6||	3x7||	3x6||	3x5||	3x4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the above table, an Arabic number is used to represent a factor. For instance, “1” represents the factor assigned to the 1st column in the array. “2x3” represents the interaction effect of the two factors assigned to column 2 and 3. Each column in the above alias table lists all the 2-way interaction effects that are aliased with the main effect of the factor assigned to this column. For example, for the 1st column, the main effect of the factor assigned to it is aliased with interaction effects of 2x3, 4x5 and 6x7. &lt;br /&gt;
If an experiment has only 3 factors and these 3 factors A, B and C are assigned to the first 3 columns of the above L8(2^7) array, then the design table will be:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 3)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The alias structure for the above table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[I] = I – ABC&lt;br /&gt;
|-&lt;br /&gt;
|[A] = A – BC&lt;br /&gt;
|-&lt;br /&gt;
|[B] = B – AC&lt;br /&gt;
|-&lt;br /&gt;
|[C] = C – AB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is a resolution 3 design. All the main effects are aliased with 2-way interactions. There are many ways to choose 3 columns from the 7 columns of L8(2^7). If the 3 factors are assigned to column 1, 2, and 4, then the design table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 4)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For experiments using the above design table, all the effects will be alias free.  Therefore, this design is much better than the previous one which used column 1, 2, and 3 of L8(2^7). Although both designs have the same number of runs, more information can be obtained from this design since it is alias free. &lt;br /&gt;
&lt;br /&gt;
Clearly, it is very important to assign factors to the right columns when applying Taguchi OA. DOE++ can help users automatically choose the right columns when the number of factors is less than the number of columns in a Taguchi OA. The selection is based on the specified model terms by users. Let’s use an example to explain this.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment with 3 qualitative factors. Factors A and B have 2 levels; factor C has 4 levels. The experimenters are interested in all the main effects and the interaction effect AC.&lt;br /&gt;
&lt;br /&gt;
Based on this requirement, Taguchi OA L16(2^6*4^3) can be used since it can handle both 2 level and 4 level factors. It has 9 columns. The first 6 columns are used for 2 level factors and the last 3 columns are used for 4 level factors. We need to assign factor A and B to two of the first 6 columns, and assign factor C to one of the last 3 columns. &lt;br /&gt;
&lt;br /&gt;
In DOE++, we can choose L16(2^6*4^3) in the Additional Settings. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_9.png|thumb|center|842px|Selecting the Taguchi OA design type.]] &lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;Specify Interaction Terms&#039;&#039;&#039; to specify the interaction terms that are of interest to the experimenters. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_10.png|thumb|center|420px|Specifying the interaction terms of interest.]] &lt;br /&gt;
&lt;br /&gt;
Based on the specified interaction effects, DOE++ will assign each factor to the appropriate column. In this case, they are column 1, 3, and 7 as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_11.png|thumb|center|842px|The interaction terms of interest have been specified.]]  &lt;br /&gt;
&lt;br /&gt;
However, for a given Taguchi OA, it may not be possible to estimate all the specified interaction terms. If not all the requirements can be satisfied, DOE++ will assign factors to columns that result in the least number of aliased effects. In this case, users should either use another Taguchi OA or other design types. The following example is one of these cases.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment for a test with 4 qualitative factors. Factors A and B have 2 levels; C and D have 4 levels. We are interested in all the main effects and the interaction effects AC and BD. &lt;br /&gt;
&lt;br /&gt;
Assume again we want to use Taguchi OA L16(2^6*4^3). Click &#039;&#039;&#039;Specify Interaction Terms&#039;&#039;&#039; as shown above to specify the interaction effects that you want to estimate in the experiment. &lt;br /&gt;
 &lt;br /&gt;
[[Image:doe8_12.png|thumb|center|420px|Specifying the interaction terms of interest.]] &lt;br /&gt;
&lt;br /&gt;
When you click &#039;&#039;&#039;OK&#039;&#039;&#039;, you will see a message warning that some of the specified interaction effects are aliased with main effects. These means that it is not possible to clearly estimate all the main effects and the specified interaction effects AC and BD. &lt;br /&gt;
&lt;br /&gt;
This can be explained by checking the alias table of a L16(2^6*4^3) design as given below.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7||	8||	9&lt;br /&gt;
|-&lt;br /&gt;
|2x7||	1x7||	1x9||	1x5||	1x4||	1x8||	1x2||	1x6||	1x3&lt;br /&gt;
|-&lt;br /&gt;
|3x9||	3x6||	2x6||	2x8||	2x9||	2x3||	1x8||	1x7||	1x7&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x8||	4x7||	3x7||	3x8||	4x9||	1x9||	1x9||	1x8&lt;br /&gt;
|-&lt;br /&gt;
|6x8||	5x9||	5x8||	6x9||	6x7||	5x7||	2x8||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|7x8||	7x8||	7x8||	7x8||	7x8||	7x8||	2x9||	2x7||	2x7&lt;br /&gt;
|-&lt;br /&gt;
|7x9||	7x9||	7x9||	7x9||	7x9||	7x9||	3x8||	2x9||	2x8&lt;br /&gt;
|-&lt;br /&gt;
|8x9||	8x9||	8x9||	8x9||	8x9||	8x9||	3x9||	3x5||	3x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x8||	3x7||	3x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x9||	3x9||	4x6&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x6||	4x7||	4x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x8||	4x9||	4x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x9||	5x7||	5x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x8||	5x9||	5x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x9||	6x7||	6x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||8x9||	6x9||	6x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	|| ||	7x9||	7x8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
From this table, we can see that it is impossible to clearly estimate both AC and BD. Factors C and D can only be assigned to the last three columns since they are 4 level factors. Assume we assign factor C to column 7 and factor D to column 8. Factor B (2 level) will be in one of the columns from 1 to 6. Therefore, effect BD will be one of the effects highlighted in the table, where the first term of the interaction is between 1 and 6 and the last term is 8 (i.e., factor D).&lt;br /&gt;
&lt;br /&gt;
The above alias table shows that factor C is aliased with one of those highlighted effects. Thus, no matter which of the first six columns is assigned to factor B, the main effect C will be aliased with interaction effect BD. This is also true if C is assigned to column 8 or 9. Therefore, if L16(2^6*4^3) is used, there is no way to clearly estimate all the main effects and the interaction effects AC and BD. Another Taguchi OA or other design types such as a general full factorial design should be used. A more efficient way might be to create an optimal custom design that can clearly estimate all the specified terms. For more detail, please refer to the chapter on [[Optimal Custom Designs]].&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Doe8_12.png&amp;diff=61608</id>
		<title>File:Doe8 12.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Doe8_12.png&amp;diff=61608"/>
		<updated>2015-11-24T18:24:06Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61606</id>
		<title>Highly Fractional Factorial Designs</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61606"/>
		<updated>2015-11-24T18:23:50Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Doebook|9}}&lt;br /&gt;
This chapter discusses factorial designs that are commonly used in designed experiments, but are not necessarily limited to two level factors. These designs are the [[Highly_Fractional_Factorial_Designs#Plackett-Burman_Designs|Plackett-Burman designs]] and [[Highly_Fractional_Factorial_Designs#Taguchi.27s_Orthogonal_Arrays|Taguchi&#039;s orthogonal arrays]].&lt;br /&gt;
&lt;br /&gt;
==Plackett-Burman Designs==&lt;br /&gt;
&lt;br /&gt;
It was mentioned in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]] that resolution III designs can be used as highly fractional designs to investigate &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs (provided that three factor and higher order interaction effects are not important to the experimenter). A limitation with these designs is that all runs in these designs have to be a power of 2. The valid runs for these designs are 4, 8, 16, 32, etc. Therefore, the next design after the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design with 4 runs is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design with 8 runs, and the design after this is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{15-11}\,\!&amp;lt;/math&amp;gt; design with 32 runs and so on, as shown in the next table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.1.png|thumb|center|487px|Highly fractional designs to investigate main effects.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plackett-Burman designs solve this problem. These designs were proposed by R. L. Plackett and J.P. Burman (1946). They allow the estimation of &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs. In these designs, runs are a multiple of 4 (i.e., 4, 8, 12, 16, 20 and so on). When the runs are a power of 2, the designs correspond to the resolution III two factor fractional factorial designs. Although Plackett-Burman designs are all two level orthogonal designs, the alias structure for these designs is complicated when runs are not a power of 2.&lt;br /&gt;
&lt;br /&gt;
As an example, consider the 12-run Plackett-Burman design shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.1.png|thumb|center|400px|12-run Plackett-Burman design.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If 11 main effects are to be estimated using this design, then each of these main effects is partially aliased with all other two factor interactions not containing that main effect. For example, the main effect &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is partially aliased with all two factor interactions except &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AE\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AF\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AG\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AH\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AJ\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AK\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AL\,\!&amp;lt;/math&amp;gt;. There are 45 such two factor interactions that are aliased with &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A= &amp;amp; A-\frac{1}{3}BC-\frac{1}{3}BD+\frac{1}{3}CD-\frac{1}{3}BE-\frac{1}{3}CE+\frac{1}{3}DE+... \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; ...+\frac{1}{3}EL-\frac{1}{3}FL-\frac{1}{3}GL+\frac{1}{3}HL+\frac{1}{3}JL-\frac{1}{3}KL  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Due to the complex aliasing, Plackett-Burman designs involving a large number of factors should be used with care. Some of the Plackett-Burman designs available in DOE++ are included in [[Plackett-Burman_Designs|Appendix C]].&lt;br /&gt;
&lt;br /&gt;
==Taguchi&#039;s Orthogonal Arrays==&lt;br /&gt;
&lt;br /&gt;
Taguchi&#039;s orthogonal arrays are highly fractional orthogonal designs proposed by Dr. Genichi Taguchi, a Japanese industrialist. These designs can be used to estimate main effects using only a few experimental runs. These designs are not only applicable to two level factorial experiments; they can also investigate main effects when factors have more than two levels. Designs are also available to investigate main effects for certain mixed level experiments where the factors included do not have the same number of levels.  As in the case of Placket-Burman designs, these designs require the experimenter to assume that interaction effects are unimportant and can be ignored. A few of Taguchi&#039;s orthogonal arrays available in DOE++ are included in [[Taguchi_Orthogonal_Arrays|Appendix D]].&lt;br /&gt;
&lt;br /&gt;
Some of Taguchi&#039;s arrays, with runs that are a power of 2, are similar to the corresponding 2 &amp;lt;math&amp;gt;_{\text{III}}^{k-f}\,\!&amp;lt;/math&amp;gt; designs. For example, consider the L4 array shown in figure (a) below. The L4 array is denoted as L4(2^3) in DOE++. L4 means the array requires 4 runs. 2^3 indicates that the design estimates up to three main effects at 2 levels each. The L4 array can be used to estimate three main effects using four runs provided that the two factor and three factor interactions can be ignored. Figure (b) below shows the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design (defining relation &amp;lt;math&amp;gt;I=-ABC\,\!&amp;lt;/math&amp;gt; ) which also requires four runs and can be used to estimate up to three main effects, assuming that all two factor and three factor interactions are unimportant. A comparison between the two designs shows that the columns in the two designs are the same except for the arrangement of the columns. In figure (c) below, columns of the L4 array are marked with the name of the effect from the corresponding column of the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.3.png|thumb|center|400px|Taguchi&#039;s L4 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{3-1} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=-ABC \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L4 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, consider the L8(2^7) array shown in figure (a) below. This design can be used to estimate up to seven main effects using eight runs. This array is again similar to the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design shown in figure (b) below, except that the aliasing between the columns of the two designs differs in sign for some of the columns (see figure (c)).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.4.png|thumb|center|400px|Taguchi&#039;s L8 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{7-4} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABD=ACE=BCF=ABCG \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L8 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The L8 array can also be used as a full factorial three factor experiment design in the same way as a &amp;lt;math&amp;gt;2^{3}\,\!&amp;lt;/math&amp;gt; design. However, the orthogonal arrays should be used carefully in such cases, taking into consideration the alias relationships between the columns of the array. For the L8 array, figure (c) above shows that the third column of the array is the product of the first two columns. If the L8 array is used as a two level full factorial design in the place of a 2 &amp;lt;math&amp;gt;^{3}\,\!&amp;lt;/math&amp;gt; design, and if the main effects are assigned to the first three columns, the main effect assigned to the third column will be aliased with the two factor interaction of the first two main effects. The proper assignment of the main effects to the columns of the L8 array requires the experimenter to assign the three main effects to the first, second and fourth columns. These columns are sometimes referred to as the &#039;&#039;preferred columns&#039;&#039; for the L8 array. To know the preferred columns for any of the orthogonal arrays, the alias relationships between the array columns must be known. The alias relations between the main effects and two factor interactions of the columns for the L8 array are shown in the next table. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.2.png|thumb|center|400px|Alias relations for the L8 array.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cell value in any (&amp;lt;math&amp;gt;i,j\,\!&amp;lt;/math&amp;gt;) cell of the table gives the column number of the two factor interaction for the &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt;th row and &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;th column. For example, to know which column is confounded with the interaction of the first and second columns, look at the value in the ( &amp;lt;math&amp;gt;1,2\,\!&amp;lt;/math&amp;gt; ) cell. The value of 3 indicates that the third column is the same as the product of the first and second columns. The alias relations for some of Taguchi&#039;s orthogonal arrays are available in [[Alias_Relations_for_Taguchi_Orthogonal_Arrays|Appendix E]].&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
Recall the experiment to investigate factors affecting the surface finish of automobile brake drums discussed in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. The three factors investigated in the experiment were honing pressure (factor A), number of strokes (factor B) and cycle time (factor C). Assume that you used Taguchi&#039;s L8 orthogonal array to investigate the three factors instead of the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design that was used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. Based on the discussion in the previous section, the preferred columns for the L8 array are the first, second and fourth columns. Therefore, the three factors should be assigned to these columns. The three factors are assigned to these columns based on the figure (c) above, so that you can easily compare results obtained from the L8 array to the ones included in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]]. Based on this assignment, the L8 array for the two replicates, along with the respective response values, should be as shown in the third table. Note that to run the experiment using the L8 array, you would use only the first, the second and the fourth column to set the three factors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.3.png|thumb|center|639px|Using Taguchi&#039;s L8 array to investigate factors affecting the surface finish of automobile brake drums.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The experiment design for this example can be set using the properties shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_5.png|thumb|center|842px|Design properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that for this design, the factor properties are set up as shown in the design summary. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_6.png|thumb|center|828px|Factor properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The resulting design along with the response values is shown in the figure below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_7.png|thumb|center|650px|Experiment design for the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And the results from DOE++ for the design are shown in the next figure. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_8_1.png|thumb|center|613px|Results for the experiment in the example.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results identify honing pressure, number of strokes, and the interaction between honing pressure and cycle time to be significant effects. This is identical to the conclusion obtained from the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]].&lt;br /&gt;
&lt;br /&gt;
=== Preferred Columns in Taguchi OA===&lt;br /&gt;
One of the difficulties of using Taguchi OA is to assign factors to the appropriate columns of the array. For example, take a simple Taguchi OA L8(2^7), which can be used for experiments with up to 7 factors. If you have only 3 factors, which 3 columns in this array should be used? DOE++ provides a simple utility to help users utilize Taguchi OA more effectively by assigning factors to the appropriate columns. &lt;br /&gt;
Let’s use Taguchi OA L8(2^7) as an example. The design table for this array is: &lt;br /&gt;
 &lt;br /&gt;
[[Image:DOEtableChapter9.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a fractional factorial design for 7 factors. For any fractional factorial design, the first thing we need to do is check its alias structure. In general, the alias structures for Taguchi OAs are very complicated. People usually use the following table to represent the alias relations between each factor. For the above orthogonal array, the alias table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7&lt;br /&gt;
|-&lt;br /&gt;
|2x3||	1x3||	1x2||	1x5||	1x4||	1x7||	1x6&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x6||	4x7||	2x6||	2x7||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|6x7||	5x7||	5x6||	3x7||	3x6||	3x5||	3x4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the above table, an Arabic number is used to represent a factor. For instance, “1” represents the factor assigned to the 1st column in the array. “2x3” represents the interaction effect of the two factors assigned to column 2 and 3. Each column in the above alias table lists all the 2-way interaction effects that are aliased with the main effect of the factor assigned to this column. For example, for the 1st column, the main effect of the factor assigned to it is aliased with interaction effects of 2x3, 4x5 and 6x7. &lt;br /&gt;
If an experiment has only 3 factors and these 3 factors A, B and C are assigned to the first 3 columns of the above L8(2^7) array, then the design table will be:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 3)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The alias structure for the above table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[I] = I – ABC&lt;br /&gt;
|-&lt;br /&gt;
|[A] = A – BC&lt;br /&gt;
|-&lt;br /&gt;
|[B] = B – AC&lt;br /&gt;
|-&lt;br /&gt;
|[C] = C – AB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is a resolution 3 design. All the main effects are aliased with 2-way interactions. There are many ways to choose 3 columns from the 7 columns of L8(2^7). If the 3 factors are assigned to column 1, 2, and 4, then the design table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 4)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For experiments using the above design table, all the effects will be alias free.  Therefore, this design is much better than the previous one which used column 1, 2, and 3 of L8(2^7). Although both designs have the same number of runs, more information can be obtained from this design since it is alias free. &lt;br /&gt;
&lt;br /&gt;
Clearly, it is very important to assign factors to the right columns when applying Taguchi OA. DOE++ can help users automatically choose the right columns when the number of factors is less than the number of columns in a Taguchi OA. The selection is based on the specified model terms by users. Let’s use an example to explain this.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment with 3 qualitative factors. Factors A and B have 2 levels; factor C has 4 levels. The experimenters are interested in all the main effects and the interaction effect AC.&lt;br /&gt;
&lt;br /&gt;
Based on this requirement, Taguchi OA L16(2^6*4^3) can be used since it can handle both 2 level and 4 level factors. It has 9 columns. The first 6 columns are used for 2 level factors and the last 3 columns are used for 4 level factors. We need to assign factor A and B to two of the first 6 columns, and assign factor C to one of the last 3 columns. &lt;br /&gt;
&lt;br /&gt;
In DOE++, we can choose L16(2^6*4^3) in the Additional Settings. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_9.png|thumb|center|842px|Selecting the Taguchi OA design type.]] &lt;br /&gt;
&lt;br /&gt;
Click &#039;&#039;&#039;Specify Interaction Terms&#039;&#039;&#039; to specify the interaction terms that are of interest to the experimenters. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_10.png|thumb|center|420px|Specifying the interaction terms of interest.]] &lt;br /&gt;
&lt;br /&gt;
Based on the specified interaction effects, DOE++ will assign each factor to the appropriate column. In this case, they are column 1, 3, and 7 as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_11.png|thumb|center|842px|The interaction terms of interest have been specified.]]  &lt;br /&gt;
&lt;br /&gt;
However, for a given Taguchi OA, it may not be possible to estimate all the specified interaction terms. If not all the requirements can be satisfied, DOE++ will assign factors to columns that result in the least number of aliased effects. In this case, users should either use another Taguchi OA or other design types. The following example is one of these cases.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment for a test with 4 qualitative factors. Factors A and B have 2 levels; C and D have 4 levels. We are interested in all the main effects and the interaction effects AC and BD. &lt;br /&gt;
&lt;br /&gt;
Assume again we want to use Taguchi OA L16(2^6*4^3). Click &#039;&#039;&#039;Specify Interaction Terms&#039;&#039;&#039; as shown above to specify the interaction effects that you want to estimate in the experiment. &lt;br /&gt;
 &lt;br /&gt;
[[Image:doe8_12.png|thumb|center|420px|Specifying the interaction terms of interest.]] &lt;br /&gt;
&lt;br /&gt;
When you click &#039;&#039;&#039;OK&#039;&#039;&#039;, you will see a message saying that it is impossible to clearly estimate all the main effects and the specified interaction effect AC and BD. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
This can be explained by checking the alias table of a L16(2^6*4^3) design as given below.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7||	8||	9&lt;br /&gt;
|-&lt;br /&gt;
|2x7||	1x7||	1x9||	1x5||	1x4||	1x8||	1x2||	1x6||	1x3&lt;br /&gt;
|-&lt;br /&gt;
|3x9||	3x6||	2x6||	2x8||	2x9||	2x3||	1x8||	1x7||	1x7&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x8||	4x7||	3x7||	3x8||	4x9||	1x9||	1x9||	1x8&lt;br /&gt;
|-&lt;br /&gt;
|6x8||	5x9||	5x8||	6x9||	6x7||	5x7||	2x8||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|7x8||	7x8||	7x8||	7x8||	7x8||	7x8||	2x9||	2x7||	2x7&lt;br /&gt;
|-&lt;br /&gt;
|7x9||	7x9||	7x9||	7x9||	7x9||	7x9||	3x8||	2x9||	2x8&lt;br /&gt;
|-&lt;br /&gt;
|8x9||	8x9||	8x9||	8x9||	8x9||	8x9||	3x9||	3x5||	3x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x8||	3x7||	3x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x9||	3x9||	4x6&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x6||	4x7||	4x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x8||	4x9||	4x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x9||	5x7||	5x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x8||	5x9||	5x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x9||	6x7||	6x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||8x9||	6x9||	6x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	|| ||	7x9||	7x8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
From this table, we can see that it is impossible to clearly estimate both AC and BD. Factors C and D can only be assigned to the last three columns since they are 4 level factors. Assume we assign factor C to column 7 and factor D to column 8. Factor B (2 level) will be in one of the columns from 1 to 6. Therefore, effect BD will be one of the effects highlighted in the table, where the first term of the interaction is between 1 and 6 and the last term is 8 (i.e., factor D).&lt;br /&gt;
&lt;br /&gt;
The above alias table shows factor C is aliased with one of those highlighted effects. Thus, no matter which of the first six columns is assigned to factor B, the main effect C will be aliased with interaction effect BD. This is also true if C is assigned to column 8 or 9. Therefore, if L16(2^6*4^3) is used, there is no way to clearly estimate all the main effects and the interaction effects AC and BD. Another Taguchi OA or other design types such as a general level full factorial design should be used. A more efficient way probably is to create an optimal custom design that can clearly estimate all the specified terms. For more detail, please refer to the chapter on Optimal Custom Designs.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61573</id>
		<title>Highly Fractional Factorial Designs</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61573"/>
		<updated>2015-11-23T23:35:06Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Doebook|9}}&lt;br /&gt;
This chapter discusses factorial designs that are commonly used in designed experiments, but are not necessarily limited to two level factors. These designs are the [[Highly_Fractional_Factorial_Designs#Plackett-Burman_Designs|Plackett-Burman designs]] and [[Highly_Fractional_Factorial_Designs#Taguchi.27s_Orthogonal_Arrays|Taguchi&#039;s orthogonal arrays]].&lt;br /&gt;
&lt;br /&gt;
==Plackett-Burman Designs==&lt;br /&gt;
&lt;br /&gt;
It was mentioned in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]] that resolution III designs can be used as highly fractional designs to investigate &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs (provided that three factor and higher order interaction effects are not important to the experimenter). A limitation with these designs is that all runs in these designs have to be a power of 2. The valid runs for these designs are 4, 8, 16, 32, etc. Therefore, the next design after the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design with 4 runs is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design with 8 runs, and the design after this is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{15-11}\,\!&amp;lt;/math&amp;gt; design with 32 runs and so on, as shown in the next table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.1.png|thumb|center|487px|Highly fractional designs to investigate main effects.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plackett-Burman designs solve this problem. These designs were proposed by R. L. Plackett and J.P. Burman (1946). They allow the estimation of &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs. In these designs, runs are a multiple of 4 (i.e., 4, 8, 12, 16, 20 and so on). When the runs are a power of 2, the designs correspond to the resolution III two factor fractional factorial designs. Although Plackett-Burman designs are all two level orthogonal designs, the alias structure for these designs is complicated when runs are not a power of 2.&lt;br /&gt;
&lt;br /&gt;
As an example, consider the 12-run Plackett-Burman design shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.1.png|thumb|center|400px|12-run Plackett-Burman design.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If 11 main effects are to be estimated using this design, then each of these main effects is partially aliased with all other two factor interactions not containing that main effect. For example, the main effect &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is partially aliased with all two factor interactions except &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AE\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AF\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AG\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AH\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AJ\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AK\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AL\,\!&amp;lt;/math&amp;gt;. There are 45 such two factor interactions that are aliased with &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A= &amp;amp; A-\frac{1}{3}BC-\frac{1}{3}BD+\frac{1}{3}CD-\frac{1}{3}BE-\frac{1}{3}CE+\frac{1}{3}DE+... \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; ...+\frac{1}{3}EL-\frac{1}{3}FL-\frac{1}{3}GL+\frac{1}{3}HL+\frac{1}{3}JL-\frac{1}{3}KL  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Due to the complex aliasing, Plackett-Burman designs involving a large number of factors should be used with care. Some of the Plackett-Burman designs available in DOE++ are included in [[Plackett-Burman_Designs|Appendix C]].&lt;br /&gt;
&lt;br /&gt;
==Taguchi&#039;s Orthogonal Arrays==&lt;br /&gt;
&lt;br /&gt;
Taguchi&#039;s orthogonal arrays are highly fractional orthogonal designs proposed by Dr. Genichi Taguchi, a Japanese industrialist. These designs can be used to estimate main effects using only a few experimental runs. These designs are not only applicable to two level factorial experiments; they can also investigate main effects when factors have more than two levels. Designs are also available to investigate main effects for certain mixed level experiments where the factors included do not have the same number of levels.  As in the case of Placket-Burman designs, these designs require the experimenter to assume that interaction effects are unimportant and can be ignored. A few of Taguchi&#039;s orthogonal arrays available in DOE++ are included in [[Taguchi_Orthogonal_Arrays|Appendix D]].&lt;br /&gt;
&lt;br /&gt;
Some of Taguchi&#039;s arrays, with runs that are a power of 2, are similar to the corresponding 2 &amp;lt;math&amp;gt;_{\text{III}}^{k-f}\,\!&amp;lt;/math&amp;gt; designs. For example, consider the L4 array shown in figure (a) below. The L4 array is denoted as L4(2^3) in DOE++. L4 means the array requires 4 runs. 2^3 indicates that the design estimates up to three main effects at 2 levels each. The L4 array can be used to estimate three main effects using four runs provided that the two factor and three factor interactions can be ignored. Figure (b) below shows the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design (defining relation &amp;lt;math&amp;gt;I=-ABC\,\!&amp;lt;/math&amp;gt; ) which also requires four runs and can be used to estimate up to three main effects, assuming that all two factor and three factor interactions are unimportant. A comparison between the two designs shows that the columns in the two designs are the same except for the arrangement of the columns. In figure (c) below, columns of the L4 array are marked with the name of the effect from the corresponding column of the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.3.png|thumb|center|400px|Taguchi&#039;s L4 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{3-1} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=-ABC \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L4 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, consider the L8(2^7) array shown in figure (a) below. This design can be used to estimate up to seven main effects using eight runs. This array is again similar to the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design shown in figure (b) below, except that the aliasing between the columns of the two designs differs in sign for some of the columns (see figure (c)).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.4.png|thumb|center|400px|Taguchi&#039;s L8 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{7-4} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABD=ACE=BCF=ABCG \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L8 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The L8 array can also be used as a full factorial three factor experiment design in the same way as a &amp;lt;math&amp;gt;2^{3}\,\!&amp;lt;/math&amp;gt; design. However, the orthogonal arrays should be used carefully in such cases, taking into consideration the alias relationships between the columns of the array. For the L8 array, figure (c) above shows that the third column of the array is the product of the first two columns. If the L8 array is used as a two level full factorial design in the place of a 2 &amp;lt;math&amp;gt;^{3}\,\!&amp;lt;/math&amp;gt; design, and if the main effects are assigned to the first three columns, the main effect assigned to the third column will be aliased with the two factor interaction of the first two main effects. The proper assignment of the main effects to the columns of the L8 array requires the experimenter to assign the three main effects to the first, second and fourth columns. These columns are sometimes referred to as the &#039;&#039;preferred columns&#039;&#039; for the L8 array. To know the preferred columns for any of the orthogonal arrays, the alias relationships between the array columns must be known. The alias relations between the main effects and two factor interactions of the columns for the L8 array are shown in the next table. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.2.png|thumb|center|400px|Alias relations for the L8 array.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cell value in any (&amp;lt;math&amp;gt;i,j\,\!&amp;lt;/math&amp;gt;) cell of the table gives the column number of the two factor interaction for the &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt;th row and &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;th column. For example, to know which column is confounded with the interaction of the first and second columns, look at the value in the ( &amp;lt;math&amp;gt;1,2\,\!&amp;lt;/math&amp;gt; ) cell. The value of 3 indicates that the third column is the same as the product of the first and second columns. The alias relations for some of Taguchi&#039;s orthogonal arrays are available in [[Alias_Relations_for_Taguchi_Orthogonal_Arrays|Appendix E]].&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
Recall the experiment to investigate factors affecting the surface finish of automobile brake drums discussed in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. The three factors investigated in the experiment were honing pressure (factor A), number of strokes (factor B) and cycle time (factor C). Assume that you used Taguchi&#039;s L8 orthogonal array to investigate the three factors instead of the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design that was used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. Based on the discussion in the previous section, the preferred columns for the L8 array are the first, second and fourth columns. Therefore, the three factors should be assigned to these columns. The three factors are assigned to these columns based on the figure (c) above, so that you can easily compare results obtained from the L8 array to the ones included in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]]. Based on this assignment, the L8 array for the two replicates, along with the respective response values, should be as shown in the third table. Note that to run the experiment using the L8 array, you would use only the first, the second and the fourth column to set the three factors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.3.png|thumb|center|639px|Using Taguchi&#039;s L8 array to investigate factors affecting the surface finish of automobile brake drums.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The experiment design for this example can be set using the properties shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_5.png|thumb|center|842px|Design properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that for this design, the factor properties are set up as shown in the design summary. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_6.png|thumb|center|828px|Factor properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The resulting design along with the response values is shown in the figure below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_7.png|thumb|center|650px|Experiment design for the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And the results from DOE++ for the design are shown in the next figure. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_8_1.png|thumb|center|613px|Results for the experiment in the example.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results identify honing pressure, number of strokes, and the interaction between honing pressure and cycle time to be significant effects. This is identical to the conclusion obtained from the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]].&lt;br /&gt;
&lt;br /&gt;
=== Preferred Columns in Taguchi OA===&lt;br /&gt;
One of the difficulties of using Taguchi OA is to assign factors to the appropriate columns of the array. For example, take a simple Taguchi OA L8(2^7), which can be used for experiments with up to 7 factors. If you have only 3 factors, which 3 columns in this array should be used? DOE++ provides a simple utility to help users utilize Taguchi OA more effectively by assigning factors to the appropriate columns. &lt;br /&gt;
Let’s use Taguchi OA L8(2^7) as an example. The design table for this array is: &lt;br /&gt;
 &lt;br /&gt;
[[Image:DOEtableChapter9.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a fractional factorial design for 7 factors. For any fractional factorial design, the first thing we need to do is check its alias structure. In general, the alias structures for Taguchi OAs are very complicated. People usually use the following table to represent the alias relations between each factor. For the above orthogonal array, the alias table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7&lt;br /&gt;
|-&lt;br /&gt;
|2x3||	1x3||	1x2||	1x5||	1x4||	1x7||	1x6&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x6||	4x7||	2x6||	2x7||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|6x7||	5x7||	5x6||	3x7||	3x6||	3x5||	3x4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the above table, an Arabic number is used to represent a factor. For instance, “1” represents the factor assigned to the 1st column in the array. “2x3” represents the interaction effect of the two factors assigned to column 2 and 3. Each column in the above alias table lists all the 2-way interaction effects that are aliased with the main effect of the factor assigned to this column. For example, for the 1st column, the main effect of the factor assigned to it is aliased with interaction effects of 2x3, 4x5 and 6x7. &lt;br /&gt;
If an experiment has only 3 factors and these 3 factors A, B and C are assigned to the first 3 columns of the above L8(2^7) array, then the design table will be:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 3)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The alias structure for the above table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[I] = I – ABC&lt;br /&gt;
|-&lt;br /&gt;
|[A] = A – BC&lt;br /&gt;
|-&lt;br /&gt;
|[B] = B – AC&lt;br /&gt;
|-&lt;br /&gt;
|[C] = C – AB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is a resolution 3 design. All the main effects are aliased with 2-way interactions. There are many ways to choose 3 columns from the 7 columns of L8(2^7). If the 3 factors are assigned to column 1, 2, and 4, then the design table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 4)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For experiments using the above design table, all the effects will be alias free.  Therefore, this design is much better than the previous one which used column 1, 2, and 3 of L8(2^7). Although both designs have the same number of runs, more information can be obtained from this design since it is alias free. &lt;br /&gt;
&lt;br /&gt;
Clearly, it is very important to assign factors to the right columns when applying Taguchi OA. DOE++ can help users automatically choose the right columns when the number of factors is less than the number of columns in a Taguchi OA. The selection is based on the specified model terms by users. Let’s use an example to explain this.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment with 3 qualitative factors. Factors A and B have 2 levels; factor C has 4 levels. The experimenters are interested in all the main effects and the interaction effect AC.&lt;br /&gt;
&lt;br /&gt;
Based on this requirement, Taguchi OA L16(2^6*4^3) can be used since it can handle both 2 level and 4 level factors. It has 9 columns. The first 6 columns are used for 2 level factors and the last 3 columns are used for 4 level factors. We need to assign factor A and B to two of the first 6 columns, and assign factor C to one of the last 3 columns. &lt;br /&gt;
&lt;br /&gt;
In DOE++, we can choose L16(2^6*4^3) in the Additional Settings. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_9.png|thumb|center|842px|Selecting the Taguchi OA design type.]] &lt;br /&gt;
&lt;br /&gt;
Click Specify Interaction Terms to specify the interaction terms of interest by the experimenters. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_10.png|thumb|center|420px|Specifying the interaction terms of interest.]] &lt;br /&gt;
&lt;br /&gt;
Based on the specified interaction effects, DOE++ will assign each factor to the appropriate column. In this case, they are column 1, 3, and 7 as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_11.png|thumb|center|842px|The interaction terms of interest have been specified.]]  &lt;br /&gt;
&lt;br /&gt;
However, for a given Taguchi OA, it may not be possible to estimate all the specified interaction terms. If not all the requirements can be satisfied, DOE++ will assign factors to columns that result in the least number of aliased effects. In this case, users should either use another Taguchi OA or other design types. The following example is one of these cases.&lt;br /&gt;
&lt;br /&gt;
Example: Design an experiment for a test with 4 qualitative factors. Factors A and B have 2 levels; C and D have 4 levels. We are interested in all the main effects and the interaction effects AC and BD. &lt;br /&gt;
&lt;br /&gt;
Assume again we want to use Taguchi OA L16(2^6*4^3). Click Taguchi Preferred Columns in the following screen. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Specify the interaction effects that you want to estimate in the experiment. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
When click on OK, you will get a warning message saying that it is impossible to clearly estimate all the main effects and the specified interaction effect AC and BD. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
This can be explained by checking the alias table of a L16(2^6*4^3) design as given below.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7||	8||	9&lt;br /&gt;
|-&lt;br /&gt;
|2x7||	1x7||	1x9||	1x5||	1x4||	1x8||	1x2||	1x6||	1x3&lt;br /&gt;
|-&lt;br /&gt;
|3x9||	3x6||	2x6||	2x8||	2x9||	2x3||	1x8||	1x7||	1x7&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x8||	4x7||	3x7||	3x8||	4x9||	1x9||	1x9||	1x8&lt;br /&gt;
|-&lt;br /&gt;
|6x8||	5x9||	5x8||	6x9||	6x7||	5x7||	2x8||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|7x8||	7x8||	7x8||	7x8||	7x8||	7x8||	2x9||	2x7||	2x7&lt;br /&gt;
|-&lt;br /&gt;
|7x9||	7x9||	7x9||	7x9||	7x9||	7x9||	3x8||	2x9||	2x8&lt;br /&gt;
|-&lt;br /&gt;
|8x9||	8x9||	8x9||	8x9||	8x9||	8x9||	3x9||	3x5||	3x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x8||	3x7||	3x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x9||	3x9||	4x6&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x6||	4x7||	4x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x8||	4x9||	4x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x9||	5x7||	5x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x8||	5x9||	5x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x9||	6x7||	6x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||8x9||	6x9||	6x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	|| ||	7x9||	7x8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
From this table, we can see that it is impossible to clearly estimate both AC and BD. Factors C and D can only be assigned to the last three columns since they are 4 level factors. Assume we assign factor C to column 7 and factor D to column 8. Factor B (2 level) will be in one of the columns from 1 to 6. Therefore, effect BD will be one of the effects highlighted in the table, where the first term of the interaction is between 1 and 6 and the last term is 8 (i.e., factor D).&lt;br /&gt;
&lt;br /&gt;
The above alias table shows factor C is aliased with one of those highlighted effects. Thus, no matter which of the first six columns is assigned to factor B, the main effect C will be aliased with interaction effect BD. This is also true if C is assigned to column 8 or 9. Therefore, if L16(2^6*4^3) is used, there is no way to clearly estimate all the main effects and the interaction effects AC and BD. Another Taguchi OA or other design types such as a general level full factorial design should be used. A more efficient way probably is to create an optimal custom design that can clearly estimate all the specified terms. For more detail, please refer to the chapter on Optimal Custom Designs.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Doe8_11.png&amp;diff=61572</id>
		<title>File:Doe8 11.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Doe8_11.png&amp;diff=61572"/>
		<updated>2015-11-23T23:34:55Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Doe8_10.png&amp;diff=61571</id>
		<title>File:Doe8 10.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Doe8_10.png&amp;diff=61571"/>
		<updated>2015-11-23T23:34:43Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Doe8_9.png&amp;diff=61569</id>
		<title>File:Doe8 9.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Doe8_9.png&amp;diff=61569"/>
		<updated>2015-11-23T23:07:08Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: uploaded a new version of &amp;quot;File:Doe8 9.png&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61567</id>
		<title>Highly Fractional Factorial Designs</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=Highly_Fractional_Factorial_Designs&amp;diff=61567"/>
		<updated>2015-11-23T23:05:45Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: /* Preferred Columns in Taguchi OA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:Doebook|9}}&lt;br /&gt;
This chapter discusses factorial designs that are commonly used in designed experiments, but are not necessarily limited to two level factors. These designs are the [[Highly_Fractional_Factorial_Designs#Plackett-Burman_Designs|Plackett-Burman designs]] and [[Highly_Fractional_Factorial_Designs#Taguchi.27s_Orthogonal_Arrays|Taguchi&#039;s orthogonal arrays]].&lt;br /&gt;
&lt;br /&gt;
==Plackett-Burman Designs==&lt;br /&gt;
&lt;br /&gt;
It was mentioned in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]] that resolution III designs can be used as highly fractional designs to investigate &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs (provided that three factor and higher order interaction effects are not important to the experimenter). A limitation with these designs is that all runs in these designs have to be a power of 2. The valid runs for these designs are 4, 8, 16, 32, etc. Therefore, the next design after the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design with 4 runs is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design with 8 runs, and the design after this is the 2 &amp;lt;math&amp;gt;_{\text{III}}^{15-11}\,\!&amp;lt;/math&amp;gt; design with 32 runs and so on, as shown in the next table.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.1.png|thumb|center|487px|Highly fractional designs to investigate main effects.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Plackett-Burman designs solve this problem. These designs were proposed by R. L. Plackett and J.P. Burman (1946). They allow the estimation of &amp;lt;math&amp;gt;k\,\!&amp;lt;/math&amp;gt; main effects using &amp;lt;math&amp;gt;k+1\,\!&amp;lt;/math&amp;gt; runs. In these designs, runs are a multiple of 4 (i.e., 4, 8, 12, 16, 20 and so on). When the runs are a power of 2, the designs correspond to the resolution III two factor fractional factorial designs. Although Plackett-Burman designs are all two level orthogonal designs, the alias structure for these designs is complicated when runs are not a power of 2.&lt;br /&gt;
&lt;br /&gt;
As an example, consider the 12-run Plackett-Burman design shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.1.png|thumb|center|400px|12-run Plackett-Burman design.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If 11 main effects are to be estimated using this design, then each of these main effects is partially aliased with all other two factor interactions not containing that main effect. For example, the main effect &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt; is partially aliased with all two factor interactions except &amp;lt;math&amp;gt;AB\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AC\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AD\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AE\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AF\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AG\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AH\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AJ\,\!&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;AK\,\!&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;AL\,\!&amp;lt;/math&amp;gt;. There are 45 such two factor interactions that are aliased with &amp;lt;math&amp;gt;A\,\!&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
  &amp;amp; A= &amp;amp; A-\frac{1}{3}BC-\frac{1}{3}BD+\frac{1}{3}CD-\frac{1}{3}BE-\frac{1}{3}CE+\frac{1}{3}DE+... \\ &lt;br /&gt;
 &amp;amp;  &amp;amp; ...+\frac{1}{3}EL-\frac{1}{3}FL-\frac{1}{3}GL+\frac{1}{3}HL+\frac{1}{3}JL-\frac{1}{3}KL  &lt;br /&gt;
\end{align}\,\!&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Due to the complex aliasing, Plackett-Burman designs involving a large number of factors should be used with care. Some of the Plackett-Burman designs available in DOE++ are included in [[Plackett-Burman_Designs|Appendix C]].&lt;br /&gt;
&lt;br /&gt;
==Taguchi&#039;s Orthogonal Arrays==&lt;br /&gt;
&lt;br /&gt;
Taguchi&#039;s orthogonal arrays are highly fractional orthogonal designs proposed by Dr. Genichi Taguchi, a Japanese industrialist. These designs can be used to estimate main effects using only a few experimental runs. These designs are not only applicable to two level factorial experiments; they can also investigate main effects when factors have more than two levels. Designs are also available to investigate main effects for certain mixed level experiments where the factors included do not have the same number of levels.  As in the case of Placket-Burman designs, these designs require the experimenter to assume that interaction effects are unimportant and can be ignored. A few of Taguchi&#039;s orthogonal arrays available in DOE++ are included in [[Taguchi_Orthogonal_Arrays|Appendix D]].&lt;br /&gt;
&lt;br /&gt;
Some of Taguchi&#039;s arrays, with runs that are a power of 2, are similar to the corresponding 2 &amp;lt;math&amp;gt;_{\text{III}}^{k-f}\,\!&amp;lt;/math&amp;gt; designs. For example, consider the L4 array shown in figure (a) below. The L4 array is denoted as L4(2^3) in DOE++. L4 means the array requires 4 runs. 2^3 indicates that the design estimates up to three main effects at 2 levels each. The L4 array can be used to estimate three main effects using four runs provided that the two factor and three factor interactions can be ignored. Figure (b) below shows the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design (defining relation &amp;lt;math&amp;gt;I=-ABC\,\!&amp;lt;/math&amp;gt; ) which also requires four runs and can be used to estimate up to three main effects, assuming that all two factor and three factor interactions are unimportant. A comparison between the two designs shows that the columns in the two designs are the same except for the arrangement of the columns. In figure (c) below, columns of the L4 array are marked with the name of the effect from the corresponding column of the 2 &amp;lt;math&amp;gt;_{\text{III}}^{3-1}\,\!&amp;lt;/math&amp;gt; design.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.3.png|thumb|center|400px|Taguchi&#039;s L4 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{3-1} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=-ABC \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L4 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, consider the L8(2^7) array shown in figure (a) below. This design can be used to estimate up to seven main effects using eight runs. This array is again similar to the 2 &amp;lt;math&amp;gt;_{\text{III}}^{7-4}\,\!&amp;lt;/math&amp;gt; design shown in figure (b) below, except that the aliasing between the columns of the two designs differs in sign for some of the columns (see figure (c)).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8.4.png|thumb|center|400px|Taguchi&#039;s L8 orthogonal array - Figure (a) shows the design, (b) shows the &amp;lt;math&amp;gt;2_{III}^{7-4} \,\!&amp;lt;/math&amp;gt; design with the defining relation &amp;lt;math&amp;gt;I=ABD=ACE=BCF=ABCG \,\!&amp;lt;/math&amp;gt; and (c) marks the columns of the L8 array with the corresponding columns of the design in (b).]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The L8 array can also be used as a full factorial three factor experiment design in the same way as a &amp;lt;math&amp;gt;2^{3}\,\!&amp;lt;/math&amp;gt; design. However, the orthogonal arrays should be used carefully in such cases, taking into consideration the alias relationships between the columns of the array. For the L8 array, figure (c) above shows that the third column of the array is the product of the first two columns. If the L8 array is used as a two level full factorial design in the place of a 2 &amp;lt;math&amp;gt;^{3}\,\!&amp;lt;/math&amp;gt; design, and if the main effects are assigned to the first three columns, the main effect assigned to the third column will be aliased with the two factor interaction of the first two main effects. The proper assignment of the main effects to the columns of the L8 array requires the experimenter to assign the three main effects to the first, second and fourth columns. These columns are sometimes referred to as the &#039;&#039;preferred columns&#039;&#039; for the L8 array. To know the preferred columns for any of the orthogonal arrays, the alias relationships between the array columns must be known. The alias relations between the main effects and two factor interactions of the columns for the L8 array are shown in the next table. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.2.png|thumb|center|400px|Alias relations for the L8 array.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The cell value in any (&amp;lt;math&amp;gt;i,j\,\!&amp;lt;/math&amp;gt;) cell of the table gives the column number of the two factor interaction for the &amp;lt;math&amp;gt;i\,\!&amp;lt;/math&amp;gt;th row and &amp;lt;math&amp;gt;j\,\!&amp;lt;/math&amp;gt;th column. For example, to know which column is confounded with the interaction of the first and second columns, look at the value in the ( &amp;lt;math&amp;gt;1,2\,\!&amp;lt;/math&amp;gt; ) cell. The value of 3 indicates that the third column is the same as the product of the first and second columns. The alias relations for some of Taguchi&#039;s orthogonal arrays are available in [[Alias_Relations_for_Taguchi_Orthogonal_Arrays|Appendix E]].&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
Recall the experiment to investigate factors affecting the surface finish of automobile brake drums discussed in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. The three factors investigated in the experiment were honing pressure (factor A), number of strokes (factor B) and cycle time (factor C). Assume that you used Taguchi&#039;s L8 orthogonal array to investigate the three factors instead of the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design that was used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]]. Based on the discussion in the previous section, the preferred columns for the L8 array are the first, second and fourth columns. Therefore, the three factors should be assigned to these columns. The three factors are assigned to these columns based on the figure (c) above, so that you can easily compare results obtained from the L8 array to the ones included in [[Two_Level_Factorial_Experiments| Two Level Factorial Experiments]]. Based on this assignment, the L8 array for the two replicates, along with the respective response values, should be as shown in the third table. Note that to run the experiment using the L8 array, you would use only the first, the second and the fourth column to set the three factors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doet8.3.png|thumb|center|639px|Using Taguchi&#039;s L8 array to investigate factors affecting the surface finish of automobile brake drums.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The experiment design for this example can be set using the properties shown in the figure below. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_5.png|thumb|center|842px|Design properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that for this design, the factor properties are set up as shown in the design summary. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_6.png|thumb|center|828px|Factor properties for the experiment in the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The resulting design along with the response values is shown in the figure below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_7.png|thumb|center|650px|Experiment design for the [[Highly_Fractional_Factorial_Designs#Example| example]].]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And the results from DOE++ for the design are shown in the next figure. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_8_1.png|thumb|center|613px|Results for the experiment in the example.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The results identify honing pressure, number of strokes, and the interaction between honing pressure and cycle time to be significant effects. This is identical to the conclusion obtained from the &amp;lt;math&amp;gt;{2}^{3}\,\!&amp;lt;/math&amp;gt; design used in [[Two_Level_Factorial_Experiments|Two Level Factorial Experiments]].&lt;br /&gt;
&lt;br /&gt;
=== Preferred Columns in Taguchi OA===&lt;br /&gt;
One of the difficulties of using Taguchi OA is to assign factors to the appropriate columns of the array. For example, take a simple Taguchi OA L8(2^7), which can be used for experiments with up to 7 factors. If you have only 3 factors, which 3 columns in this array should be used? DOE++ provides a simple utility to help users utilize Taguchi OA more effectively by assigning factors to the appropriate columns. &lt;br /&gt;
Let’s use Taguchi OA L8(2^7) as an example. The design table for this array is: &lt;br /&gt;
 &lt;br /&gt;
[[Image:DOEtableChapter9.png|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a fractional factorial design for 7 factors. For any fractional factorial design, the first thing we need to do is check its alias structure. In general, the alias structures for Taguchi OAs are very complicated. People usually use the following table to represent the alias relations between each factor. For the above orthogonal array, the alias table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7&lt;br /&gt;
|-&lt;br /&gt;
|2x3||	1x3||	1x2||	1x5||	1x4||	1x7||	1x6&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x6||	4x7||	2x6||	2x7||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|6x7||	5x7||	5x6||	3x7||	3x6||	3x5||	3x4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the above table, an Arabic number is used to represent a factor. For instance, “1” represents the factor assigned to the 1st column in the array. “2x3” represents the interaction effect of the two factors assigned to column 2 and 3. Each column in the above alias table lists all the 2-way interaction effects that are aliased with the main effect of the factor assigned to this column. For example, for the 1st column, the main effect of the factor assigned to it is aliased with interaction effects of 2x3, 4x5 and 6x7. &lt;br /&gt;
If an experiment has only 3 factors and these 3 factors A, B and C are assigned to the first 3 columns of the above L8(2^7) array, then the design table will be:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 3)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The alias structure for the above table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|[I] = I – ABC&lt;br /&gt;
|-&lt;br /&gt;
|[A] = A – BC&lt;br /&gt;
|-&lt;br /&gt;
|[B] = B – AC&lt;br /&gt;
|-&lt;br /&gt;
|[C] = C – AB&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is a resolution 3 design. All the main effects are aliased with 2-way interactions. There are many ways to choose 3 columns from the 7 columns of L8(2^7). If the 3 factors are assigned to column 1, 2, and 4, then the design table is:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Run||	A (Column 1)||	B (Column 2)||	C (Column 4)&lt;br /&gt;
|-&lt;br /&gt;
|1||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|2||	1||	1||	1&lt;br /&gt;
|-&lt;br /&gt;
|3||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|4||	1||	2||	2&lt;br /&gt;
|-&lt;br /&gt;
|5||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|6||	2||	1||	2&lt;br /&gt;
|-&lt;br /&gt;
|7||	2||	2||	1&lt;br /&gt;
|-&lt;br /&gt;
|8||	2||	2||	1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For experiments using the above design table, all the effects will be alias free.  Therefore, this design is much better than the previous one which used column 1, 2, and 3 of L8(2^7). Although both designs have the same number of runs, more information can be obtained from this design since it is alias free. &lt;br /&gt;
&lt;br /&gt;
Clearly, it is very important to assign factors to the right columns when applying Taguchi OA. DOE++ can help users automatically choose the right columns when the number of factors is less than the number of columns in a Taguchi OA. The selection is based on the specified model terms by users. Let’s use an example to explain this.&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
Design an experiment with 3 qualitative factors. Factors A and B have 2 levels; factor C has 4 levels. The experimenters are interested in all the main effects and the interaction effect AC.&lt;br /&gt;
&lt;br /&gt;
Based on this requirement, Taguchi OA L16(2^6*4^3) can be used since it can handle both 2 level and 4 level factors. It has 9 columns. The first 6 columns are used for 2 level factors and the last 3 columns are used for 4 level factors. We need to assign factor A and B to two of the first 6 columns, and assign factor C to one of the last 3 columns. &lt;br /&gt;
&lt;br /&gt;
In DOE++, we can choose L16(2^6*4^3) in the following window. &lt;br /&gt;
&lt;br /&gt;
[[Image:doe8_9.png|thumb|center|842px|Selecting the Taguchi OA design type.]] &lt;br /&gt;
&lt;br /&gt;
Click Taguchi Preferred Columns to specify the interaction terms of interest by the experimenters. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Based on the specified interaction effects, DOE++ will assign each factor to the appropriate column. In this case, they are column 1, 3, and 7 as shown below.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
However, for a given Taguchi OA, it may not be possible to estimate all the specified interaction terms. If not all the requirements can be satisfied, DOE++ will assign factors to columns that result in the least number of aliased effects. In this case, users should either use another Taguchi OA or other design types. The following example is one of these cases.&lt;br /&gt;
&lt;br /&gt;
Example: Design an experiment for a test with 4 qualitative factors. Factors A and B have 2 levels; C and D have 4 levels. We are interested in all the main effects and the interaction effects AC and BD. &lt;br /&gt;
&lt;br /&gt;
Assume again we want to use Taguchi OA L16(2^6*4^3). Click Taguchi Preferred Columns in the following screen. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Specify the interaction effects that you want to estimate in the experiment. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
When click on OK, you will get a warning message saying that it is impossible to clearly estimate all the main effects and the specified interaction effect AC and BD. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
This can be explained by checking the alias table of a L16(2^6*4^3) design as given below.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center;&amp;quot; cellpadding=&amp;quot;2&amp;quot; border=&amp;quot;1&amp;quot; align=&amp;quot;center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|1||	2||	3||	4||	5||	6||	7||	8||	9&lt;br /&gt;
|-&lt;br /&gt;
|2x7||	1x7||	1x9||	1x5||	1x4||	1x8||	1x2||	1x6||	1x3&lt;br /&gt;
|-&lt;br /&gt;
|3x9||	3x6||	2x6||	2x8||	2x9||	2x3||	1x8||	1x7||	1x7&lt;br /&gt;
|-&lt;br /&gt;
|4x5||	4x8||	4x7||	3x7||	3x8||	4x9||	1x9||	1x9||	1x8&lt;br /&gt;
|-&lt;br /&gt;
|6x8||	5x9||	5x8||	6x9||	6x7||	5x7||	2x8||	2x4||	2x5&lt;br /&gt;
|-&lt;br /&gt;
|7x8||	7x8||	7x8||	7x8||	7x8||	7x8||	2x9||	2x7||	2x7&lt;br /&gt;
|-&lt;br /&gt;
|7x9||	7x9||	7x9||	7x9||	7x9||	7x9||	3x8||	2x9||	2x8&lt;br /&gt;
|-&lt;br /&gt;
|8x9||	8x9||	8x9||	8x9||	8x9||	8x9||	3x9||	3x5||	3x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x8||	3x7||	3x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||4x9||	3x9||	4x6&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x6||	4x7||	4x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x8||	4x9||	4x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||5x9||	5x7||	5x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x8||	5x9||	5x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||6x9||	6x7||	6x7&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	||8x9||	6x9||	6x8&lt;br /&gt;
|-&lt;br /&gt;
|	||	||	||	||	||	|| ||	7x9||	7x8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
From this table, we can see that it is impossible to clearly estimate both AC and BD. Factors C and D can only be assigned to the last three columns since they are 4 level factors. Assume we assign factor C to column 7 and factor D to column 8. Factor B (2 level) will be in one of the columns from 1 to 6. Therefore, effect BD will be one of the effects highlighted in the table, where the first term of the interaction is between 1 and 6 and the last term is 8 (i.e., factor D).&lt;br /&gt;
&lt;br /&gt;
The above alias table shows factor C is aliased with one of those highlighted effects. Thus, no matter which of the first six columns is assigned to factor B, the main effect C will be aliased with interaction effect BD. This is also true if C is assigned to column 8 or 9. Therefore, if L16(2^6*4^3) is used, there is no way to clearly estimate all the main effects and the interaction effects AC and BD. Another Taguchi OA or other design types such as a general level full factorial design should be used. A more efficient way probably is to create an optimal custom design that can clearly estimate all the specified terms. For more detail, please refer to the chapter on Optimal Custom Designs.&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
	<entry>
		<id>https://www.reliawiki.com/index.php?title=File:Doe8_9.png&amp;diff=61566</id>
		<title>File:Doe8 9.png</title>
		<link rel="alternate" type="text/html" href="https://www.reliawiki.com/index.php?title=File:Doe8_9.png&amp;diff=61566"/>
		<updated>2015-11-23T23:05:26Z</updated>

		<summary type="html">&lt;p&gt;Melinda Caroline: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Melinda Caroline</name></author>
	</entry>
</feed>